Class PageDescription

java.lang.Object
com.hp.lft.sdk.internal.PropertiesDescriptionBase
All Implemented Interfaces:
CloneableObject, Description, com.hp.lft.sdk.internal.DescriptionWithVri, Cloneable

public class PageDescription extends DescriptionBase
The description of a Web Page test object.
  • Constructor Details

    • PageDescription

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

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

    • setUrl

      public void setUrl(StringProperty url)
      Sets the URL of the page.
      Parameters:
      url - a StringProperty(or RegExpProperty) representing the URL of the page.
    • setUrl

      public void setUrl(String url)
      Sets the URL of the page.
      Parameters:
      url - the URL of the page.
    • getUrl

      public StringProperty getUrl()
      Returns the URL of the page.
      Returns:
      the URL of the page.
    • setText

      public void setText(StringProperty text)
      Sets the inner text of the body element.
      Parameters:
      text - a StringProperty(or RegExpProperty) representing the inner text of the body element.
    • setText

      public void setText(String text)
      Sets the inner text of the body element.
      Parameters:
      text - the inner text of the body element.
    • getText

      public StringProperty getText()
      Returns the inner text of the body element.
      Returns:
      the inner text of the body element.
    • setTitle

      public void setTitle(String title)
      Sets the element's title attribute (provides additional information on the element).
      Parameters:
      title - the element's title attribute (provides additional information on the element).
    • setTitle

      public void setTitle(StringProperty title)
      Sets the element's title attribute (provides additional information on the element).
      Parameters:
      title - a StringProperty(or RegExpProperty) representing the element's title attribute (provides additional information on the element).
    • getTitle

      public StringProperty getTitle()
      Returns the page's title attribute.
      Returns:
      the page's title attribute.
    • setAbsoluteLocation

      public void setAbsoluteLocation(LocationProperty absLocation)
      Sets the object's absolute coordinates relative to the screen (in pixels).
      0,0 is always the top-left corner of the (primary) monitor.
      Parameters:
      absLocation - a LocationProperty representing the object's absolute coordinates relative to the screen (in pixels).
    • setAbsoluteLocation

      public void setAbsoluteLocation(Integer absX, Integer absY)
      Sets the object's absolute coordinates relative to the screen (in pixels).
      0,0 is always the top-left corner of the (primary) monitor.
      Parameters:
      absX - the absolute X coordinate of the test object location.
      absY - the absolute Y coordinate of the test object location.
    • setAbsoluteLocation

      public void setAbsoluteLocation(Point absLocation)
      Sets the object's absolute coordinates relative to the screen (in pixels).
      0,0 is always the top-left corner of the (primary) monitor.
      Parameters:
      absLocation - a Point representing the object's absolute coordinates relative to the screen (in pixels).
    • getAbsoluteLocation

      public LocationProperty getAbsoluteLocation()
      Returns the object's absolute coordinates relative to the screen (in pixels).
      Returns:
      the object's absolute coordinates relative to the screen (in pixels).
    • setSize

      public void setSize(SizeProperty size)
      Sets the test object's size (in pixels).
      Parameters:
      size - the test object's size (in pixels).
    • setSize

      public void setSize(Dimension size)
      Sets the test object's size (in pixels).
      Parameters:
      size - the test object's size (in pixels).
    • setSize

      public void setSize(Integer width, Integer height)
      Sets the test object's size (in pixels).
      Parameters:
      width - the width of the test object (in pixels).
      height - the height of the test object (in pixels).
    • getSize

      public SizeProperty getSize()
      Returns the test object's size (in pixels).
      Returns:
      the test object's size (in pixels).