public void GoToHaveYourSayPage() { GoToNewsPage(); BBCNewsPage bBCNewsPage = new BBCNewsPage(driver); bBCNewsPage.GoToHaveYourSayPage(); }
public void SubmitSearchCategory() { BBCNewsPage bBCNewsPage = new BBCNewsPage(driver); bBCNewsPage.EnterSearchedText(bBCNewsPage.GetCategoryLinkText()); bBCNewsPage.SubmitSearchRequest(); }
public void CheckHeadlineArticleTitle(string title) { BBCNewsPage newsPage = new BBCNewsPage(driver); string headlineArticle = newsPage.GetHeadlineArticleTitle(); Assert.AreEqual(title, headlineArticle); }
public void CheckSecondaryArticlesTitles(List <string> expectedTitles) { BBCNewsPage newsPage = new BBCNewsPage(driver); //List<string> expectedTitles = new List<string>() { // "Jailed Russian opposition leader taken to hospital", // "Indigenous man killed as Brazil miners take land", // "British 15-year-old becomes gaming millionaire" }; List <string> actualTitles = newsPage.GetFirstThreeSecondaryArticleTitles(); Assert.AreEqual(expectedTitles[0], actualTitles[0]); Assert.AreEqual(expectedTitles[1], actualTitles[1]); Assert.AreEqual(expectedTitles[2], actualTitles[2]); }