コード例 #1
0
        public void RegisterNewUser()
        {
            var userGenerator = new UserGenerator();
            var user          = userGenerator.GetNewUser();

            SelectTitle();
            firstNameTextField.SendKeys("First Name");
            lastNameTextField.SendKeys("LastName");
            SelectDayOfBirth();
            SelectMonthOfBirth();
            SelectYearOfBirth();
            emailAddressField.SendKeys(user.EmailAddress);
            confirmEmailAddressField.SendKeys(user.EmailAddress);
            passwordField.SendKeys(user.Password);
            CheckboxTermsAcceptedChecked();
            CheckboxOptOutEmailsChecked();

            submitButton.Click();
        }