/// <summary> /// Open month view in Calendar Selector /// </summary> public void OpenMonthViewInCalendarSelector(int targetDay = 15) { HtmlTable daysTable = EM.Events.EventsFrontend.DaysInMonthTableCalendarSelector; daysTable.AssertIsPresent("Day table"); HtmlTableCell day = daysTable.Find.ByExpression <HtmlTableCell>("InnerText=" + targetDay); day.AssertIsPresent("Day"); HtmlAnchor monthLink = day.Find.AllByTagName <HtmlAnchor>("a").First(); monthLink.AssertIsPresent("Day link"); monthLink.Focus(); monthLink.Click(); }
/// <summary> /// Select month in Calendar Selector /// </summary> /// <param name="monthName">Month name</param> public void SelectMonthInCalendarSelector(string monthName) { HtmlTable monthsTable = EM.Events.EventsFrontend.MonthsTableCalendarSelector; monthsTable.AssertIsPresent("Month table"); HtmlTableCell month = monthsTable.Find.ByExpression <HtmlTableCell>("InnerText=" + monthName); month.AssertIsPresent("Month"); HtmlAnchor monthLink = month.Find.AllByTagName <HtmlAnchor>("a").First(); monthLink.AssertIsPresent("Month link"); monthLink.Focus(); monthLink.Click(); }