Esempio n. 1
0
        public void TestMethod1()
        {
            IWebDriver driver = new ChromeDriver();

            driver.Navigate().GoToUrl("https://www.bbc.com/");
            new HomePage(driver).GoToNews();
            NewsPage News = new NewsPage(driver);

            News.MoreDrop();
            News.GoToHYS();
        }
Esempio n. 2
0
        public void TestHomePage()
        {
            HomePage bbcHomePage = new HomePage(Driver);

            bbcHomePage.Navigate();
            bbcHomePage.NewsButtonClick();
            NewsPage newsPage = new NewsPage(this.Driver);

            newsPage.CompareArticles();
            SearchPage bbcsearchPage = new SearchPage(this.Driver);

            bbcsearchPage.SearchNewsText("you can leave this method empty");
            LoremPage      loremHomePage  = new LoremPage(this.Driver);
            string         loremText      = loremHomePage.IputType(141);
            HaveYouSayPage haveYouSayPage = new HaveYouSayPage(this.Driver);

            haveYouSayPage.Fillform(loremText, false);
        }