public void FillForm(RegistrationUser user) { RadioButtons.Click(); CustomerFirstName.Type(user.FirstName); CustomerLastName.Type(user.LastName); Password.Type(user.Password); //Days.SelectByText(user.Date); //Months.SelectByText(user.Month); //Years.SelectByText(user.Year); FirstName.Type(user.RealFirstName); LastName.Type(user.RealLastName); Address.Type(user.Address); City.Type(user.City); State.SelectByText(user.State); Zip.Type(user.Zip); Phone.Type(user.Phone); Alias.Type(user.Alias); RegisterButton.Click(); }
public void FillForm(RegistrationUser user) { RadioButtons.Click(); CustomerFirstName.SendKeys(user.FirstName); CustomerLastName.SendKeys(user.LastName); Password.SendKeys(user.Password); Days.SelectByValue(user.Date); Months.SelectByValue(user.Month); Years.SelectByValue(user.Year); FirstName.SendKeys(user.RealFirstName); LastName.SendKeys(user.RealLastName); Address.SendKeys(user.Address); City.SendKeys(user.City); State.SelectByValue(user.State); PostCode.SendKeys(user.PostCode); Phone.SendKeys(user.Phone); Alias.SendKeys(user.Alias); RegisterButton.Click(); }