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 InputPaymentInformation(String firstName, String lastName, String phoneNumber, String emailAddress) { FirstNameField.SendKeys(firstName); LastNameField.SendKeys(lastName); PhoneNumberField.SendKeys(phoneNumber); EmailAddressField.SendKeys(emailAddress); }
public void InputShippingInformation(String firstName, String lastName, String address, String zip, String city, String county, String state, String phoneNumber, String mobileNumber, String emailAddress) { FirstNameField.SendKeys(firstName); LastNameField.SendKeys(lastName); ShippingAddressField.SendKeys(address); if (!zip.Equals("N/A")) { ShippingZipField.SendKeys(zip); } if (!city.Equals("N/A")) { ShippingCityField.SendKeys(city); } if (!county.Equals("N/A")) { ShippingCountyField.SendKeys(county); } if (!state.Equals("N/A")) { ShippingStateField.SendKeys(state); } PhoneNumberField.SendKeys(phoneNumber); MobileNumberField.SendKeys(mobileNumber); EmailAddressField.SendKeys(emailAddress); }
public void NavigationEmailForm(AutomationPracticeRegistrationModel user) { SignInButton.Click(); EmailAddressField.SendKeys(user.EmailAddressField); CreateAccountButton.Click(); Driver.ScrollTo(EmailField); }
public void InputShippingInformation(String firstName, String lastName, String address, String zip, String phoneNumber, String emailAddress) { FirstNameField.SendKeys(firstName); LastNameField.SendKeys(lastName); ShippingAddressField.SendKeys(address); ZipLookup(zip); PhoneNumberField.SendKeys(phoneNumber); EmailAddressField.SendKeys(emailAddress); }
public void InputShippingInformation(String firstName, String lastName, String address, String zip, String city, String state, String phoneNumber, String emailAddress) { FirstNameField.SendKeys(firstName); LastNameField.SendKeys(lastName); ShippingAddressField.SendKeys(address); ShippingZipField.SendKeys(zip); ShippingCityField.SendKeys(city); new SelectElement(ShippingStateSelect).SelectByText(state); PhoneNumberField.SendKeys(phoneNumber); EmailAddressField.SendKeys(emailAddress); }
public SelectShippingAddress OpenShippingAddressPageWithCredentials(string email, string password) { EmailAddressField.Clear(); EmailAddressField.SendKeys(email); UserPasswordField.Clear(); UserPasswordField.SendKeys(password); //TODO: use basepage clickbutton SignInButton.Click(); return(new SelectShippingAddress(_driver)); }
public DetailsPage ValidatePaymentsInterestedIn(string paymentsType, string email) { var mainPayments = Driver.FindElement(By.Id("payment-selection-question")).FindElement(By.ClassName("what-payment-type")); foreach (var element in mainPayments.FindElements(By.LinkText(paymentsType))) { if (element.Text.Contains(paymentsType)) { element.Click(); } break; } EmailAddressField.SendKeys(email); MarketingCheckBox.Click(); ConfirmTnCsCheckBox.Click(); return(this); }
public void ValidateAuthentication(UserDto user) { SignInButton.Click(); Helper.ScrollToSeeTheRightButton(_driver, EmailAddressField); EmailAddressField.Click(); var emailAddressValue = user.GetType().GetRuntimeProperty("emailAddress").GetValue(user); if (emailAddressValue != null) { EmailAddressField.SendKeys(emailAddressValue.ToString()); } PasswordField.Click(); var passwordValue = user.GetType().GetRuntimeProperty("password").GetValue(user); if (passwordValue != null) { PasswordField.SendKeys(passwordValue.ToString()); } SubmitButton.Click(); }
/// <summary> /// Enter the employees email address to log in /// </summary> /// <param name="email">The employee's email address</param> public void EnterEmailAddress(string email) { EmailAddressField.SendKeys(email); }