Search Results for

    Show / Hide Table of Contents

    Class WindowsElementWrapper

    Defines an element wrapper for a .

    Inheritance
    System.Object
    ElementWrapper<WindowsElement>
    WindowsElementWrapper
    AutoSuggestBox
    Button
    CalendarDatePicker
    CalendarView
    CheckBox
    ComboBox
    CommandBar
    DatePicker
    FlipView
    GridView
    Hub
    InkToolbar
    InkToolbar.InkToolbarColorFlyoutBase
    ListBox
    ListView
    MenuFlyoutItem
    MenuFlyoutSubItem
    Pivot
    ProgressBar
    ProgressRing
    ScrollViewer
    Slider
    TextBlock
    TextBox
    TimePicker
    ToggleSwitch
    DropDownList
    InputValidator
    RadAutoCompleteBox
    RadBulletGraph
    RadBusyIndicator
    RadNumericBox
    BladeView
    BladeViewItem
    Carousel
    Expander
    InAppNotification
    RadialGauge
    InfoBar
    MenuBar
    MenuBarItem
    NavigationView
    NavigationViewItem
    NumberBox
    RatingControl
    TabView
    Implements
    IElementWrapper<WindowsElement>
    Inherited Members
    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
    Assembly: Legerity.Windows.dll
    Syntax
    public class WindowsElementWrapper : ElementWrapper<WindowsElement>, IElementWrapper<WindowsElement>

    Constructors

    | Improve this Doc View Source

    WindowsElementWrapper(WindowsElement)

    Initializes a new instance of the WindowsElementWrapper class.

    Declaration
    public WindowsElementWrapper(WindowsElement element)
    Parameters
    Type Name Description
    WindowsElement element

    The reference.

    Properties

    | Improve this Doc View Source

    Driver

    Gets the instance of the Appium driver for the Windows application.

    Declaration
    public WindowsDriver<WindowsElement> Driver { get; }
    Property Value
    Type Description
    WindowsDriver<WindowsElement>

    Methods

    | Improve this Doc View Source

    VerifyDriverElementShown(By, Nullable<TimeSpan>)

    Determines whether the specified element is shown with the specified timeout.

    Declaration
    protected void VerifyDriverElementShown(By locator, TimeSpan? timeout)
    Parameters
    Type Name Description
    By locator

    The locator to find a specific element.

    System.Nullable<TimeSpan> timeout

    The amount of time the driver should wait when searching for the locator if it is not immediately present.

    Exceptions
    Type Condition
    ElementNotShownException

    Thrown when an element is not shown for the expected locator.

    | Improve this Doc View Source

    VerifyDriverElementsShown(By, Nullable<TimeSpan>)

    Determines whether the specified elements are shown with the specified timeout.

    Declaration
    protected void VerifyDriverElementsShown(By locator, TimeSpan? timeout)
    Parameters
    Type Name Description
    By locator

    The locator to find a collection of elements.

    System.Nullable<TimeSpan> timeout

    The amount of time the driver should wait when searching for the locator if it is not immediately present.

    Exceptions
    Type Condition
    ElementsNotShownException

    Thrown when no elements are shown for the expected locator.

    Operators

    | Improve this Doc View Source

    Implicit(AppiumWebElement to WindowsElementWrapper)

    Allows conversion of a to the WindowsElementWrapper without direct casting.

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

    The .

    Returns
    Type Description
    WindowsElementWrapper

    The WindowsElementWrapper.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to WindowsElementWrapper)

    Allows conversion of a to the WindowsElementWrapper without direct casting.

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

    The .

    Returns
    Type Description
    WindowsElementWrapper

    The WindowsElementWrapper.

    | Improve this Doc View Source

    Implicit(WindowsElement to WindowsElementWrapper)

    Allows conversion of a to the WindowsElementWrapper without direct casting.

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

    The .

    Returns
    Type Description
    WindowsElementWrapper

    The WindowsElementWrapper.

    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