Variable DateTimeFieldConst

DateTimeField: any = DateTimeFieldInteractor

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.

await DateTimeField('Appointment').fillIn('2012-06-13T09:13');
await DateTimeField('Appointment').has({ value: '2014-08-18T09:13' });
await DateTimeField({ id: 'appointment', disabled: true }).exists();
  • title: string – Filter by title
  • id: string – Filter by id
  • visible: boolean – Filter by visibility. Defaults to true. See isVisible.
  • 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 to false.
  • focused: boolean – Filter by whether the date-time field is focused. See focused.
  • click(): Interaction – Click on the date-time field
  • focus(): Interaction – Move focus to the date-time field
  • blur(): Interaction – Move focus away from the date-time field
  • fillIn(value: string): Interaction – Fill in the date-time field with the given value. See fillIn.