Class Switch
Defines a
Implements
IElementWrapper<AndroidElement>
Inherited Members
Namespace: Legerity.Android.Elements.Core
Assembly: Legerity.Android.dll
Syntax
public class Switch : AndroidElementWrapper, IElementWrapper<AndroidElement>
Constructors
| Improve this Doc View SourceSwitch(AndroidElement)
Initializes a new instance of the Switch class.
Declaration
public Switch(AndroidElement element)
Parameters
Type | Name | Description |
---|---|---|
AndroidElement | 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(AndroidElement to Switch)
Allows conversion of a
Declaration
public static implicit operator Switch(AndroidElement element)
Parameters
Type | Name | Description |
---|---|---|
AndroidElement | element | The |
Returns
Type | Description |
---|---|
Switch | The Switch. |
Implicit(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(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. |