public void FillForm(RegistrationFormModels user) { /* this.WaitForLoad(); * Thread.Sleep(1000);*/ CustomerFirstName.SendKeys(user.CustomerFirstName); CustomerLastName.SendKeys(user.CustomerLastName); CustomerPassword.SendKeys(user.CustomerPassword); CustomerAddress.SendKeys(user.CustomerAddress); SelectElement years = new SelectElement(YearDD); years.SelectByValue(user.Year); SelectElement months = new SelectElement(MonthsDD); months.SelectByValue(user.Month); SelectElement days = new SelectElement(DaysDD); days.SelectByValue(user.Day); CustomerAddress.SendKeys(user.CustomerAddress); CustomerCity.SendKeys(user.CustomerCity); CustomerState.SendKeys(user.CustomerState); CustomerPostCode.SendKeys(user.CustomerPostCode); CustomerPhoneMobile.SendKeys(user.CustomerPhoneMobile); CustomerGender.Click(); FindSubmitField.Click(); }
public void FillForm(RegistrationUser user) { RadioButtons[1].Click(); CutomerFirstName.SendKeys(user.FirstName); CutomerLastName.SendKeys(user.LastName); CustomerPassword.SendKeys(user.Password); Date.SelectByValue(user.Date); Month.SelectByValue(user.Month); Year.SelectByValue(user.Year); Address.SendKeys(user.Address); City.SendKeys(user.City); State.SelectByText(user.State); ZipCode.SendKeys(user.PostCode); Phone.SendKeys(user.Phone); AddressAlias.SendKeys(user.Alias); //alias.Type("Maria") ??? RegisterButton.Click(); }