示例#1
0
        public ActivationRequestedPage RegisterNewUser()
        {
            NavigateToPage();

            ClearForm();

            UserNameField.SendKeys(TestUser.Username + "2");
            PasswordField.SendKeys(TestUser.Password);
            RetypePasswordField.SendKeys(TestUser.Password);
            EmailField.SendKeys("*****@*****.**");

            SignUpButton.Click();

            return(new ActivationRequestedPage(WebDriver));
        }
示例#2
0
        public RegisterPage RegisterUsingAlreadyTakenEmail()
        {
            NavigateToPage();

            ClearForm();

            UserNameField.SendKeys(TestUser.Username + "2");
            PasswordField.SendKeys(TestUser.Password);
            RetypePasswordField.SendKeys(TestUser.Password);
            EmailField.SendKeys(TestUser.Email);

            SignUpButton.Click();

            return(this);
        }