Interface Editor

All Superinterfaces:
Clickable, DoubleClickable, EnabledProvider, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber, UiObjectBase, VisibleProvider, WaitUntilEnabledProvider, WaitUntilVisibleProvider

public interface Editor extends UiObjectBase, TestObject
A Java edit box.
  • Method Details

    • activate

      void activate() throws GeneralLeanFtException
      Activates the edit box.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • clickLink

      void clickLink(String linkName) throws GeneralLeanFtException
      Clicks the specified link in the edit box.
      Parameters:
      linkName - the name of the link to click.
      Throws:
      GeneralLeanFtException - if 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 error occurs during execution
    • insert

      void insert(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 error occurs during execution
    • replace

      void replace(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 error occurs during execution
    • setText

      void setText(String text) throws GeneralLeanFtException
      Sets the text of the edit box.
      Parameters:
      text - the text.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setFocus

      void setFocus() throws GeneralLeanFtException
      Sets the focus on the edit box.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setSecure

      void setSecure(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 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 OpenText Functional Testing for Developers menu in your IDE, or from the OpenText Functional Testing for Developers installation\bin folder.
      Parameters:
      encryptedText - the encoded text.
      Throws:
      GeneralLeanFtException - if 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 error occurs during execution
    • isReadOnly

      boolean isReadOnly() throws GeneralLeanFtException
      Indicates whether the object is read only.
      Returns:
      true if the object is read only.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getText

      String getText() throws GeneralLeanFtException
      Returns the object's text.
      Returns:
      the text.
      Throws:
      GeneralLeanFtException - if 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 error occurs during execution