Interface EditField

All Superinterfaces:
EnabledProvider, TestObject, TestObjectDescriber, UiObjectBase, WaitUntilEnabledProvider

public interface EditField extends UiObjectBase, TestObject
An edit object in a mobile application.
  • Method Details

    • isPassword

      boolean isPassword() throws GeneralLeanFtException
      Indicates whether this mobile edit object is a password box. (Android only)
      Returns:
      true if this mobile edit object is a password box.
      Throws:
      GeneralLeanFtException - if error occurs during execution
      GeneralLeanFtException - if error occurs during execution
    • setText

      void setText(String text) throws GeneralLeanFtException
      Sets the specified text in the edit box.
      Parameters:
      text - the text to enter in the edit box.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setSecure

      void setSecure(String text) throws GeneralLeanFtException
      Generate the encoded value using the Password Encoder utility, available from the OpenText Functional Testing for Developers > Tools menu in your IDE or from the Windows Start menu.
      Note: This method enables you to hide passwords displayed on the screen while running or editing a test, but it is not intended to be a secure way to protect password information.
      Parameters:
      text - the password to enter in the edit box.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • setFocus

      void setFocus() throws GeneralLeanFtException
      Brings the edit box into focus.
      Throws:
      GeneralLeanFtException - if error occurs during execution