示例#1
0
        public void LoginTest()
        {
            var mainSteps  = new MainSteps();
            var loginSteps = new LoginSteps();
            var login      = "******";
            var pass       = "******";

            WebDriverManager.OpenUrl(Urls.Base);
            mainSteps.ClickOnSignIn();
            Assert.True(loginSteps.IsLoginFieldDisplayed(), "Login field doesn't displayed");
            loginSteps.TypeEmail(login);
            loginSteps.TypePass(pass);
            loginSteps.clickOnSubmitButton();
            Assert.True(loginSteps.IsErrorMessageDisplayed(), "ErrorMessage doesn't displayed");
        }