com.hp.lft.sdk.web

Interface WebTestObject

    • Method Detail

      • getInnerHTML

        java.lang.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 an error occurs during execution.
      • getOuterHTML

        java.lang.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 an error occurs during execution.
      • getInnerText

        java.lang.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 an error occurs during execution.
      • getOuterText

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

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

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

        java.lang.String getAttribute(java.lang.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 an error occurs during execution.
      • getComputedStyles

        java.util.Map<java.lang.String,java.lang.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 an error occurs during execution.
      • getComputedStyle

        java.lang.String getComputedStyle(java.lang.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 an error occurs during execution.