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"); }
public void Login_from_home_pageTest04() { TestContext.WriteLine("Start the test for link login user"); HomePageView homePage = new HomePageView(remoeteDriver.get_driver()); Assert.IsTrue(homePage.i_see_link_login()); Assert.IsTrue(homePage.i_see_link_Sing_Up()); Assert.IsTrue(homePage.click_link_login()); Login loginmodal = new Login(remoeteDriver.get_driver()); Assert.IsTrue(loginmodal.set_user_name("*****@*****.**")); Assert.IsTrue(loginmodal.set_pass("test_11")); Assert.IsTrue(loginmodal.click_button_login()); Assert.IsTrue(loginmodal.close_windows()); TestContext.WriteLine("End test"); }
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"); }