public void InputShippingAndBillingInfo(String firstName, String lastName, String phoneNumber, String emailAddress, String address, String zip, String city, String state, String country, Boolean sameBillingInformation, String repType) { 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(); } if (repType.Equals("WebAd")) { Thread.Sleep(1000); RefferingWebAdYesRadio.Click(); } }
public void AddLocation(string shortName, string locationName, string addressLine1, string addressLine2, string city, string state, string zip) { GotoPracticeSettings(); Location.Click(); SearchGrid("celebration", 1); Thread.Sleep(1000); WaitForElementVisible <Locations>(30); Add.Click(); ShortName.SendKeys(shortName); LocationName.SendKeys(locationName); AddressLine1.SendKeys(addressLine1); AddressLine2.SendKeys(addressLine2); City.SendKeys(city); State.Select(state); Zip.SendKeys(zip); Save.Click(); Assert.AreEqual("Location saved successfully", Toastr.Text); }