DateTimeFieldvariable
Call this InteractorConstructor to initialize a date-time field Interactor. The date-time field interactor can be used to interact with date
fields on the page and to assert on their state. A date-time field is the date-time type input
tag with a text-like interface.
The date-time field is located by the text of its label.
Example
await DateTimeField('Appointment').fillIn('2012-06-13T09:13');
await DateTimeField('Appointment').has({ value: '2014-08-18T09:13' });
await DateTimeField({ id: 'appointment', disabled: true }).exists();
Filters
title: string – Filter by titleid: string – Filter by idvisible: boolean – Filter by visibility. Defaults totrue. SeeisVisible.value: string – Filter by the date-time field's current value in ISO format.timestamp: number – Filter by the date-time field's current value as timestamp.placeholder: string – Filter by the date-time field's placeholder attribute.valid: boolean – Filter by whether the date-time field is valid.disabled: boolean – Filter by whether the date-time field is disabled. Defaults tofalse.focused: boolean – Filter by whether the date-time field is focused. Seefocused.
Actions
click():Interaction– Click on the date-time fieldfocus():Interaction– Move focus to the date-time fieldblur():Interaction– Move focus away from the date-time fieldfillIn(value: string):Interaction– Fill in the date-time field with the given value. SeefillIn.