com.hp.lft.sdk.web

Interface WebTestObjectDescriber

    • Method Detail

      • describe

        <TChild extends WebElement> TChild describe(java.lang.Class<TChild> type,
                                                    XPathDescription xpath)
                                             throws GeneralLeanFtException
        Describes a child test object using the provided XPath.
        The current instance test object is the parent of the returned test object.
        UFT Developer searches for this test object only when an operation on this test object is invoked. This means that if the test object is not found in the application, this command still succeeds. In this case, an exception is thrown only when an operation is invoked.
        Type Parameters:
        TChild - the generic type of the child test object.
        Parameters:
        type - the child test object type.
        xpath - the XPath used to find the child test object.
        Returns:
        the requested child test object with its description.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • describe

        <TChild extends WebElement> TChild describe(java.lang.Class<TChild> type,
                                                    CSSDescription css)
                                             throws GeneralLeanFtException
        Describes a child test object using the provided CSS selector.
        The current instance test object is the parent of the returned test object.
        UFT Developer searches for this test object only when an operation on this test object is invoked. This means that if the test object is not found in the application, this command still succeeds. In this case, an exception is thrown only when an operation is invoked.
        Type Parameters:
        TChild - the generic type of the child test object.
        Parameters:
        type - the child test object type.
        css - the CSS selector query used to find the child test object.
        Returns:
        the requested child test object with its description.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.