Search Results for

    Show / Hide Table of Contents

    Class DatePicker

    Defines a wrapper for the core Android DatePicker control.

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

    Constructors

    | Improve this Doc View Source

    DatePicker(AndroidElement)

    Initializes a new instance of the DatePicker class.

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

    The reference.

    Properties

    | Improve this Doc View Source

    DateTextView

    Gets the element associated with the date text.

    This will be in the format, 'ddd, MMM d'.

    Declaration
    public virtual TextView DateTextView { get; }
    Property Value
    Type Description
    TextView
    | Improve this Doc View Source

    DayPickerView

    Gets the element associated with the day picker.

    Declaration
    public virtual View DayPickerView { get; }
    Property Value
    Type Description
    View
    | Improve this Doc View Source

    NextMonthButton

    Gets the element associated with the next month button.

    Declaration
    public virtual Button NextMonthButton { get; }
    Property Value
    Type Description
    Button
    | Improve this Doc View Source

    PreviousMonthButton

    Gets the element associated with the previous month button.

    Declaration
    public virtual Button PreviousMonthButton { get; }
    Property Value
    Type Description
    Button
    | Improve this Doc View Source

    SelectedDate

    Gets the selected date/time value.

    Declaration
    public virtual DateTime SelectedDate { get; }
    Property Value
    Type Description
    DateTime
    | Improve this Doc View Source

    YearTextView

    Gets the element associated with the year text.

    This will be in the format, 'YYYY'.

    Declaration
    public virtual TextView YearTextView { get; }
    Property Value
    Type Description
    TextView

    Methods

    | Improve this Doc View Source

    SetDate(DateTime)

    Sets the selected date of the date picker.

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

    The date to set to.

    Operators

    | Improve this Doc View Source

    Implicit(AndroidElement to DatePicker)

    Allows conversion of a to the DatePicker without direct casting.

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

    The .

    Returns
    Type Description
    DatePicker

    The DatePicker.

    | 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.

    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