Ejemplo n.º 1
0
        public void CheckSigninEmail()
        {
            driver.Navigate().GoToUrl(homeURL);

            var POM = new SignUpPOM(driver);

            var EmailFormGroup = POM.GetEmailGroup();
            var EmailInput     = POM.GetInputInGroup(EmailFormGroup);

            EmailInput.SendKeys("[email protected]");

            var error     = POM.GetErrorInGroup(EmailFormGroup);
            var errorText = error.Text;

            Assert.AreEqual("Must be valid email", errorText);
        }
Ejemplo n.º 2
0
        public void CheckEmailsMatch()
        {
            driver.Navigate().GoToUrl(homeURL);

            var POM = new SignUpPOM(driver);

            var EmailFormGroup        = POM.GetEmailGroup();
            var ConfirmEmailFormGroup = POM.GetConfirmEmailGroup();

            var EmailInput        = POM.GetInputInGroup(EmailFormGroup);
            var ConfirmEmailInput = POM.GetInputInGroup(ConfirmEmailFormGroup);

            EmailInput.SendKeys("*****@*****.**");
            ConfirmEmailInput.SendKeys("*****@*****.**");

            var error     = POM.GetErrorInGroup(ConfirmEmailFormGroup);
            var errorText = error.Text;

            Assert.AreEqual("Email must match confirm email", errorText);
        }