Search Results for

    Show / Hide Table of Contents

    Class Switch

    Defines a wrapper for the core Android Switch control.

    Inheritance
    System.Object
    ElementWrapper<AndroidElement>
    AndroidElementWrapper
    Switch
    Implements
    IElementWrapper<AndroidElement>
    Inherited Members
    AndroidElementWrapper.Driver
    AndroidElementWrapper.VerifyDriverElementShown(By, Nullable<TimeSpan>)
    AndroidElementWrapper.VerifyDriverElementsShown(By, Nullable<TimeSpan>)
    ElementWrapper<AndroidElement>.Element
    ElementWrapper<AndroidElement>.ElementDriver
    ElementWrapper<AndroidElement>.IsVisible
    ElementWrapper<AndroidElement>.IsEnabled
    ElementWrapper<AndroidElement>.Click()
    ElementWrapper<AndroidElement>.GetAttribute(String)
    ElementWrapper<AndroidElement>.FindElement(By)
    ElementWrapper<AndroidElement>.VerifyElementNotShown(By)
    ElementWrapper<AndroidElement>.VerifyElementShown(By)
    ElementWrapper<AndroidElement>.VerifyElementShown(By, Nullable<TimeSpan>)
    ElementWrapper<AndroidElement>.VerifyElementsShown(By)
    ElementWrapper<AndroidElement>.VerifyElementsShown(By, Nullable<TimeSpan>)
    Namespace: Legerity.Android.Elements.Core
    Assembly: Legerity.Android.dll
    Syntax
    public class Switch : AndroidElementWrapper, IElementWrapper<AndroidElement>

    Constructors

    | Improve this Doc View Source

    Switch(AndroidElement)

    Initializes a new instance of the Switch class.

    Declaration
    public Switch(AndroidElement element)
    Parameters
    Type Name Description
    AndroidElement element

    The reference.

    Properties

    | Improve this Doc View Source

    IsOn

    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 Source

    ToggleOff()

    Toggles the switch off.

    Declaration
    public virtual void ToggleOff()
    | Improve this Doc View Source

    ToggleOn()

    Toggles the switch on.

    Declaration
    public virtual void ToggleOn()

    Operators

    | Improve this Doc View Source

    Implicit(AndroidElement to Switch)

    Allows conversion of a to the Switch without direct casting.

    Declaration
    public static implicit operator Switch(AndroidElement element)
    Parameters
    Type Name Description
    AndroidElement element

    The .

    Returns
    Type Description
    Switch

    The Switch.

    | Improve this Doc View Source

    Implicit(AppiumWebElement to Switch)

    Allows conversion of a to the Switch without direct casting.

    Declaration
    public static implicit operator Switch(AppiumWebElement element)
    Parameters
    Type Name Description
    AppiumWebElement element

    The .

    Returns
    Type Description
    Switch

    The Switch.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to Switch)

    Allows conversion of a to the Switch without direct casting.

    Declaration
    public static implicit operator Switch(RemoteWebElement element)
    Parameters
    Type Name Description
    RemoteWebElement element

    The .

    Returns
    Type Description
    Switch

    The Switch.

    Implements

    IElementWrapper<TElement>

    Extension Methods

    AndroidElementWrapperExtensions.TryWaitUntil<TElementWrapper, TResult>(TElementWrapper, Func<TElementWrapper, TResult>, Nullable<TimeSpan>, Int32, Action<Exception>)
    AndroidElementWrapperExtensions.WaitUntil<TElementWrapper, TResult>(TElementWrapper, Func<TElementWrapper, TResult>, Nullable<TimeSpan>, Int32)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright (c) MADE Apps