public void RegisterUser() { PropertyCollection.driver.Navigate().GoToUrl("http://executeautomation.com/demosite/index.html?UserName=&Password=&Login=Login"); RegisterUserPageObject regUser = new RegisterUserPageObject(); regUser.RegisterNewUser("Mr.", "Q", "Feroz", "Ally"); }
public void FillInPop() { PropertyCollection.driver.Navigate().GoToUrl("http://executeautomation.com/demosite/index.html?UserName=&Password=&Login=Login"); string parentWindow = PropertyCollection.driver.CurrentWindowHandle; PopupPageObject popup = new PopupPageObject(); popup.FillInPopUp("Mr.", "A", "B", "C", "D", "India"); PropertyCollection.driver.SwitchTo().Window(parentWindow); RegisterUserPageObject regUser = new RegisterUserPageObject(); regUser.RegisterNewUser("Mr.", "Q", "Feroz", "Ally"); System.Threading.Thread.Sleep(2000); }