Class DatePicker
Defines a
Implements
IElementWrapper<WindowsElement>
Inherited Members
Namespace: Legerity.Windows.Elements.Core
Assembly: Legerity.Windows.dll
Syntax
public class DatePicker : WindowsElementWrapper, IElementWrapper<WindowsElement>
Constructors
| Improve this Doc View SourceDatePicker(WindowsElement)
Initializes a new instance of the DatePicker class.
Declaration
public DatePicker(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Properties
| Improve this Doc View SourceSelectedDate
Gets the value of the date picker as a
Declaration
public virtual DateTime? SelectedDate { get; }
Property Value
Type | Description |
---|---|
System.Nullable<DateTime> |
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 SourceSetDate(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 SourceImplicit(AppiumWebElement to DatePicker)
Allows conversion of a
Declaration
public static implicit operator DatePicker(AppiumWebElement element)
Parameters
Type | Name | Description |
---|---|---|
AppiumWebElement | element | The |
Returns
Type | Description |
---|---|
DatePicker | The DatePicker. |
Implicit(RemoteWebElement to DatePicker)
Allows conversion of a
Declaration
public static implicit operator DatePicker(RemoteWebElement element)
Parameters
Type | Name | Description |
---|---|---|
RemoteWebElement | element | The |
Returns
Type | Description |
---|---|
DatePicker | The DatePicker. |
Implicit(WindowsElement to DatePicker)
Allows conversion of a
Declaration
public static implicit operator DatePicker(WindowsElement element)
Parameters
Type | Name | Description |
---|---|---|
WindowsElement | element | The |
Returns
Type | Description |
---|---|
DatePicker | The DatePicker. |