Exemplo n.º 1
0
            public void Step3()
            {
                var d = new Data.Data.Beneficiary();

                var DOBYearDropdownSelect  = new SelectElement(DobYearDropdown);
                var DOBMonthDropdownSelect = new SelectElement(DobMonthDropdown);
                var DOBDayDropdownSelect   = new SelectElement(DobDayDropdown);
                var StateDropdownSelect    = new SelectElement(StateDropDown);


                FirstNameField.SendKeys(d.FirstName);
                LastNameField.SendKeys(d.LastName);
                SSNField.SendKeys(d.SSN);
                DOBYearDropdownSelect.SelectByText(d.Year);
                DOBMonthDropdownSelect.SelectByText(d.Month);
                DOBDayDropdownSelect.SelectByText(d.Day);
                SSNField.Click();
                Actions builder = new Actions(_driver);

                builder.SendKeys(Keys.Tab).Perform();
                var AgeGradeDropdownSelect = new SelectElement(AgeGradeDropdown);

                AgeGradeDropdownSelect.SelectByIndex(d.AgeGrade);
                Address1Field.SendKeys(d.Address1);
                CityField.SendKeys(d.City);
                StateDropdownSelect.SelectByText(d.State);
                ZipCodeField.SendKeys(d.Zip);
                NextButton.Click();
            }
Exemplo n.º 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);
 }
Exemplo n.º 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);
 }
        public ultimateQAHomePage FillOutFormAndSubmit(TestUser user)
        {
            FirstNameField.SendKeys(user.firstName);
            LastNameField.SendKeys(user.lastName);
            SubmitButton.Click();

            return(new ultimateQAHomePage(Driver));
        }
 internal UltimateQAHomePage FillOutPrimaryContactFormAndSubmit(TestUser user)
 {
     SetGender(user);
     FirstNameField.SendKeys(user.firstName);
     LastNameField.SendKeys(user.lastName);
     SubmitBtn.Click();
     return(new UltimateQAHomePage(Driver));
 }
Exemplo n.º 6
0
 public UltimateQAHomePage FillOutFormAndSubmit(TestUser user)
 {
     SetGender(user);
     FirstNameField.SendKeys(user.FirstName);
     LastNameField.SendKeys(user.LastName);
     SubmitButton.Click();
     return(new UltimateQAHomePage(Driver));
 }
Exemplo n.º 7
0
 public ContactFormPage FillinFields(ContactFormModel contactForm)
 {
     FirstNameField.SendKeys(contactForm.FirstName);
     LastNameField.SendKeys(contactForm.LastName);
     CountrySelect.SendKeys(contactForm.Country);
     SubjectField.SendKeys(contactForm.Subject);
     return(this);
 }
Exemplo n.º 8
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);
 }
Exemplo n.º 9
0
 public void FillFormWithoutEmail(AutomationPracticeFormModel user)
 {
     FirstNameField.SendKeys(user.FirstName);
     LastNameField.SendKeys(user.LastName);
     PasswordField.SendKeys(user.Password);
     AddressField.SendKeys(user.Address);
     CityField.SendKeys(user.City);
     PostalCode.SendKeys(user.PostalCode);
     MobilePhone.SendKeys(user.MobilePhone);
 }
Exemplo n.º 10
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);
 }
        public ultimateQAHomePage FillOutFormAndSubmit2Users(TestUser testUser, TestUser eTestUser)
        {
            FirstNameField.SendKeys(testUser.firstName);
            LastNameField.SendKeys(testUser.lastName);
            eFirstNameField.SendKeys(eTestUser.eFirstName);
            eLastNameField.SendKeys(eTestUser.eLastName);

            SubmitButton.Click();

            return(new ultimateQAHomePage(Driver));
        }
Exemplo n.º 12
0
 public void InputPersonalInformation(String ssn, String firstName, String middleName, String lastName, String gender, String birthMonth, String birthDay, String birthYear)
 {
     SsnField.SendKeys(ssn);
     FirstNameField.SendKeys(firstName);
     MiddleNameField.SendKeys(middleName);
     LastNameField.SendKeys(lastName);
     new SelectElement(GenderSelect).SelectByText(gender);
     new SelectElement(BirthMonthSelect).SelectByText(birthMonth);
     new SelectElement(BirthDaySelect).SelectByText(birthDay);
     new SelectElement(BirthYearSelect).SelectByText(birthYear);
     NextButton.Click();
 }
Exemplo n.º 13
0
 public void FillForm(string firstName, string lastName, string pass, string email, string address, string city, string postcode, string phone)
 {
     if (firstName != "")
     {
         Driver.ScrollToElement(FirstNameField);
         FirstNameField.SendKeys(firstName);
     }
     if (lastName != "")
     {
         Driver.ScrollToElement(LastNameField);
         LastNameField.SendKeys(lastName);
     }
     if (pass != "")
     {
         Driver.ScrollToElement(PasswordField);
         PasswordField.SendKeys(pass);
     }
     if (email != "")
     {
         if (email == "none")
         {
             Driver.ScrollToElement(EmailField);
             EmailField.Clear();
         }
         else
         {
             Driver.ScrollToElement(EmailField);
             EmailField.TypeText(email);
         }
     }
     if (address != "")
     {
         Driver.ScrollToElement(AddressField);
         AddressField.SendKeys(address);
     }
     if (city != "")
     {
         Driver.ScrollToElement(CityField);
         CityField.SendKeys(city);
     }
     if (postcode != "")
     {
         Driver.ScrollToElement(PostalCode);
         PostalCode.SendKeys(postcode);
     }
     if (phone != "")
     {
         MobilePhone.SendKeys(phone);
     }
 }
Exemplo n.º 14
0
 public void EditNameAddress(String newLastName, String newAddress, String newPhoneNumber, String newMobileNumber)
 {
     NameAddressLink.Click();
     LastNameField.Clear();
     LastNameField.SendKeys(newLastName);
     AddressField.Clear();
     AddressField.SendKeys(newAddress);
     PhoneNumberField.Clear();
     PhoneNumberField.SendKeys(newPhoneNumber);
     MobileNumberField.Clear();
     MobileNumberField.SendKeys(newMobileNumber);
     InputComments();
     UpdateButton.Click();
 }
Exemplo n.º 15
0
        public void FillForm(FormModel user)
        {
            FirstNameField.SendKeys(user.FirstName);
            LastNameField.SendKeys(user.LastName);
            PasswordField.SendKeys(user.PasswordField);
            Address1.SendKeys(user.Address1);
            City.SendKeys(user.City);
            State.Click();
            SelectElement stateValue = new SelectElement(State);

            stateValue.SelectByIndex(user.State);
            ZipCode.SendKeys(user.ZipCode.ToString());
            MobilePhone.SendKeys(user.MobilePhone.ToString());
            AssignAnAddresAlias.SendKeys(user.AssignAnAddresAlias);

            ScroolTo(RegisterButton).Click();
        }
Exemplo n.º 16
0
        //public IWebElement ErrorCatch => Driver.FindElement(By.XPath("//*[@id='center_column']/div/ol/li"));


        public void FillForm(Registration user)
        {
            GenderRadioButtons[0].Click();
            FirstNameField.SendKeys(user.FirstName);
            LastNameField.SendKeys(user.LastName);
            PasswordField.SendKeys(user.Password);
            DateDropDown.SelectByValue(user.DateDropDown);
            monthsDropDown.SelectByValue(user.MonthsDropDown);
            yearDropDown.SelectByValue(user.YearDropDown);
            address.SendKeys(user.Address);
            city.SendKeys(user.City);
            StateDropDown.SelectByValue(user.StateDropDown);
            ZipCode.SendKeys(user.ZipCode);
            MobilePhone.SendKeys(user.MobilePhone);
            AliasAddress.SendKeys(user.AliasAddress);
            RegisterButton.Click();
        }
Exemplo n.º 17
0
        public void SubmitResidency(int OptionNum)
        {
            if (OptionNum == 1)
            {
                ResidencyOnlineRadio.Click();
            }
            else
            {
                Thread.Sleep(2000);
                ResidencyMailRadio.Click();
            }
            var ParentDropdownSelect = new SelectElement(ParentDropdown);

            ParentDropdownSelect.SelectByText("Yes");
            FirstNameField.SendKeys("Kyle");
            LastNameField.SendKeys("Crabtree");
            NextButton.Click();
        }
Exemplo n.º 18
0
            public void Step2()
            {
                var d = new Data.Data.AccountOwner();
                var SalutationDropdownSelect = new SelectElement(SalutationDropdown);
                var DOBYearDropdownSelect    = new SelectElement(DobYearDropdown);
                var DOBMonthDropdownSelect   = new SelectElement(DobMonthDropdown);
                var DOBDayDropdownSelect     = new SelectElement(DobDayDropdown);
                var StateDropdownSelect      = new SelectElement(StateDropDown);

                SalutationDropdownSelect.SelectByText(d.Salutation);
                FirstNameField.SendKeys(d.FirstName);
                LastNameField.SendKeys(d.LastName);
                SSNField.SendKeys(d.SSN);
                DOBYearDropdownSelect.SelectByText(d.Year);
                DOBMonthDropdownSelect.SelectByText(d.Month);
                DOBDayDropdownSelect.SelectByText(d.Day);
                Address1Field.SendKeys(d.Address1);
                CityField.SendKeys(d.City);
                StateDropdownSelect.SelectByText(d.State);
                ZipCodeField.SendKeys(d.Zip);
                PhoneNumberField.SendKeys(d.PhoneNum);
                CellRadio.Click();
                NextButton.Click();
            }
Exemplo n.º 19
0
 /// <summary>
 /// Enter last name
 /// </summary>
 /// <param name="lastName"></param>
 public void EnterLastName(string lastName)
 {
     ScenarioContext.Current["LastName"] = lastName;
     LastNameField.SendKeys(lastName);
 }
 public void EnterLastNameField(string lastName)
 {
     LastNameField.SendKeys(lastName);
 }
Exemplo n.º 21
0
 public BookFlightPage InputLastName(string lastname)
 {
     LastNameField.Click();
     LastNameField.SendKeys(lastname);
     return(this);
 }
Exemplo n.º 22
0
 public void InputLastName(string lastName)
 {
     LastNameField.SendKeys(lastName);
 }
Exemplo n.º 23
0
 public UltimateQAHomePage FillOutLastName(string value)
 {
     LastNameField.SendKeys(value);
     return(new UltimateQAHomePage(Driver));
 }
Exemplo n.º 24
0
 public void ClickInputLastNameField(string lastName)
 {
     LastNameField.Click();
     LastNameField.SendKeys(lastName);
 }
Exemplo n.º 25
0
 public void SetRegisterLastNameField(string text)
 {
     LastNameField.SendKeys(text);
 }