Interface IToggle
A toggle object in a mobile application.
Inherited Members
Namespace: HP.LFT.SDK.Mobile
Assembly: HP.LFT.SDK.dll
Syntax
public interface IToggle : ITestObject, ITestObjectDescriber, IUiObjectBase, IEnabledProvider
Methods
Set(bool)
Sets the state of the object.
Declaration
void Set(bool state)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | state | Indicates whether this toggle will be checked. |
Remarks
For Android toggles (where Class="toggleButton"), use Set(string) giving the state to set as the parameter.
Set(string)
Sets the state of the object by name.
Declaration
void Set(string state)
Parameters
| Type | Name | Description |
|---|---|---|
| string | state | Possible values: The states defined in the toggle object. |