public void ThenPageHeaderShouldBeDisplayedAs(string labDetails) { string HlpText = Control_ActionUtilities.GetTextOfAnObject(ReferenceRangesPage.LabTestDetails, "Lab Management Help text", "Study Administration", "Unable to verify help text for Lab Management page."); if (!labDetails.Equals(HlpText)) { Control_ActionUtilities.LogException("Verification of Lab Management help text as '" + labDetails + "'", string.Empty, "Help text for Lab Management is not displayed as " + labDetails + " on Study Administration page."); } }
public void ThenICanSeeTheReferenceRangesOfALabTestInReferenceRangesPage(string labTest) { string HlpText = Control_ActionUtilities.GetTextOfAnObject(ReferenceRangesPage.LabTest, "Lab Management Lab Test", "Lab Management", "Unable to verify Lab Test on Lab Management page."); if (!labTest.Equals(HlpText)) { Control_ActionUtilities.LogException("Verification of Lab Test '" + labTest + "'", string.Empty, "Unable to verify Lab Test " + labTest + " on Lab Management page."); } }
public void ThenHelpTextBelowLabManagementIsDisplayedAs_(string LabMgmtHelpText) { string HlpText = Control_ActionUtilities.GetTextOfAnObject(DL_StudyAdministrationPage.LabMgmntHelpText, "Lab Management Help text", "Study Administration", "Unable to verify help text for Lab Management page."); if (!LabMgmtHelpText.Equals(HlpText)) { Control_ActionUtilities.LogException("Verification of Lab Management help text as '" + LabMgmtHelpText + "'", string.Empty, "Help text for Lab Management is not displayed as " + LabMgmtHelpText + " on Study Administration page."); } }
public void ThenISeePage(string PageName) { string HlpText = Control_ActionUtilities.GetTextOfAnObject(DL_Lab_ManageReferenceRanges.ManageReferenceRanges, "Lab Management Help text", "Study Administration", "Unable to verify help text for Lab Management page."); if (!PageName.Equals(HlpText)) { Control_ActionUtilities.LogException("Verification of Lab Management help text as '" + PageName + "'", string.Empty, "Help text for Lab Management is not displayed as " + PageName + " on Study Administration page."); } //Control_ActionUtilities.VerifyObjectExistOnPage(DL_Lab_ManageReferenceRanges.ManageReferenceRanges, "Manage Reference Ranges title", "Lab Management", "Unable to verify manage reference range page"); }
public static String GetTablePromptInTable() { try { return(Control_ActionUtilities.GetTextOfAnObject(DS_Forms.TablePromptInTable, null, "Properties Page", "Unable to get text")); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); return(null); } }
public static String GetKeySequenceInQuestion() { try { return(Control_ActionUtilities.GetTextOfAnObject(DS_Forms.KeySequenceInQuestionPage, null, "Question page in form", "Unable to get text")); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); return(null); } }