Search Results for

    Show / Hide Table of Contents

    Class DatePicker

    Defines a wrapper for the core UWP DatePicker control.

    Inheritance
    System.Object
    ElementWrapper<WindowsElement>
    WindowsElementWrapper
    DatePicker
    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 DatePicker : WindowsElementWrapper, IElementWrapper<WindowsElement>

    Constructors

    | Improve this Doc View Source

    DatePicker(WindowsElement)

    Initializes a new instance of the DatePicker class.

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

    The reference.

    Properties

    | Improve this Doc View Source

    SelectedDate

    Gets the value of the date picker as a .

    Declaration
    public virtual DateTime? SelectedDate { get; }
    Property Value
    Type Description
    System.Nullable<DateTime>
    | Improve this Doc View Source

    Value

    Gets the value of the date picker.

    Declaration
    public virtual string Value { get; }
    Property Value
    Type Description
    System.String

    Methods

    | Improve this Doc View Source

    SetDate(DateTime)

    Sets the date to the specified date.

    Declaration
    public virtual void SetDate(DateTime date)
    Parameters
    Type Name Description
    DateTime date

    The date to set.

    Operators

    | Improve this Doc View Source

    Implicit(AppiumWebElement to DatePicker)

    Allows conversion of a to the DatePicker without direct casting.

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

    The .

    Returns
    Type Description
    DatePicker

    The DatePicker.

    | Improve this Doc View Source

    Implicit(RemoteWebElement to DatePicker)

    Allows conversion of a to the DatePicker without direct casting.

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

    The .

    Returns
    Type Description
    DatePicker

    The DatePicker.

    | Improve this Doc View Source

    Implicit(WindowsElement to DatePicker)

    Allows conversion of a to the DatePicker without direct casting.

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

    The .

    Returns
    Type Description
    DatePicker

    The DatePicker.

    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