/// <summary>
        /// Verifies What is this link and information
        /// </summary>
        public void VerifyWhatsThis()
        {
            ActiveBrowser.RefreshDomTree();
            HtmlAnchor whatsThisLink = this.EM.Search.SearchBoxWidgetEditScreen.WhatsThisLink;

            whatsThisLink.AssertIsPresent("What's this link");
            whatsThisLink.MouseHover();
            this.EM.Search.SearchBoxWidgetEditScreen.WhatsThisInfo.AssertIsPresent("What's this div");
        }
        /// <summary>
        /// Gets an option link from the more menu.
        /// </summary>
        /// <param name="widget">The link to search in for</param>
        /// <param name="menuOption">The menu option</param>
        /// <returns></returns>
        private HtmlAnchor GetMoreMenuOption(string menuOption)
        {
            ActiveBrowser.RefreshDomTree();
            ActiveBrowser.WaitUntilReady();

            HtmlAnchor option = ActiveBrowser.Find.ByExpression <HtmlAnchor>("tagname=a", "innertext=" + menuOption);

            option.AssertIsPresent("Menu option: " + menuOption);

            return(option);
        }
Exemple #3
0
        /// <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();
        }
Exemple #4
0
        /// <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();
        }