Пример #1
0
        private AutoCompletePage OpenAutoCompletePage()
        {
            var homePage = new HomePage(this.Driver);

            homePage.OpenSite();
            homePage.ScrollTo(homePage.WidgetsSection);
            homePage.WidgetsSection.Click();

            var widgetsPage = new WidgetsPage(this.Driver);

            widgetsPage.ScrollTo(widgetsPage.AutoCompleteSection);
            widgetsPage.AutoCompleteSection.Click();

            return(new AutoCompletePage(this.Driver));
        }
Пример #2
0
        private DatePickerPage OpenDatePickerPage()
        {
            var homePage = new HomePage(this.Driver);

            homePage.OpenSite();
            homePage.ScrollTo(homePage.WidgetsSection);
            homePage.WidgetsSection.Click();

            var widgetsPage = new WidgetsPage(this.Driver);

            widgetsPage.ScrollTo(widgetsPage.DatePickerSection);
            widgetsPage.DatePickerSection.Click();

            return(new DatePickerPage(this.Driver));
        }