Class LinkDescription

All Implemented Interfaces:
CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, Cloneable

public class LinkDescription extends WebElementDescription
The description of a Web Link test object.
  • Constructor Details

    • LinkDescription

      public LinkDescription()
      Initializes a new instance of the Link class.
    • LinkDescription

      protected LinkDescription(LinkDescription.Init<?> init)
      Initializes a new instance of the LinkDescription class using the Builder pattern.
      Parameters:
      init - the Builder pattern.
  • Method Details

    • setTarget

      public void setTarget(StringProperty target)
      Sets the name of the frame that will be navigated to when the user clicks on the frame.
      Parameters:
      target - a StringProperty(or RegExpProperty) representing the name of the target frame of the navigation. Possible values: Any valid HTML target attribute value, for example, framename, _blank, or _self.
    • setTarget

      public void setTarget(String target)
      Sets the name of the frame that will be navigated to when the user clicks on the frame.
      Parameters:
      target - the target frame of the navigation. Possible values: Any valid HTML target attribute value, for example, framename, _blank, or _self.
    • getTarget

      public StringProperty getTarget()
      Returns the target frame of the navigation.
      Returns:
      the name of the frame target frame of the navigation. Possible values: Any valid HTML target attribute value, for example, framename, _blank, or _self.
    • setFontName

      public void setFontName(StringProperty fontName)
      Sets the link's font name.
      Parameters:
      fontName - a StringProperty(or RegExpProperty) representing the font name.
    • setFontName

      public void setFontName(String fontName)
      Sets the link's font name.
      Parameters:
      fontName - the font name.
    • getFontName

      public StringProperty getFontName()
      Returns the link's font name.
      Returns:
      the link's font name.
    • setHref

      public void setHref(StringProperty href)
      Sets 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.
    • setHref

      public void setHref(String href)
      Sets 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.
    • getHref

      public StringProperty getHref()
      Returns the location to which the browser navigates when the image is clicked.
      Returns:
      the location to which the browser navigates when the image is clicked.
    • setColor

      public void setColor(StringProperty color)
      Sets the link's color.
      Parameters:
      color - a StringProperty(or RegExpProperty) representing the link's color.
    • setColor

      public void setColor(String color)
      Sets the link's color.
      Parameters:
      color - the link's color.
    • getColor

      public StringProperty getColor()
      Returns the link's color.
      Returns:
      the link's color.
    • setBackgroundColor

      public void setBackgroundColor(StringProperty color)
      Sets the link's background color.
      Parameters:
      color - a StringProperty(or RegExpProperty) representing the link's background color.
    • setBackgroundColor

      public void setBackgroundColor(String color)
      Sets the link's background color.
      Parameters:
      color - the link's background color.
    • getBackgroundColor

      public StringProperty getBackgroundColor()
      Returns the link's background color.
      Returns:
      the link's background color.