Пример #1
0
        public void SecondaryTitlesValidation()
        {
            IWebDriver        driver     = new ChromeDriver();
            BBCWebSiteService bbcService = new BBCWebSiteService(driver);

            bbcService.GoToNewsPage();
            bbcService.CheckSecondaryArticlesTitles();
            driver.Quit();
        }
Пример #2
0
        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 ThenTheSecondaryArticlesTitlesWillBe(string titles)
 {
     bbcService.CheckSecondaryArticlesTitles(new List <string>(titles.Split(';')));
 }