public void WhenLeaveEmailEmptyAndEnterPasswordAndClickOnSignInButtonOnSignInPage() { SignInPageKeyword sk = new SignInPageKeyword(); sk.SendKeysInPasswordField("gscxgashg"); sk.ClickOnSignInButtonOnSignInPage(); }
public void WhenEnterEmailAndLeavePasswordFieldEmptyAndClickOnSignInButtonOnSignInPage() { SignInPageKeyword sk = new SignInPageKeyword(); sk.SendKeysInEmailField("*****@*****.**"); sk.ClickOnSignInButtonOnSignInPage(); }
public void WhenEnterIncorrectEmailIdAndPasswordAndClickOnSignInButtonOnSignInPage() { SignInPageKeyword sk = new SignInPageKeyword(); sk.SendKeysInEmailField("*****@*****.**"); sk.SendKeysInPasswordField("gscxgashg"); sk.ClickOnSignInButtonOnSignInPage(); }
public void ThenTheCorrectMessageShouldBeDisplayWithoutEmail() { SignInPageKeyword sk = new SignInPageKeyword(); //ExtentTest test = ExtentReport.extent.CreateTest("login without email"); try { Assert.AreEqual("An email address required.", sk.GetTextWithoutEmail()); // test.Log(Status.Pass, "not able to login"); //test.Info(sk.GetTextWithoutEmail()); }catch (AssertFailedException e) { //test.Log(Status.Fail, "able to login"); throw e; } }
public void ThenTheCorrectMessageShouldBeDisplayWithIncorrectCredentials() { SignInPageKeyword sk = new SignInPageKeyword(); //ExtentTest test = ExtentReport.extent.CreateTest("Login With ivalid credential on AutomationPractice.com"); try { Assert.AreEqual("Authentication failed.", sk.GetTextWithIcorrectCredentials()); // test.Log(Status.Pass, "not able to login"); //test.Info(sk.GetTextWithIcorrectCredentials()); } catch (AssertFailedException e) { //test.Log(Status.Fail, "able to login"); throw e; } }
public void WhenLeaveEmailAndPasswordFieldEmptyAndClickOnSignInButtonOnSignInPage() { SignInPageKeyword sk = new SignInPageKeyword(); sk.ClickOnSignInButtonOnSignInPage(); }