public void WhenIClickOnButtonICanSeeErrorMessageUponEachRecordSaveInReferenceRangesPage(string action, string Errormsg) { if (!BP_ReferenceRangesUtilities.GetFirstRowFromTableAndClickOnActionandVerifyError(action, Errormsg)) { ScenarioContext.Current["ActResult"] = "Failed"; } }