Search Results for

    Show / Hide Table of Contents

    Class Switch

    Defines a wrapper for the core iOS Switch control.

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

    Constructors

    | Improve this Doc View Source

    Switch(IOSElement)

    Initializes a new instance of the Switch class.

    Declaration
    public Switch(IOSElement element)
    Parameters
    Type Name Description
    IOSElement 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(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(IOSElement to Switch)

    Allows conversion of a to the Switch without direct casting.

    Declaration
    public static implicit operator Switch(IOSElement element)
    Parameters
    Type Name Description
    IOSElement 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

    IOSElementWrapperExtensions.TryWaitUntil<TElementWrapper, TResult>(TElementWrapper, Func<TElementWrapper, TResult>, Nullable<TimeSpan>, Int32, Action<Exception>)
    IOSElementWrapperExtensions.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