Interface Editor

All Superinterfaces:
Element, EnabledProvider, LocationInfoProvider, SupportsNativeObject, TestObject, TestObjectDescriber, WaitUntilEnabledProvider

public interface Editor extends Element, WaitUntilEnabledProvider
A text area control in a SAP GUI for Windows application.
  • Method Details

    • getText

      String getText() throws GeneralLeanFtException
      Returns the text value of the editor.
      Returns:
      the text.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • doubleClick

      void doubleClick() throws GeneralLeanFtException
      Double-clicks inside the text area at the cursor position.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setText

      void setText(String text) throws GeneralLeanFtException
      Sets the specified text in the text area.
      Parameters:
      text - the text.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • select

      void select(int startPos, int endPos) throws GeneralLeanFtException
      Selects the specified section of text and positions the cursor at the end of the selection.
      Parameters:
      startPos - the 0-based position of the first character.
      endPos - the 0-based position of the last character.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setCursorPosition

      void setCursorPosition(int pos) throws GeneralLeanFtException
      Sets the cursor to the specified character position.
      Parameters:
      pos - the character position.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setUnprotectedTextPart

      void setUnprotectedTextPart(String text, int sectionNumber) throws GeneralLeanFtException
      Sets the specified text in the predefined unprotected sections of the text area.
      Parameters:
      text - the text .
      sectionNumber - The 1-based index of the unprotected section in which the text is set. Unprotected sections of the text area are numbered from top to bottom.
      Throws:
      GeneralLeanFtException - if error occurs during execution