public void HeadlineTitleValidation() { IWebDriver driver = new ChromeDriver(); BBCWebSiteService bbcService = new BBCWebSiteService(driver); bbcService.GoToNewsPage(); bbcService.CheckHeadlineArticleTitle("HK police and protesters clash near China office"); driver.Quit(); }
public void SecondaryTitlesValidation() { IWebDriver driver = new ChromeDriver(); BBCWebSiteService bbcService = new BBCWebSiteService(driver); bbcService.GoToNewsPage(); bbcService.CheckSecondaryArticlesTitles(); driver.Quit(); }
public void HeadlineTitleValidation() { IWebDriver driver = new ChromeDriver(); BBCWebSiteService bbcService = new BBCWebSiteService(driver); bbcService.GoToNewsPage(); bbcService.CheckHeadlineArticleTitle(); driver.Quit(); }
public void SearchValidation() { IWebDriver driver = new ChromeDriver(); BBCWebSiteService bbcService = new BBCWebSiteService(driver); bbcService.GoToNewsPage(); bbcService.SubmitSearchCategory(); bbcService.CheckSearchedArticleTitle("Wild China"); driver.Quit(); }
public void SecondaryTitlesValidation() { IWebDriver driver = new ChromeDriver(); BBCWebSiteService bbcService = new BBCWebSiteService(driver); bbcService.GoToNewsPage(); 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" }; bbcService.CheckSecondaryArticlesTitles(expectedTitles); driver.Quit(); }
public void WhenIGoToBBCNewsPage() { bbcService.GoToNewsPage(); }