예제 #1
0
 public void FillForm(RegistrationUser user)
 {
     Gender[0].Click();
     FirstName.SendKeys(user.FirstName);
     LastName.SendKeys(user.LastName);
     Password.SendKeys(user.Password);
     Day.SelectByValue(user.Day);
     Month.SelectByValue(user.Month);
     Year.SelectByValue(user.Year);
     RealFirstName.SendKeys(user.RealFirstName);
     RealLastName.SendKeys(user.RealLastName);
     Address.SendKeys(user.Address);
     City.SendKeys(user.City);
     State.SelectByText(user.State);
     Postcode.SendKeys(user.Postcode);
     Phone.SendKeys(user.Phone);
     Alias.SendKeys(user.Alias);
     RegisterButton.Click();
 }
        public void FillForm(RegistrationUser user)
        {
            Driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(5);

            RadioButtons[1].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);
            RealFirstName.SendKeys(user.RealFirstName);
            RealLastName.SendKeys(user.RealLastName);
            Address.SendKeys(user.Address);
            City.SendKeys(user.City);
            State.SelectByText(user.State);
            PostCode.SendKeys(user.PostCode);
            Phone.SendKeys(user.Phone);
            Alias.Type(user.Alias);
            RegisterButton.Click();
        }