Interface WebTestObject

All Superinterfaces:
LocationInfoProvider, SupportsNativeObject, TestObjectDescriber, VisibleProvider, WaitUntilVisibleProvider, WebTestObjectDescriber
All Known Subinterfaces:
Accordion, AgGrid, Area, AudioControl, Button, Button, Calendar, Carousel, CheckBox, CheckBox, DatePicker, DateTimeInput, Dialog, EditField, EditField, FacetFilter, FileField, Frame, GridBase<T>, Header, Image, Label, Link, ListBox, ListBox, Menu, Menu, Menubar, NavigationBar, NotificationBar, NumericField, Paginator, Password, RadioButton, RadioGroup, RadioGroup, RatingIndicator, RoadMap, RowRepeater, Slider, Table, Table, TabStrip, TabStrip, Tile, ToggleButton, ToolBar, TreeView, TreeView, UiGrid, VideoControl, WebElement

A generic Web test object used only for implementation. Do not use to describe a concrete web test object.
  • Method Details

    • getClassName

      String getClassName() throws GeneralLeanFtException
      Returns the element's CSS class.
      Returns:
      the element's CSS class.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getId

      Returns the element's HTML identifier.
      Returns:
      the element's HTML identifier.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getTagName

      String getTagName() throws GeneralLeanFtException
      Returns the element's tag name.
      Returns:
      the element's tag name.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getInnerHTML

      String getInnerHTML() throws GeneralLeanFtException
      Returns the element's HTML not including the current element.
      Returns:
      the element's HTML not including the current element.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getOuterHTML

      String getOuterHTML() throws GeneralLeanFtException
      Returns the element's HTML, including the current element.
      Returns:
      the element's HTML, including the current element.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getInnerText

      String getInnerText() throws GeneralLeanFtException
      Returns the text contained between the object's start and end tags.
      Returns:
      the text contained between the object's start and end tags.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getOuterText

      String getOuterText() throws GeneralLeanFtException
      Returns the object's text.
      Note: Supported in Internet Explorer only.
      Returns:
      the object's text.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getName

      String getName() throws GeneralLeanFtException
      Returns the object's name.
      Returns:
      the object's name.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getTitle

      String getTitle() throws GeneralLeanFtException
      Returns the element's title attribute.
      Returns:
      the element's title attribute.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • isVisible

      boolean isVisible() throws GeneralLeanFtException
      Indicates whether the current element is visible.
      Specified by:
      isVisible in interface VisibleProvider
      Returns:
      true, if the current element is visible.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getAttributes

      Map<String,String> getAttributes() throws GeneralLeanFtException
      Returns a copy of the collection of attributes that is attached to the element, for example, "id","class",etc.
      Returns:
      a copy of the collection of attributes that is attached to the element for example, "id","class",etc.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getAttribute

      String getAttribute(String attributeName) throws GeneralLeanFtException
      Returns the value of a single attribute.
      Parameters:
      attributeName - the attribute name for the value to retrieve.
      Returns:
      the value of the specified attribute (null if the attribute does not exist).
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getComputedStyles

      Map<String,String> getComputedStyles() throws GeneralLeanFtException
      Returns the element's computed styles as a dictionary with the name of the style as the key.
      Returns:
      the element's computed styles as a dictionary with the name of the style as the key.
      Note: returns an empty collection when run against Internet Explorer 8 or when the document mode of another Internet Explorer version is set to Internet 8 or earlier.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getComputedStyle

      String getComputedStyle(String styleProperty) throws GeneralLeanFtException
      Returns the value of a single style.
      Parameters:
      styleProperty - the style property for the value to retrieve.
      Returns:
      the value of the specified style (null if the style property does not exist).
      Throws:
      GeneralLeanFtException - if error occurs during execution