Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        public void SecondaryTitlesValidation()
        {
            IWebDriver        driver     = new ChromeDriver();
            BBCWebSiteService bbcService = new BBCWebSiteService(driver);

            bbcService.GoToNewsPage();
            bbcService.CheckSecondaryArticlesTitles();
            driver.Quit();
        }
Ejemplo n.º 3
0
        public void HeadlineTitleValidation()
        {
            IWebDriver        driver     = new ChromeDriver();
            BBCWebSiteService bbcService = new BBCWebSiteService(driver);

            bbcService.GoToNewsPage();
            bbcService.CheckHeadlineArticleTitle();
            driver.Quit();
        }
Ejemplo n.º 4
0
        public void SearchValidation()
        {
            IWebDriver        driver     = new ChromeDriver();
            BBCWebSiteService bbcService = new BBCWebSiteService(driver);

            bbcService.GoToNewsPage();
            bbcService.SubmitSearchCategory();
            bbcService.CheckSearchedArticleTitle("Wild China");
            driver.Quit();
        }
Ejemplo n.º 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();
 }