Example #1
0
        public void CheckIsLoggedInWithInvalidPassword()
        {
            var email            = "Lili" + DateTime.Now.Minute + "@mail.bg";
            var password         = "******";
            var registrationPage = new RegistrationPage(this.driver);
            var registrationUser = new RegisterUser(email, "Lili Ivanova", password, password);

            registrationPage.NavigateTo();

            registrationPage.FillRegistrationForm(registrationUser);

            var loginPage = new LoginPage(this.driver);

            loginPage.LogOffButton.Click();
            loginPage.LoginButton.Click();
            var loginUser = new LoginUser(email, password + "FALSE");

            loginPage.FillLoginForm(loginUser);

            loginPage.AssertErrorMessageForInvalidLoginData("Invalid login attempt.");
        }