public void LockedOutUserShouldNotBeABleToLogin()
        {
            var login    = new SauceDemo_LoginPage(driver);
            var variable = new Variables();

            login.LoginToSauceDemo(variable.lockedOutUser, variable.validPassword);
            Assert.AreEqual(variable.lockedOutUserErrorMessage, login.GetLoginErrorMessage());
        }
        public void ShouldNotBeAbleToLoginWhenCredentialsAreBlank()
        {
            var login    = new SauceDemo_LoginPage(driver);
            var variable = new Variables();

            login.ClickLoginButton();
            Assert.AreEqual(variable.usernameRequiredErrorMessage, login.GetLoginErrorMessage());
        }
        public void ShouldNotBeAbleToLoginFOrInvalidPassword()
        {
            var login    = new SauceDemo_LoginPage(driver);
            var variable = new Variables();

            login.LoginToSauceDemo(variable.validUsername, variable.invalidCredential);
            Assert.AreEqual(variable.invalidCredentialErrorMessage, login.GetLoginErrorMessage());
        }
        public void ShouldNotBeAbleToLoginWhenUsernameIsBlank()
        {
            var login    = new SauceDemo_LoginPage(driver);
            var variable = new Variables();

            login.EnterPassword(variable.validPassword);
            login.ClickLoginButton();
            Assert.AreEqual(variable.usernameRequiredErrorMessage, login.GetLoginErrorMessage());
        }