com.hp.lft.sdk.web

Interface Page

    • Method Detail

      • getAbsoluteLocation

        java.awt.Point getAbsoluteLocation()
                                    throws GeneralLeanFtException
        Returns this object's absolute coordinates relative to the screen (in pixels).
        0,0 is always the top-left corner of the (primary) monitor.
        Returns:
        the object's absolute coordinates relative to the screen (in pixels).
        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 code in the page's context and returns the result cast to returnType.
        Type Parameters:
        TResult - the generic type of returntype.
        Parameters:
        scriptToRun - the JavaScript code to run.
        returnType - the type of return value.
        Returns:
        the numeric result of running the JavaScript.
        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 page's context and returns the result.
        Parameters:
        scriptToRun - the JavaScript code to run.
        Returns:
        the string result of running the JavaScript.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.