public void Using_Only_PageObject_Model() { //Initialize the page by calling it's referance. TestSetup.driver.Navigate().GoToUrl("http://executeautomation.com/demosite/Login.html"); LoginPageObjects loginPage = new LoginPageObjects(); ExecuteAutoMationPageObjectModel EA = loginPage.Login("User1", "test1234"); EA.FillUserForm("sdasfas", "asfasf", "dgdsg"); }
public void Another_Test_Using_Page_Object_Model() { //Initialize the page by calling it's referance. ExecuteAutoMationPageObjectModel page = new ExecuteAutoMationPageObjectModel(); page.txtIntial.SendKeys("ExecuteAutomation"); page.btnSave.Click(); }