Exemplo n.º 1
0
        public void InputShippingAndBillingInfo(String firstName, String lastName, String phoneNumber, String emailAddress, String address, String zip, String city, String state, String country, Boolean sameBillingInformation, Boolean hasRefferingRep)
        {
            FirstName.SendKeys(firstName);
            LastName.SendKeys(lastName);
            PhoneNumber.SendKeys(phoneNumber);
            EmailAddress.SendKeys(emailAddress);
            AddressLine1.SendKeys(address);

            if (country.Equals("US"))
            {
                ZipLookup(zip, city);
            }
            else
            {
                SelectElement StateSelectDropdown = new SelectElement(StateSelect);
                City.SendKeys(city);
                StateSelectDropdown.SelectByText(state);
                Zip.SendKeys(zip);
            }

            if (sameBillingInformation)
            {
                BillingInformationYesRadio.Click();
            }
            else
            {
                BillingInformationNoRadio.Click();
            }

            Thread.Sleep(1000);

            if (hasRefferingRep)
            {
                RefferingRepInfoYesRadio.Click();
            }
            else
            {
                RefferingRepInfoNoRadio.Click();
            }

            Thread.Sleep(1000);

            ShippingBillingContinueButton.Click();
        }
Exemplo n.º 2
0
 public void SelectSameAddressForBilling()
 {
     Click(BillingInformationYesRadio);
     Thread.Sleep(1000);
     ShippingBillingContinueButton.Click();
 }