public void LoginwithoutPassword() { utilities.ConsoleMessageStart(); utilities.extenttest = utilities.extent.StartTest("Login without password"); utilities.extenttest.AssignCategory("Login and Logout Tests"); login.NavigateTo(); driver.Manage().Timeouts().ImplicitWait = TimeSpan.FromSeconds(2000); login.Loginwithoutpassword(); IWebElement fielderrorpassword = driver.FindElement(By.ClassName("field-validation-error")); Assert.IsTrue(fielderrorpassword.Text.Equals("Please enter password")); utilities.extenttest.Log(LogStatus.Pass, "Assert pass "); }