Ejemplo n.º 1
0
        public void CheckScrollingInCalendars()
        {
            var deskPage = _pages.GetPage <PageObjectCP>();

            deskPage.OpenCP();

            System.Threading.Thread.Sleep(10000);
            IJavaScriptExecutor executor = (IJavaScriptExecutor)driver;

            executor.ExecuteScript(Scripts.ScriptsJS.cparrowsCalendar);
            //need add href calendar
            deskPage.CheckLeftMenuDirectory("");
            System.Threading.Thread.Sleep(7000);

            Scrolling.ScrollToBottom("#overflow-view");
            System.Threading.Thread.Sleep(3000);

            Scrolling.ScrollToTop("div#overflow-view");
            System.Threading.Thread.Sleep(3000);


            Scrolling.ScrollToBottom("#overflow-view");
            System.Threading.Thread.Sleep(3000);
            Scrolling.ScrollToElement("#DataGrid1 > tbody > tr.TableHeader > td:nth-child(1) > a");
            System.Threading.Thread.Sleep(3000);
        }