Пример #1
0
        public void LogInErrorMessageSuccessfullyDisplayed()
        {
            LogInPage logInPage = new LogInPage(driver);

            NavigateToURL(logInPage.homepage);

            logInPage.EnterUserName(logInPage.wrongUserName);
            logInPage.EnterPassword(logInPage.wrongPassword);

            logInPage.ClickOnLogInButton();

            Assert.IsTrue(logInPage.IsLogInErrorDispalyed());
        }
Пример #2
0
        public void LogInSuccessfully()
        {
            LogInPage logInPage = new LogInPage(driver);

            NavigateToURL(logInPage.homepage);

            logInPage.EnterUserName(logInPage.correctUserName);
            logInPage.EnterPassword(logInPage.correctPassword);

            logInPage.ClickOnLogInButton();

            Assert.IsTrue(logInPage.IsLogInSuccessfull());
        }