public void Setup() { Initialize(); Driver.Navigate().GoToUrl("http://demoqa.com/automation-practice-form"); _practiceFormPage = new PracticeFormPage(Driver); _user = PracticeFormFactory.Create(); }
public void Setup() { Initialize(); Driver.Navigate().GoToUrl("http://automationpractice.com/index.php"); _practiceFormPage = new PracticeFormPage(Driver); _user = PracticeFormFactory.Create(); NavigateToForm(Driver); }
public void Setup() { Initialize(); Driver.Navigate(). GoToUrl("http://automationpractice.com/index.php?controller=authentication&back=my-account#account-creation"); CreateAccount(); _practiceFormPage = new PracticeFormPage(Driver); _user = PracticeFormFactory.Create(); }
public void Setup() { Initialize(); Driver.Navigate().GoToUrl("http://automationpractice.com/index.php"); _practiceFormPage = new PracticeFormPage(Driver); _practiceFormPage.ButtonSignIn.Click(); Random randomGenerator = new Random(); int randomInt = randomGenerator.Next(1000); _email = "username" + randomInt + "@xxx.com"; this.WaitForLoad(); _practiceFormPage.FieldEmailAddress.SendKeys(_email); _practiceFormPage.ButtonCreateAccount.Click(); _user = PracticeFormFactory.Create(); _user.Email = _email; }