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 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 ShouldBeAbleToLoginSuccessfully(string username)
        {
            var login    = new SauceDemo_LoginPage(driver);
            var variable = new Variables();

            login.LoginToSauceDemo(username, variable.validPassword);
            var homepage = new SauceDemo_HomePage(driver);

            Assert.IsTrue(homepage.IsNavigatedToHomePage());
        }