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(); }
public void FillInForm(UserDetailsPoco userDetails) { Username.SendKeys(userDetails.Username); Password.SendKeys(userDetails.Password); Email.SendKeys(userDetails.Email); }