public void WhenICompleteTheSignUpForm()
        {
            var page     = (SignUpPage)ContextBuilders.Context.Current.PageFactory.Build <SignUpPage>();
            var userData = UserDetailsPoco.Random(20);

            ScenarioContext.Current.Add(typeof(UserDetailsPoco).Name, userData);
            page.FillInForm(userData);
            page.SubmitForm();
        }
Пример #2
0
 public void FillInForm(UserDetailsPoco userDetails)
 {
     Username.SendKeys(userDetails.Username);
     Password.SendKeys(userDetails.Password);
     Email.SendKeys(userDetails.Email);
 }