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(); }
public ShippingOptionPage CreateShippingAddress(ShippingAddressInfo shippingAddressInfo) { FullNameField.Clear(); FullNameField.SendKeys(shippingAddressInfo.FullName); AddressLineFirstField.Clear(); AddressLineFirstField.SendKeys(shippingAddressInfo.AddressLineFirst); AddressLineSecondField.Clear(); AddressLineSecondField.SendKeys(shippingAddressInfo.AddressLineSecond); CityField.Clear(); CityField.SendKeys(shippingAddressInfo.City); StateProvinceRegionField.Clear(); StateProvinceRegionField.SendKeys(shippingAddressInfo.StateProvinceRegion); ZIPField.Clear(); ZIPField.SendKeys(shippingAddressInfo.ZIP); SelectElement CountryDropDown = new SelectElement(Country); CountryDropDown.SelectByText(shippingAddressInfo.Country); PhoneNumberField.Clear(); PhoneNumberField.SendKeys(shippingAddressInfo.PhoneNumber); //SelectElement WeekendDeliveryDropDown = new SelectElement(WeekendDelivery); //WeekendDeliveryDropDown.SelectByText(shippingAddressInfo.WeekendDelivery); SecurityAccessCodeField.Clear(); SecurityAccessCodeField.SendKeys(shippingAddressInfo.SecurityAccessCode); ShipTothisAdressButton.Click(); return(new ShippingOptionPage(_driver)); }