Пример #1
0
        public void Menu_Our_BusinessesTest02()
        {
            TestContext.WriteLine("Start the test for link Our_Businesses");
            HomePageView homePage = new HomePageView(remoeteDriver.get_driver());

            homePage.click_Link_Our_Businesses();
            Assert.IsTrue(homePage.i_see_Link_About(), "I dont see About link from menu");
            Assert.IsTrue(homePage.i_see_Link_Careers(), "I dont see Careers link from menu");
            Assert.IsTrue(homePage.i_see_Link_News_Event(), "I dont see News Event link from menu");
            Assert.IsTrue(homePage.i_see_Link_Our_Businesses(), "I dont see Our_Businesses link from menu");
            Assert.IsTrue(homePage.i_see_Link_search(), "I dont see Search link from menu");
            Assert.IsTrue(homePage.i_see_link_login(), "I dont see LogIn link from menu");
            Assert.IsTrue(homePage.i_see_link_Sing_Up(), "I dont see LogIn link from menu");
            TestContext.WriteLine("End test");
        }
Пример #2
0
        public void HomePageTest01()
        {
            TestContext.WriteLine("Start the test for home page");
            HomePageView homePage = new HomePageView(remoeteDriver.get_driver());

            Assert.IsTrue(homePage.i_see_home_page(), "I dont see home page content");
            Assert.IsTrue(homePage.i_see_Link_About(), "I dont see About link from menu");
            Assert.IsTrue(homePage.i_see_Link_Careers(), "I dont see Careers link from menu");
            Assert.IsTrue(homePage.i_see_Link_News_Event(), "I dont see News Event link from menu");
            Assert.IsTrue(homePage.i_see_Link_Our_Businesses(), "I dont see Our_Businesses link from menu");
            Assert.IsTrue(homePage.i_see_Link_search(), "I dont see Search link from menu");
            Assert.IsTrue(homePage.i_see_link_login(), "I dont see LogIn link from menu");
            Assert.IsTrue(homePage.i_see_link_Sing_Up(), "I dont see LogIn link from menu");
            Assert.IsTrue(homePage.close_cookie());
            TestContext.WriteLine("End the test");
        }