Interface EditField

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

public interface EditField extends Element, WaitUntilEnabledProvider
An edit field in a SAP GUI for Windows application.
  • Method Details

    • getAttachedText

      String getAttachedText() throws GeneralLeanFtException
      Returns the static text attached to the edit field.
      Returns:
      the static text.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • isHighlighted

      boolean isHighlighted() throws GeneralLeanFtException
      Indicates whether the edit field is highlighted.
      Returns:
      true if highlighted.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getIconName

      String getIconName() throws GeneralLeanFtException
      Returns the name of the edit field's icon.
      Returns:
      the name of the icon.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getMaxLength

      int getMaxLength() throws GeneralLeanFtException
      Returns the maximum number of characters in the edit field.
      Returns:
      the maximum number of characters.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • isNumerical

      boolean isNumerical() throws GeneralLeanFtException
      Indicates whether the edit field is a numerical field.
      Returns:
      true if numerical field.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • isRequired

      boolean isRequired() throws GeneralLeanFtException
      Indicates whether the edit field is required.
      Returns:
      true if required.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • getText

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

      void openPossibleEntries() throws GeneralLeanFtException
      Opens the list of possible entries for the edit field.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setText

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

      void setCursorPosition(int pos) throws GeneralLeanFtException
      Sets the position of the cursor within the edit field.
      Parameters:
      pos - The 0-based character position.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setFocus

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

      void setSecure(String encryptedText) throws GeneralLeanFtException
      Sets the encoded value of this edit field. The SetSecure method enables you to hide passwords displayed on the screen while running or editing a test. However, it is not intended to be a secure way to protect password information.
      Generate the encoded value using the Password Encoder utility (CryptonApp.exe), available in the OpenText Functional Testing for Developers installation\bin folder.
      Parameters:
      encryptedText - the encoded text to enter in this edit field.
      Throws:
      GeneralLeanFtException - if error occurs during execution