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();
        }
Пример #2
0
 public void InputPaymentInformation(String firstName, String lastName, String phoneNumber, String emailAddress)
 {
     FirstNameField.SendKeys(firstName);
     LastNameField.SendKeys(lastName);
     PhoneNumberField.SendKeys(phoneNumber);
     EmailAddressField.SendKeys(emailAddress);
 }
Пример #3
0
 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);
 }
Пример #4
0
        public void NavigationEmailForm(AutomationPracticeRegistrationModel user)
        {
            SignInButton.Click();
            EmailAddressField.SendKeys(user.EmailAddressField);
            CreateAccountButton.Click();

            Driver.ScrollTo(EmailField);
        }
Пример #5
0
 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);
 }
Пример #6
0
 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);
 }
Пример #7
0
        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);
        }
Пример #9
0
        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();
        }
Пример #10
0
 /// <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);
 }