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() { InitializeMaximizedBrowser(); _homePage = new HomePage(Driver); _demoQAPage = new DemoQAPage(Driver); _practiceFormPage = new PracticeFormPage(Driver); Driver.NavigateTo(_homePage.URL); _homePage.CategoryCard("Forms").Click(); _demoQAPage.LeftPanelSubMenu("Practice Form").Click(); _userRegistration = PracticeFormFactory.CreateValidUser(); }
public void SelectDate() { DateOfBirthMenu.Click(); var month = new SelectElement(MonthDateDropDown.WrappedElement); month.SelectByValue(PracticeFormFactory.CreateValidUser().Month); var year = new SelectElement(YearDateDropDown.WrappedElement); year.SelectByValue(PracticeFormFactory.CreateValidUser().Year); var daysInMonth = new Random(); var randomDayOfTheMonth = daysInMonth.Next(DaysInMonth.Count); DaysInMonth[randomDayOfTheMonth].Click(); }
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; }