public void FillEmailForm(PracticeRegistrationModel user) { SignInButton.Click(); EmailAddressField.SendKeys(user.EmailAddressField); CreateAccountButton.Click(); RadioButton.Click(); FirstName.SendKeys(user.FirstName); LastName.SendKeys(user.LastName); Password.SendKeys(user.Password); SelectElement date = new SelectElement(Date); date.SelectByValue("1"); SelectElement month = new SelectElement(Month); month.SelectByValue("2"); SelectElement year = new SelectElement(Year); year.SelectByValue("2010"); Address.SendKeys(user.Address); City.SendKeys(user.City); SelectElement state = new SelectElement(State); state.SelectByValue("2"); ZipCode.SendKeys(user.ZipCode); MobilePhone.SendKeys(user.MobilePhone); RegisterButton.Click(); }
public void NavigateToRegPage(LoginPage loginPage) { loginPage.Navigate("http://automationpractice.com/index.php"); SignInButton.Click(); EmailInput.SendKeys("*****@*****.**"); CreateAccountButton.Click(); }
public void NavigationEmailForm(AutomationPracticeRegistrationModel user) { SignInButton.Click(); EmailAddressField.SendKeys(user.EmailAddressField); CreateAccountButton.Click(); Driver.ScrollTo(EmailField); }
public void NavigationEmailForm(AutomationPracticeRegistrationModel user) { SignInButton.Click(); EmailAddressField.SetText(user.EmailAddressField); CreateAccountButton.Click(); EmailField.ScrollTo().ToBeVisible(); }
public void SignIn_With_RandomEmail() { var fixture = new Fixture(); var emailAddressField = fixture.Create <String>(); EmailField.TypeText($"{emailAddressField}@gmail.com"); CreateAccountButton.Click(); }
public void RegisterUserFirstStep() { //Create random email and fill the Email field Random r = new Random(); String email = $"Email{r.Next()}@gmail.com"; _driver.FindElement(By.CssSelector("#email_create")).SendKeys(email); //EmailField.SendKeys(email); //Click Create Account button CreateAccountButton.Click(); }
public void FillForm(AutomationPracticeFromModel user) { SignInButton.Click(); WaitForLoad(); EmailSectionOnCheateAccount.Click(); FillEmail(user); WaitForLoad(); CreateAccountButton.Click(); WaitForLoad(); LastNamePanel.SendKeys(user.LastNamePanel + Keys.Tab); FirstNamePanel.SendKeys(user.FirstNamePanel + Keys.Tab); PasswordPanel.SendKeys(user.PasswordPanel + Keys.Tab); AddressPanel.SendKeys(user.AddressPanel + Keys.Tab); CityPanel.SendKeys(user.CityPanel + Keys.Tab); IdStatePanel.SendKeys(user.IdStatePanel + Keys.Tab); PhoneMobile.SendKeys(user.PhoneMobile + Keys.Tab); PosteCodePanel.SendKeys(user.PosteCodePanel + Keys.Tab); }
public void CreateAccount(RegistrationUserModel user) { EmailFieldCreateAccount.SendKeys(user.Email); EmailFieldCreateAccount.Submit(); CreateAccountButton.Click(); }
//Buttons for Create Account public CreateAccount ClickCreateAccountButton() { CreateAccountButton.Click(); return(new CreateAccount()); }
public void ValidateSignIn(UserDto user) { Helper.ScrollToSeeTheRightButton(_driver, CreateAccountButton); EmailField.Click(); var emailAddressValue = user.GetType().GetRuntimeProperty("emailAddress").GetValue(user); if (emailAddressValue != null) { EmailField.SendKeys(emailAddressValue.ToString()); } CreateAccountButton.Click(); Thread.Sleep(4000); Helper.ScrollToSeeTheRightButton(_driver, PersonalInformationTitleRadioButton); PersonalInformationTitleRadioButton.Click(); PersonalInformationFirstNameField.Click(); var firstNameValue = user.GetType().GetRuntimeProperty("firstName").GetValue(user); if (firstNameValue != null) { PersonalInformationFirstNameField.SendKeys(firstNameValue.ToString()); } PersonalInformationLastNameField.Click(); var lastNameValue = user.GetType().GetRuntimeProperty("lastName").GetValue(user); if (lastNameValue != null) { PersonalInformationLastNameField.SendKeys(lastNameValue.ToString()); } PersonalInformationPasswordField.Click(); var passwordValue = user.GetType().GetRuntimeProperty("password").GetValue(user); if (passwordValue != null) { PersonalInformationPasswordField.SendKeys(passwordValue.ToString()); } SelectDayBox.Click(); SelectDay.Click(); SelectMonthBox.Click(); SelectMonth.Click(); SelectYearsBox.Click(); SelectYear.Click(); Helper.ScrollToSeeTheRightButton(_driver, AdressAddressField); Thread.Sleep(1000); AdressAddressField.Click(); var adressAddressField = user.GetType().GetRuntimeProperty("address").GetValue(user); if (adressAddressField != null) { AdressAddressField.SendKeys(adressAddressField.ToString()); } Thread.Sleep(1000); AdressCityField.Click(); var adressCityField = user.GetType().GetRuntimeProperty("city").GetValue(user); if (adressCityField != null) { AdressCityField.SendKeys(adressCityField.ToString()); } Thread.Sleep(1000); AdressStateDropdown.Click(); AdressState.Click(); Thread.Sleep(1000); AdressPostcodeField.Click(); var adressPostcodeField = user.GetType().GetRuntimeProperty("postcode").GetValue(user); if (adressPostcodeField != null) { AdressPostcodeField.SendKeys(adressPostcodeField.ToString()); } Thread.Sleep(1000); AdressMobilePhoneField.Click(); var adressMobilePhoneField = user.GetType().GetRuntimeProperty("mobilePhone").GetValue(user); if (adressMobilePhoneField != null) { AdressMobilePhoneField.SendKeys(adressMobilePhoneField.ToString()); } Thread.Sleep(1000); AdressAliasField.Clear(); var adressAliasField = user.GetType().GetRuntimeProperty("alias").GetValue(user); if (adressAliasField != null) { AdressAliasField.SendKeys(adressAliasField.ToString()); } Helper.ScrollToSeeTheRightButton(_driver, RegisterButton); RegisterButton.Click(); }
public void NavigateToRegistartionPage() { SignInLink.Click(); CreateEmailInput.SendKeys("*****@*****.**"); CreateAccountButton.Click(); }
public void CreateAccount(string email) { EmailAdressTextBox.SendKeys(email); CreateAccountButton.Click(); }
public void CreateAccount(string email) { CreateAccountEmailInput.SendKeys(email); CreateAccountButton.Click(); }