Exemplo n.º 1
0
        public void LoginMainPageLoginFailed()
        {
            test = extent.StartTest("LoginMainPageLoginFailed");
            LoginMainPage searchEngineMainPage = new LoginMainPage(this.Driver);

            searchEngineMainPage.Navigate();
            searchEngineMainPage.LoginInvalidCredientials();
            TakeScreenshot();
            Thread.Sleep(3000);
            searchEngineMainPage.Validate().CheckForLoginFailure();
            Assert.IsTrue(true);
            test.Log(LogStatus.Pass, "Login failed for Invalid Username and Password");
        }