Class Switch
Defines a
Implements
IElementWrapper<IOSElement>
Inherited Members
Namespace: Legerity.IOS.Elements.Core
Assembly: Legerity.IOS.dll
Syntax
public class Switch : IOSElementWrapper, IElementWrapper<IOSElement>
Constructors
| Improve this Doc View SourceSwitch(IOSElement)
Initializes a new instance of the Switch class.
Declaration
public Switch(IOSElement element)
Parameters
Type | Name | Description |
---|---|---|
IOSElement | element | The |
Properties
| Improve this Doc View SourceIsOn
Gets a value indicating whether the toggle switch is in the on position.
Declaration
public virtual bool IsOn { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Methods
| Improve this Doc View SourceToggleOff()
Toggles the switch off.
Declaration
public virtual void ToggleOff()
ToggleOn()
Toggles the switch on.
Declaration
public virtual void ToggleOn()
Operators
| Improve this Doc View SourceImplicit(AppiumWebElement to Switch)
Allows conversion of a
Declaration
public static implicit operator Switch(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
Switch | The Switch. |
Implicit(IOSElement to Switch)
Allows conversion of a
Declaration
public static implicit operator Switch(IOSElement element)
Parameters
Type | Name | Description |
---|---|---|
IOSElement | element | The |
Returns
Type | Description |
---|---|
Switch | The Switch. |
Implicit(RemoteWebElement to Switch)
Allows conversion of a
Declaration
public static implicit operator Switch(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
Switch | The Switch. |