Ejemplo n.º 1
0
 public void GivenIRegisterANewAccount()
 {
     customer = ScenarioContext.Current.Get <GeneratedCustomer>("customer");
     GivenLoginStatus(false);
     page.ClickLink("Sign in");
     page.Form("Create an account").FillInEditBoxWithContent("Email address", customer.email);
     page.Form("Create an account").ClickButton("Create an account");
     page.WaitForContent("Your personal information");
     page.ChooseRadioButtonFromOptions("Mr.", "Title");
     page.FillInEditBoxWithContent("First name", customer.firstname);
     page.FillInEditBoxWithContent("Last name", customer.surname);
     page.FillInEditBoxWithContent("Email", customer.email);
     page.FillInEditBoxWithContent("Password", customer.password);
     page.SetDatePicker("Date of Birth", customer.dob);
     page.ClickCheckBox("Sign up for our newsletter!");
     page.ClickCheckBox("Receive special offers from our partners!");
     page.FillInEditBoxWithContent("Company", "skdfnsdoklf");
     page.FillInEditBoxWithContent("Address", "skdfnsdoklf");
     page.FillInEditBoxWithContent("Address (Line 2)", "skdfnsdoklf");
     page.FillInEditBoxWithContent("City", "skdfnsdoklf");
     page.SelectOptionFromDropDown("Colorado", "State");
     page.FillInEditBoxWithContent("Zip/Postal Code", "12345");
     page.SelectOptionFromDropDown("United States", "Country");
     page.FillInEditBoxWithContent("Additional information", "skdfnsdoklf");
     page.FillInEditBoxWithContent("Home phone", "0123456789");
     page.FillInEditBoxWithContent("Mobile phone", "07987456321");
     page.ClickButton("Register");
     customerRegistered = true;
 }
 public void GivenIAmANewCustomer()
 {
     customer = new GeneratedCustomer();
     ScenarioContext.Current.Set <GeneratedCustomer>(customer, "customer");
 }