Пример #1
0
        public void Register()
        {
            // Create mail address and perform registration
            string mailsacAddress = registerPage.CreateMailsacAddress();

            registerPage.PerformRegister("QA_Test", mailsacAddress, password, password);

            // Check that registration succeed
            string registerVerifyText = registerPage.registerVerify.Text;

            Assert.AreEqual("Verify Your Email Address", registerVerifyText);

            // Wait for arrival of verification email
            registerPage.WaitForVerificationEmail(mailsacAddress);

            // Open email and click on verification link
            string mailsacLink = registerPage.masilsacLink + "/inbox/" + mailsacAddress;

            driver.Navigate().GoToUrl(mailsacLink);
            registerPage.VerifyEmailAddress();

            // Check that registration succeed
            registerPage.LoginVerification();
        }