예제 #1
0
        public PageBar GoToLastPage(IWebDriver driver)
        {
            PageBar pageBar = new PageBar(driver);

            if (pageList.LastPageNumber != 0)
            {
                driver.Navigate().GoToUrl(pageList.LastPage.FindElement(By.XPath("./a")).GetAttribute("href"));
                pageBar = new PageBar(driver);

                return(pageBar);
            }

            return(pageBar);
        }
예제 #2
0
        public PageBar GoToPreviousPage(IWebDriver driver)
        {
            PageBar pageBar = new PageBar(driver);

            if (nextPrev.IsPrevious() == true)
            {
                driver.Navigate().GoToUrl(nextPrev.PagePrevious.GetAttribute("href"));
                pageBar = new PageBar(driver);

                return(pageBar);
            }

            return(pageBar);
        }