Class ImageDescription.Init<T extends ImageDescription.Init<T>>

Direct Known Subclasses:
ImageDescription.Builder
Enclosing class:
ImageDescription

protected abstract static class ImageDescription.Init<T extends ImageDescription.Init<T>> extends WebElementDescription.Init<T>
Helper class for ImageDescription.Builder.
  • Constructor Details

    • Init

      protected Init()
  • Method Details

    • build

      public ImageDescription build()
      Description copied from class: DescriptionBase.Init
      Returns the built description instance (builder pattern).
      Overrides:
      build in class WebElementDescription.Init<T extends ImageDescription.Init<T>>
      Returns:
      The built description instance (builder pattern).
    • alt

      public T alt(String alt)
      Initializes the image's tooltip text.
      Parameters:
      alt - the image's tooltip text.
      Returns:
      the description instance with the update state (builder pattern).
    • alt

      public T alt(StringProperty alt)
      Initializes the image's tooltip text.
      Parameters:
      alt - a StringProperty(or RegExpProperty) representing the image's tooltip text.
      Returns:
      the description instance with the update state (builder pattern).
    • src

      public T src(String src)
      Initializes the image source in URL format.
      Parameters:
      src - the image source in URL format.
      Returns:
      the description instance with the update state (builder pattern).
    • src

      public T src(StringProperty src)
      Initializes the image source in URL format.
      Parameters:
      src - a StringProperty(or RegExpProperty) representing the image source in URL format.
      Returns:
      the description instance with the update state (builder pattern).
    • target

      public T target(String target)
      Initializes the name of the frame that will be navigated when user clicks on the frame.
      Parameters:
      target - the name of the frame that will be navigated when user clicks on the frame.
      Returns:
      the description instance with the update state (builder pattern).
    • target

      public T target(StringProperty target)
      Initializes the name of the frame that will be navigated when user clicks on the frame.
      Parameters:
      target - a StringProperty(or RegExpProperty) representing the name of the frame that will be navigated when user clicks on the frame.
      Returns:
      the description instance with the update state (builder pattern).
    • href

      public T href(String href)
      Initializes the location to which the browser navigates when the image is clicked.
      Parameters:
      href - the location to which the browser navigates when the image is clicked.
      Returns:
      the description instance with the update state (builder pattern).
    • href

      public T href(StringProperty href)
      Initializes the location to which the browser navigates when the image is clicked.
      Parameters:
      href - a StringProperty(or RegExpProperty) representing the location to which the browser navigates when the image is clicked.
      Returns:
      the description instance with the update state (builder pattern).
    • type

      public T type(ImageType type)
      Initializes the image type.
      Parameters:
      type - the image type.
      Returns:
      the description instance with the update state (builder pattern).