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();
        }
Exemple #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);
 }
Exemple #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);
 }
Exemple #4
0
        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();
        }
Exemple #6
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);
 }
Exemple #7
0
        void ReleaseDesignerOutlets()
        {
            if (LCScrollingTextOutlet != null)
            {
                LCScrollingTextOutlet.Dispose();
                LCScrollingTextOutlet = null;
            }

            if (ConfirmRootPerson != null)
            {
                ConfirmRootPerson.Dispose();
                ConfirmRootPerson = null;
            }

            if (EmailAddressField != null)
            {
                EmailAddressField.Dispose();
                EmailAddressField = null;
            }

            if (LoginButtonOutlet != null)
            {
                LoginButtonOutlet.Dispose();
                LoginButtonOutlet = null;
            }

            if (LostCousinsUpdateButton != null)
            {
                LostCousinsUpdateButton.Dispose();
                LostCousinsUpdateButton = null;
            }

            if (PasswordField != null)
            {
                PasswordField.Dispose();
                PasswordField = null;
            }

            if (StatsTextbox != null)
            {
                StatsTextbox.Dispose();
                StatsTextbox = null;
            }

            if (UpdateResultsTextbox != null)
            {
                UpdateResultsTextbox.Dispose();
                UpdateResultsTextbox = null;
            }

            if (UseKeychainOutlet != null)
            {
                UseKeychainOutlet.Dispose();
                UseKeychainOutlet = null;
            }
        }
Exemple #8
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);
 }
Exemple #9
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);
        }
Exemple #11
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();
        }
Exemple #12
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);
 }