Пример #1
0
        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();
        }
Пример #2
0
        public void SecondaryTitlesValidation()
        {
            IWebDriver        driver     = new ChromeDriver();
            BBCWebSiteService bbcService = new BBCWebSiteService(driver);

            bbcService.GoToNewsPage();
            bbcService.CheckSecondaryArticlesTitles();
            driver.Quit();
        }
Пример #3
0
        public void HeadlineTitleValidation()
        {
            IWebDriver        driver     = new ChromeDriver();
            BBCWebSiteService bbcService = new BBCWebSiteService(driver);

            bbcService.GoToNewsPage();
            bbcService.CheckHeadlineArticleTitle();
            driver.Quit();
        }
Пример #4
0
        public void SearchValidation()
        {
            IWebDriver        driver     = new ChromeDriver();
            BBCWebSiteService bbcService = new BBCWebSiteService(driver);

            bbcService.GoToNewsPage();
            bbcService.SubmitSearchCategory();
            bbcService.CheckSearchedArticleTitle("Wild China");
            driver.Quit();
        }
Пример #5
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 WhenIGoToBBCNewsPage()
 {
     bbcService.GoToNewsPage();
 }