Calendarvariable
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').
Example
await Calendar('18 August 2014').setDay(13);
await Calendar('18 August 2014').has({ weekDay: 'Mo' });
await Calendar({ title: 'August 2014', day: 18 }).exists();
Filters
title: string – Filter by titleyear: number – Filter by yearmonth: string – Filter by monthday: number – Filter by dayweekDay: string – Filter by weekDay
Actions
nextMonth():Interaction– Switch calendar view to the next monthprevMonth():Interaction– Switch calendar view to the previous monthsetYear(value: number):Interaction– Switch calendar view to the target yearsetMonth(value: string):Interaction– Switch calendar view to the target monthsetDay(value: number):Interaction– Set a new date for calendar with previously selected year and month