private void FillCredentials(Credentials credentials) { FullNameField.Clear(); FullNameField.SendKeys(credentials.FullName); PasswordField.Clear(); PasswordField.SendKeys(credentials.Password); }
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)); }