Beispiel #1
0
        public void RegisterUser()
        {
            var registryPage = new RegistryPage(_driver);

            //Arrange
            registryPage.Visit();
            //Act
            registryPage.
            FillUpForm("*****@*****.**", "eyw_6AbX?-CuQ+?", "eyw_6AbX?-CuQ+?");
            //Verify
            Assert.Contains("*****@*****.**", _driver.PageSource);
        }
Beispiel #2
0
        public void TryToRegisterUserwrongly(string email, string password,
                                             string passwordConfirmation)
        {
            var registryPage = new RegistryPage(_driver);

            //Arrange
            registryPage.Visit();
            //Act
            registryPage.
            FillUpForm(email, password, passwordConfirmation);
            //Verify
            var spans = _driver.FindElements(By.TagName("span"));

            //Verify
            Assert.True(spans.Count >= 1);
        }