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); }
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); }