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); }
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); }