public static bool VerifyHeaderAndErrorMessage(String titleText, String bodyMessageText_Partial) { BrowserUtilities.DS_SwitchToConfirmationFrame(); if (IsModalExist_CheckHeaderAndErrorMessage(titleText, bodyMessageText_Partial)) { return(true); } BrowserUtilities.SwitchToWindow(); return(false); }
public static bool DeleteJobsContinue(String titleText, String bodyMessageText_Partial) { BrowserUtilities.DS_SwitchToConfirmationFrame(); bool isClicked = false; //if (DeleteJobsModalExist_CheckHeaderTextAndBodyMessage(titleText, bodyMessageText_Partial)) //{ // isClicked = Control_ActionUtilities.ClickModalButton(DS_ConfirmationPopup.DeleteJobsContinue); //} BrowserUtilities.SwitchToWindow(); return(isClicked); }
public static bool VerifyStudyContinue(String titleText, String bodyMessageText_Partial) { BrowserUtilities.DS_SwitchToConfirmationFrame(); bool isClicked = false; if (IsModalExist_CheckHeaderTextAndBodyMessage(titleText, bodyMessageText_Partial)) { isClicked = Control_ActionUtilities.ClickModalButton(VerifyStudyPopup.VerifyContinue); } BrowserUtilities.SwitchToWindow(); return(isClicked); }
public static bool VerifyandClickErrorLink(String popupTitle, String errorMessage, String errorLinkName) { BrowserUtilities.DS_SwitchToConfirmationFrame(); bool isClicked = false; if (IsModalExist_CheckHeaderTextAndErrorLinkMessage(popupTitle, errorMessage)) { isClicked = Control_ActionUtilities.Click_PerssEnterKey(DS_HomePage.GetLink(errorLinkName), "Unable to find link " + errorLinkName + " in Designer Home Page"); } BrowserUtilities.SwitchToWindow(); return(isClicked); }
public static bool ClickCompareStudyButton() { BrowserUtilities.DS_SwitchToConfirmationFrame(); try { return(Control_ActionUtilities.Click(CompareStudyPopup.CompareButton, String.Empty)); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } BrowserUtilities.DS_SwitchToConfirmationFrame(); return(true); }
public static bool ChangingLabDictPopupOkButton() { try { BrowserUtilities.DS_SwitchToConfirmationFrame(); Control_ActionUtilities.ClickModalButton(DS_ModelDialog.ChangingLabDictOkButton); BrowserUtilities.SwitchToWindow(); return(true); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static bool ModelDialog_OkButton() { BrowserUtilities.DS_SwitchToConfirmationFrame(); bool isClicked = false; try { isClicked = Control_ActionUtilities.ClickModalButton(DS_ModelDialog.SavePopupErrorOkButton); BrowserUtilities.SwitchToWindow(); return(isClicked); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static bool ClickContinue(String titleText, String bodyMessageText_Partial) { try { if (IsModalExist_CheckHeaderTextAndBodyMessage(titleText, bodyMessageText_Partial)) { BrowserUtilities.DS_SwitchToConfirmationFrame(); //check message Control_ActionUtilities.ClickModalButton(DS_ConfirmationPopup.Continue); return(BrowserUtilities.SwitchToWindow()); } } catch (Exception e) { } return(false); }
public static bool ClickTargetStudyVersion(String studyName) { BrowserUtilities.DS_SwitchToConfirmationFrame(); try { WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList(); list.AddSearchItem(new WebTable_SearchCriteriaItem(1, studyName, TableColumnContentType.Text)); IControl processRow = WebTableUtilities.Table_FindRow(CompareStudyPopup.TargetStudyTable, list); IControl StudyNamecell = WebTableUtilities.GetCell(processRow, 0); IControl cellImage = WebTableUtilities.GetInputControl(StudyNamecell); Control_ActionUtilities.Click(cellImage, "Unable to click the radio button of study" + studyName); } catch (Exception e) { } BrowserUtilities.SwitchToWindow(); return(true); }