Interface Toggle

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

public interface Toggle extends UiObjectBase, TestObject
A toggle object in a mobile application.
  • Method Details

    • set

      void set(boolean state) throws GeneralLeanFtException
      Sets the state of the object. For Android toggles (where ClassName="toggleButton"), use set(String) giving the state to set as the parameter.
      Parameters:
      state - sets whether this toggle will be checked.
      Throws:
      GeneralLeanFtException - if error occurs during execution
    • set

      void set(String state) throws GeneralLeanFtException
      Sets the state of the object by name.
      Parameters:
      state - possible values: the states defined in the toggle object.
      Throws:
      GeneralLeanFtException - if error occurs during execution