com.hp.lft.sdk.java

Interface Editor

    • Method Detail

      • clickLink

        void clickLink(java.lang.String linkName)
                throws GeneralLeanFtException
        Clicks the specified link in the edit box.
        Parameters:
        linkName - the name of the link to click.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • delete

        void delete(int fromLine,
                    int fromCharPos,
                    int toLine,
                    int toCharPos)
             throws GeneralLeanFtException
        Deletes the specified text. All positions are 0-based.
        Parameters:
        fromLine - the line in which the deletion starts.
        fromCharPos - the character position at which the deletion starts in the first line, inclusive.
        toLine - the line in which the deletion ends.
        toCharPos - the character position at which the deletion ends in the last line, inclusive.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • insert

        void insert(java.lang.String text,
                    int line,
                    int charPos)
             throws GeneralLeanFtException
        Inserts text into the specified location in the edit box. All positions are 0-based.
        Parameters:
        text - the string to insert.
        line - the line in which to insert the text.
        charPos - the character position at which to insert the text.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • replace

        void replace(java.lang.String text,
                     int fromLine,
                     int fromCharPos,
                     int toLine,
                     int toCharPos)
              throws GeneralLeanFtException
        Replaces text.
        Parameters:
        text - the text that replaces the existing text.
        fromLine - the line in which the replacement starts.
        fromCharPos - the character position at which the replacement starts in the first line, inclusive.
        toLine - the line in which the replacement ends.
        toCharPos - the character position at which the replacement ends in the last line, inclusive.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • setSecure

        void setSecure(java.lang.String encryptedText)
                throws GeneralLeanFtException
        Sets the encoded value of this edit box.
        The SetSecure method enables you to hide passwords displayed on the screen while running or editing a LeanFT test. This method is not a secure way to protect password information.
        Generate the encoded value using the Password Encoder utility (CryptonApp.exe), available from the LeanFT menu in your IDE, or from the LeanFT installation\bin folder.
        Parameters:
        encryptedText - the encoded text.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • select

        void select(int fromLine,
                    int fromCharPos,
                    int toLine,
                    int toCharPos)
             throws GeneralLeanFtException
        Selects text in the edit box. All positions are 0-based.
        Parameters:
        fromLine - the line in which the selection starts.
        fromCharPos - the character position at which the selection starts in the first line, inclusive.
        toLine - the line in which the selection ends.
        toCharPos - the character position at which the selection ends in the last line, inclusive.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.
      • setCursorPosition

        void setCursorPosition(int line,
                               int charPos)
                        throws GeneralLeanFtException
        Places the cursor at the specified location in the edit box. All positions are 0-based.
        Parameters:
        line - the line in which the cursor is placed.
        charPos - the character position at which the cursor is placed.
        Throws:
        GeneralLeanFtException - if an error occurs during execution.