public void LoginInvalido()
        {
            _loginPage = new LoginPage(Browser);
            _loginPage.AcessarPagina();
            _loginPage.PreencheUsuario("mantis");
            _loginPage.PreencheSenha("123");
            _loginPage.BotaoLogin();

            Assert.AreEqual("Your account may be disabled or blocked or the username/password you entered is incorrect.", _loginPage.FalhaLogin());
        }
Example #2
0
 public void Before()
 {
     _homePage    = new HomePage(Browser);
     _loginPage   = new LoginPage(Browser);
     _accountPage = new MyAccountPage(Browser);
     _loginPage.AcessarPagina();
     _loginPage.PreencheUsuario("********");
     _loginPage.PreencheSenha("**********");
     _loginPage.BotaoLogin();
 }
 public void LogoutSucess()
 {
     _loginPage = new LoginPage(Browser);
     _homePage  = new HomePage(Browser);
     _loginPage.AcessarPagina();
     _loginPage.PreencheUsuario("*******");
     _loginPage.PreencheSenha("**********");
     _loginPage.BotaoLogin();
     _homePage.Logout();
     Assert.AreEqual("Login", _loginPage.ValidLogout());
 }
        public void LoginComSucesso()
        {
            _loginPage = new LoginPage(Browser);
            _homePage  = new HomePage(Browser);
            _loginPage.AcessarPagina();
            _loginPage.PreencheUsuario("*******");
            _loginPage.PreencheSenha("*********");
            _loginPage.BotaoLogin();

            Assert.AreEqual("yuri.andrade", _homePage.UsuarioLogado());
        }
Example #5
0
        public void Before()
        {
            _homePage   = new HomePage(Browser);
            _reportPage = new ReportPage(Browser);
            var loginPage = new LoginPage(Browser);

            loginPage.AcessarPagina();
            loginPage.PreencheUsuario("********");
            loginPage.PreencheSenha("**********");
            loginPage.BotaoLogin();
        }