Esempio n. 1
0
 public void LoginMissingCredentials(ExtentTest reporter)
 {
     SetMethods.GoToURL(ExcelLib.ReadData(1, "Galacasino.com"), reporter);
     loginButtonHeader.ClickButton(reporter);
     loginSubmitButton.ClickButton(reporter);
     usernameFieldError.VerifyTextIdentical(ExcelLib.ReadData(1, "fieldRequired"), reporter);
     passwordFieldError.VerifyTextIdentical(ExcelLib.ReadData(1, "fieldRequired"), reporter);
 }
Esempio n. 2
0
 public void LoginGood(ExtentTest reporter)
 {
     SetMethods.GoToURL(ExcelLib.ReadData(1, "Galacasino.com"), reporter);
     loginButtonHeader.ClickButton(reporter);
     userNameField.EnterText(ExcelLib.ReadData(1, "userName"), reporter);
     passwordField.EnterText(ExcelLib.ReadData(1, "password"), reporter);
     loginSubmitButton.ClickButton(reporter);
     myAccountButtonHeader.ClickButton(reporter);
     myAccountWelcome.VerifyTextIdentical(ExcelLib.ReadData(1, "user_in2906161_Name"), reporter);
 }