Variable CalendarConst

Calendar: any = CalendarInteractor

Call this InteractorConstructor to initialize a calendar Interactor. The calendar interactor can be used to interact with calendars on the page and to assert on their state.

The calendar is located by selected day and title text divided by space (ex. '18 August 2014').

await Calendar('18 August 2014').setDay(13);
await Calendar('18 August 2014').has({ weekDay: 'Mo' });
await Calendar({ title: 'August 2014', day: 18 }).exists();
  • title: string – Filter by title
  • year: number – Filter by year
  • month: string – Filter by month
  • day: number – Filter by day
  • weekDay: string – Filter by weekDay
  • nextMonth(): Interaction – Switch calendar view to the next month
  • prevMonth(): Interaction – Switch calendar view to the previous month
  • setYear(value: number): Interaction – Switch calendar view to the target year
  • setMonth(value: string): Interaction – Switch calendar view to the target month
  • setDay(value: number): Interaction – Set a new date for calendar with previously selected year and month