Exemple #1
0
        public void TransitionBetweenLoginAndRegisterPages()
        {
            LoginPage    loginPage    = new LoginPage(_driver);
            RegisterPage registerPage = loginPage.Navigate().ToRegister();
            User         user         = User.GetRandomUser();

            registerPage.FillUser(user);
            Assert.True(registerPage.AreEqual());
            loginPage = registerPage.ToLogin();
            Assert.True(loginPage.AreEqual());
            user = User.GetValidUserForLogin();
            HomePage homePage = loginPage.FillUser(user).Submit();

            Assert.True(homePage.AreEqual());
        }