com.hp.lft.sdk.web

Interface Frame

    • Method Detail

      • getText

        java.lang.String getText()
                          throws GeneralLeanFtException
        Returns the inner text of the body element.
        Returns:
        the inner text of the body element.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • runJavaScript

        <TResult> TResult runJavaScript(java.lang.String scriptToRun,
                                        java.lang.Class<TResult> returnType)
                                 throws GeneralLeanFtException
        Runs the given JavaScript text in the frame's context and returns the result cast to returnType.
        Type Parameters:
        TResult - the generic type of return type.
        Parameters:
        scriptToRun - the JavaScript code to run.
        returnType - the type of return value.
        Returns:
        the numeric result of running the JavaScript code.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • runJavaScript

        java.lang.String runJavaScript(java.lang.String scriptToRun)
                                throws GeneralLeanFtException
        Runs the given JavaScript code in the frame's context and returns the result.
        Parameters:
        scriptToRun - the JavaScript code to run.
        Returns:
        the result of running the JavaScript code as a string.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.