Search Results for

    Show / Hide Table of Contents

    Class ToggleSwitch

    Defines a wrapper for the core UWP ToggleSwitch control.

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

    Constructors

    | Improve this Doc View Source

    ToggleSwitch(WindowsElement)

    Initializes a new instance of the ToggleSwitch class.

    Declaration
    public ToggleSwitch(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement 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 ToggleSwitch)

    Allows conversion of a to the ToggleSwitch without direct casting.

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

    The .

    Returns
    Type Description
    ToggleSwitch

    The ToggleSwitch.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to ToggleSwitch)

    Allows conversion of a to the ToggleSwitch without direct casting.

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

    The .

    Returns
    Type Description
    ToggleSwitch

    The ToggleSwitch.

    | Improve this Doc View Source

    Implicit(WindowsElement to ToggleSwitch)

    Allows conversion of a to the ToggleSwitch without direct casting.

    Declaration
    public static implicit operator ToggleSwitch(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The .

    Returns
    Type Description
    ToggleSwitch

    The ToggleSwitch.

    Implements

    IElementWrapper<TElement>

    Extension Methods

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