public void HeadersToListAllPages() { for (int i = 1; i < 10; i++) { List <IWebElement> listOfTitles = ArticleHeaders.ToList(); int iterator = 0; foreach (IWebElement item in listOfTitles) { if (item.Text.Contains(companyName)) { MakeScreenshot("C:/temp/", imageName); int numPage = i; i = 9; break; } else { iterator++; } } if (iterator == listOfTitles.Count) { NextPage.Click(); } iterator = 0; } }
public void GoToNextPage() { if (NextPage.isEnabled()) { NextPage.Click(); } else { BRLogger.LogInfo("User is on the Last page."); } }
public void GoToNextPage(int count) { for (int i = 0; i < count; i++) { if (NextPage.isEnabled()) { NextPage.Click(); } else { BRLogger.LogInfo("User is on the Last page."); break; } } }
/// <summary> /// next page /// </summary> public void SelectNextPage() { NextPage.Click(); }
public FizzBuzzDriver GoToNextPage() { NextPage.Click(); return(this); }