예제 #1
0
        public void GoToHaveYourSayPage()
        {
            GoToNewsPage();
            BBCNewsPage bBCNewsPage = new BBCNewsPage(driver);

            bBCNewsPage.GoToHaveYourSayPage();
        }
예제 #2
0
        public void SubmitSearchCategory()
        {
            BBCNewsPage bBCNewsPage = new BBCNewsPage(driver);

            bBCNewsPage.EnterSearchedText(bBCNewsPage.GetCategoryLinkText());
            bBCNewsPage.SubmitSearchRequest();
        }
예제 #3
0
        public void CheckHeadlineArticleTitle(string title)
        {
            BBCNewsPage newsPage        = new BBCNewsPage(driver);
            string      headlineArticle = newsPage.GetHeadlineArticleTitle();

            Assert.AreEqual(title, headlineArticle);
        }
예제 #4
0
        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]);
        }