public static bool SelectQueryOnRunWizardPage(string QueryName, string Version) { bool isQuerySelected = false; try { IControl QueryRow = GetQueryRowFromQueryRunQizard(QueryName, Version); if (!Control_PropertyUtilities.IsControlNull(QueryRow)) { IControl ChkBox = WebTableUtilities.GetElement(QueryRow, string.Empty, 1, TableColumnContentType.Checkbox); if (!Control_PropertyUtilities.IsControlNull(ChkBox)) { isQuerySelected = Control_ActionUtilities.Click(ChkBox, "Unable to select query " + QueryName + " as the checkbox is not found."); } } } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(isQuerySelected); }
public static IControl NAOptionsInMRRTableGridOfMRRPage(string val) { if (val.Equals("true")) { IControl inputTextField = SyncUtilities.FindVisibleElement(By.XPath("//label[1]/input")); if (!Control_PropertyUtilities.IsControlNull(inputTextField)) { return(inputTextField); } } else if (val.Equals("false")) { IControl inputTextField = SyncUtilities.FindVisibleElement(By.XPath("//label[2]/input")); if (!Control_PropertyUtilities.IsControlNull(inputTextField)) { return(inputTextField); } } return(null); }
public static IControl GetChkBoxInFormEventRelation(string EventName, string FormName) { try { int FormRow = GetRowIndexForForm(FormName); int EventCol = GetColumnIndexForEvent(EventName); if (FormRow > 0 && EventCol > 0) { IControl ChkBoxRow = GetChkBoxRowInEventFormRelation(FormRow); if (Control_PropertyUtilities.IsControlNull(ChkBoxRow)) { return(null); } return(new Control(ChkBoxRow.WebElement.FindElement(By.XPath(".//td[" + EventCol + "]//input")))); } } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(null); }
static IControl GetRowFromActiveDCFsSubTab(CRF_DCFTabData data) { try { BP_CRF_DCF_PagerUtilites.NavigateToFirstPage(); do { WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList(); if (!String.IsNullOrEmpty(data.DCFID)) { list.AddSearchItem(new WebTable_SearchCriteriaItem(1, data.DCFID, TableColumnContentType.Text)); } if (!String.IsNullOrEmpty(data.Status)) { list.AddSearchItem(new WebTable_SearchCriteriaItem(2, data.Status, TableColumnContentType.Text)); } if (!String.IsNullOrEmpty(data.QueryDescription)) { list.AddSearchItem(new WebTable_SearchCriteriaItem(3, data.QueryDescription, TableColumnContentType.Text)); } if (!String.IsNullOrEmpty(data.DateTime)) { list.AddSearchItem(new WebTable_SearchCriteriaItem(3, data.DateTime, TableColumnContentType.Text_Partial)); } IControl webTable = DL_FormPage.ActiveDCFsSubTabTable; IControl tableRow = WebTableUtilities.Table_FindRow(webTable, list); if (!Control_PropertyUtilities.IsControlNull(tableRow)) { return(tableRow); } }while (BP_CRF_DCF_PagerUtilites.NavigateToNextPage()); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(null); }
public static IControl GetProtocolChkBoxForForm(string FormName, string ProtocolVer) { try { int ChkBoxIndex = GetProtocolVersionChkBoxIndex(ProtocolVer); if (ChkBoxIndex == 0) { return(null); } IControl row = GetRowOfFormInCreateDatGroupTable(FormName); if (Control_PropertyUtilities.IsControlNull(row)) { return(null); } return(new Control(row.WebElement.FindElement(By.XPath("./td[" + (ChkBoxIndex + 2) + "]//input")))); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(null); }
public static bool VerifyErrorWarnings(List <StudyVerificationErrorsData> errorsList) { BrowserUtilities.DS_SwitchToFrame(); try { foreach (StudyVerificationErrorsData error in errorsList) { IControl errorLink = DS_StudyVerificationMessagesDialog.GetErrorLink(error.Error); if (Control_PropertyUtilities.IsControlNull(errorLink)) { return(false); } } Control_ActionUtilities.Click(StudyVerificationMessagesPopup.Close, "Unable to click Close button"); BrowserUtilities.SwitchToWindow(); return(true); } catch (Exception e) { } return(false); }
public static bool VerifyDCFs_SearchResult(List <MainDCFsTab_SearchData> dataList) { try { foreach (MainDCFsTab_SearchData data in dataList) { WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList(); if (!String.IsNullOrEmpty(data.PatientID)) { list.AddSearchItem(new WebTable_SearchCriteriaItem(0, data.PatientID, TableColumnContentType.Text)); } if (!String.IsNullOrEmpty(data.DCFID)) { list.AddSearchItem(new WebTable_SearchCriteriaItem(1, data.DCFID, TableColumnContentType.Text)); } if (!String.IsNullOrEmpty(data.Status)) { list.AddSearchItem(new WebTable_SearchCriteriaItem(2, data.Status, TableColumnContentType.Text)); } if (!String.IsNullOrEmpty(data.QueryDescription)) { list.AddSearchItem(new WebTable_SearchCriteriaItem(3, data.QueryDescription, TableColumnContentType.Text)); } IControl dcfsTable = DL_DCF_SearchResultsPage.DCFSearchResultsTable; IControl row = WebTableUtilities.Table_FindRow(dcfsTable, list, 1); if (Control_PropertyUtilities.IsControlNull(row)) { return(false); } } return(true); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static IControl GetDropdown_SearchPalette(String dropdownName) { IControl c = null; if (dropdownName.Equals("Created By", StringComparison.InvariantCultureIgnoreCase)) { c = SyncUtilities.FindVisibleElement(By.Id("DCFSearch_ddlCreatedBy")); } else if (dropdownName.Equals("DCF Status", StringComparison.InvariantCultureIgnoreCase)) { c = SyncUtilities.FindVisibleElement(By.Id("DCFSearch_ddlDCFStatus")); } else if (dropdownName.Equals("CRF", StringComparison.InvariantCultureIgnoreCase)) { c = SyncUtilities.FindVisibleElement(By.Id("DCFSearch_ddlCRF")); } else if (dropdownName.Equals("Open Aging", StringComparison.InvariantCultureIgnoreCase)) { c = SyncUtilities.FindVisibleElement(By.Id("DCFSearch_ddlAging")); } else if (dropdownName.Equals("Ready To Print", StringComparison.InvariantCultureIgnoreCase)) { c = SyncUtilities.FindVisibleElement(By.Id("DCFSearch_ddlReadyToPrint")); } else if (dropdownName.Equals("Custom Field", StringComparison.InvariantCultureIgnoreCase)) { c = SyncUtilities.FindVisibleElement(By.Id("DCFSearch_ddlCustomField")); } else if (dropdownName.Equals("Custom Field Value", StringComparison.InvariantCultureIgnoreCase)) { c = SyncUtilities.FindVisibleElement(By.Id("DCFSearch_ddlCustomFieldValue")); } if (!Control_PropertyUtilities.IsControlNull(c)) { return(new Control(c.WebElement, new SelectElement(c.WebElement))); } return(null); }
public static bool verifyTheCheckBoxForTheDeletedRecords(List <RowIndex> rows) { try { foreach (RowIndex rowindex in rows) { int rowindexinint = int.Parse(rowindex.Row); IControl row = WebTableUtilities.GetRowByRowIndex(DL_Lab_MRR_Table.MrrTable, rowindexinint); if (!Control_PropertyUtilities.IsControlNull(row)) { IControl checkbox = DL_Lab_Mrr_Delete.Checkbox(row); return(Control_PropertyUtilities.IsControlNull(checkbox)); } } return(true); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static bool OpenDraftDCFs(String patient, int draftDCFsCount) { try { WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList(); list.AddSearchItem(new WebTable_SearchCriteriaItem(0, patient, TableColumnContentType.Text)); IControl row = WebTableUtilities.Table_FindRow(DL_DCF_PatientsPage.PatientsTable, list, 1); if (!Control_PropertyUtilities.IsControlNull(row)) { IControl link = WebTableUtilities.GetElement(row, draftDCFsCount.ToString(), 2, TableColumnContentType.Link); if (!Control_PropertyUtilities.IsControlNull(link)) { return(Control_ActionUtilities.Click(link, String.Empty)); } } } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
static List <IControl> GetEventFormRows(ReadOnlyCollection <IControl> tableRows, String eventName) { List <IControl> eventFormRows = new List <IControl>(); try { bool isEventMatched = false; foreach (IControl row in tableRows) { IControl eventNameLabel = null; if (IsEventRow(row, out eventNameLabel)) { if (isEventMatched) { return(eventFormRows); } String actualEventNameOld = Control_PropertyUtilities.GetText(eventNameLabel); String actualEventNameNew = actualEventNameOld.Replace("(Select all in event)", ""); isEventMatched = eventName.Equals(actualEventNameNew.Trim(), StringComparison.InvariantCultureIgnoreCase); } else { if (isEventMatched) { IControl formRow = SyncUtilities.FindElement_Parent(row.WebElement, By.Id("lblFormRow")); if (!Control_PropertyUtilities.IsControlNull(formRow)) { eventFormRows.Add(row); } } } } } catch (Exception e) { } return(eventFormRows); }
public static bool ClickLabTestEditLink(String labTest) { try { Control_ActionUtilities.Click(DS_PagerControl.FirstPageImage, "Unable to click the link"); do { WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList(); list.AddSearchItem(new WebTable_SearchCriteriaItem(1, labTest, TableColumnContentType.Text)); IControl processRow = WebTableUtilities.Table_FindRow(MapLabDictionary.LabTestsListTable, list); if (!Control_PropertyUtilities.IsControlNull(processRow)) { IControl proecssCell = WebTableUtilities.GetCell(processRow, 8); IControl cellImage = WebTableUtilities.GetInputControl(proecssCell); return(Control_ActionUtilities.Click(cellImage, "Unable to click Image" + labTest)); } }while (Control_ActionUtilities.Click(DS_PagerControl.NextPageImage, String.Empty)); } catch (Exception e) { } return(false); }
public static IControl GetProtocolChkBoxForFormQuestion(string FormName, string QuestionNum, string QuestionPrompt, string ProtocolVer) { try { int ChkBoxIndex = GetProtocolVersionChkBoxIndex(ProtocolVer); if (ChkBoxIndex == 0) { return(null); } IControl row = GetRowOfFormInCreateDatGroupTable(FormName); if (Control_PropertyUtilities.IsControlNull(row)) { return(null); } ReadOnlyCollection <IControl> Checkboxes = SyncUtilities.FindElements(By.XPath("//span[text()='" + FormName + "']/parent::td/parent::tr/following-sibling::tr//span[contains(text(), '" + QuestionNum + "') and contains(text(),'" + QuestionPrompt + "')]/parent::td/following-sibling::td//input")); return(Checkboxes[0]); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(null); }
public static bool ArePatientsAvailable(IEnumerable <PatientTableData> patients) { try { IControl patientsTable = DL_AdvancedSearchResultsPage.PatientsTable; foreach (PatientTableData patient in patients) { WebTable_SearchCriteriaItemList searchList = new WebTable_SearchCriteriaItemList(); searchList.AddSearchItem(new WebTable_SearchCriteriaItem(1, patient.PatientID, TableColumnContentType.Text)); IControl row = WebTableUtilities.Table_FindRow(patientsTable, searchList, 1); if (Control_PropertyUtilities.IsControlNull(row)) { return(false); } } return(true); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static bool IsSiteDetailsPageOpened() { IControl c = SyncUtilities.FindVisibleElement(By.Id("SiteDetail_txtSiteID")); return(!Control_PropertyUtilities.IsControlNull(c)); int i = 0; while (true) { ++i; IControl addSiteLabel = SyncUtilities.FindElement(By.Id("SiteDetail_lblSite")); if (addSiteLabel.WebElement != null && addSiteLabel.WebElement.Text.Equals("Add Site", StringComparison.InvariantCultureIgnoreCase)) { return(true); } if (i == 5) { return(false); } Thread.Sleep(1000); } }
public static List <String> GetTheRefIDS(List <RowIndex> rows) { try { List <string> refIds = new List <string>(); foreach (RowIndex rowindex in rows) { int rowindexinint = int.Parse(rowindex.Row); IControl row = WebTableUtilities.GetRowByRowIndex(DL_Lab_MRR_Table.MrrTable, rowindexinint); if (!Control_PropertyUtilities.IsControlNull(row)) { IControl refId = WebTableUtilities.GetCell(row, 1); refIds.Add(Control_PropertyUtilities.GetText(refId)); } } return(refIds); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(null); }
public static IControl GetDropdown_SearchPalette(String dropdownName) { IControl c = null; if (dropdownName.Equals("Target App:", StringComparison.InvariantCultureIgnoreCase)) { c = SyncUtilities.FindVisibleElement(By.Id("ddlTargetApp")); } if (dropdownName.Equals("Document name selection listbox1", StringComparison.InvariantCultureIgnoreCase)) { c = SyncUtilities.FindVisibleElement(By.Id("ctl00_ctl00_ContentBody_ContentBody_ddlist1")); } if (!Control_PropertyUtilities.IsControlNull(c)) { return(new Control(c.WebElement, new OpenQA.Selenium.Support.UI.SelectElement(c.WebElement))); } else if (!Control_PropertyUtilities.IsControlNull(c)) { return(new Control(c.WebElement, new OpenQA.Selenium.Support.UI.SelectElement(c.WebElement))); } return(null); }
public static bool IsLabMappingsSpecificationDialogExist(String title, String message) { try { IControl titleControl = DS_LabMappingsSpecificationDialog.Title; if (!Control_PropertyUtilities.IsControlNull(titleControl) && Control_PropertyUtilities.GetText(titleControl).Contains(title)) { BrowserUtilities.DS_SwitchToFrame(); IControl messageControl = DS_LabMappingsSpecificationDialog.Message; if (!Control_PropertyUtilities.IsControlNull(messageControl) && Control_PropertyUtilities.GetText(messageControl).Contains(message)) { BrowserUtilities.SwitchToWindow(); return(true); } } } catch (Exception e) { } return(false); }
public static bool IsFormInvoked(String eventName, String formName) { try { IControl crfHeaderTable = DL_CRFPage.CRFHeaderTable; if (!Control_PropertyUtilities.IsControlNull(crfHeaderTable)) { WebTable_SearchCriteriaItem item1 = new WebTable_SearchCriteriaItem(1, "Event:" + eventName, TableColumnContentType.Text); WebTable_SearchCriteriaItem item2 = new WebTable_SearchCriteriaItem(1, "CRF:" + formName, TableColumnContentType.Text); WebTable_SearchCriteriaItemList list = new WebTable_SearchCriteriaItemList(); list.AddSearchItem(item1); list.AddSearchItem(item2); IControl row = WebTableUtilities.Table_FindRow(crfHeaderTable, list); bool resutl = !Control_PropertyUtilities.IsControlNull(row); } } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
static bool SetPermissions(List <GroupPermissionsData> dataList, out bool arePermissionsChanged) { arePermissionsChanged = false; try { String currentCategory = String.Empty; foreach (GroupPermissionsData data in dataList) { if (ExpandCategory(currentCategory, data.Category)) { currentCategory = data.Category; } PermissionValue value = PermissionValue.None; IControl permissionCell = DL_PermissionsPage.GetPermissionValue(data.Category, data.Permission, data.PermissionType, out value); if (permissionCell != null && !Control_PropertyUtilities.IsControlNull(permissionCell)) { bool found = false; String propValue = Control_PropertyUtilities.GetAttributeValue(permissionCell, "checked", out found); if (!found) { bool isClicked = Control_ActionUtilities.Click(permissionCell, String.Empty); arePermissionsChanged = true; } } else { return(false); } } return(true); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } return(false); }
public static bool ClickContinueButton() { bool retVal = false; BrowserUtilities.SwitchToFrame(); try { IControl modalHeaderLabel = DL_ModalWindow_ResetCRF.TitleLabel_Step2; if (!Control_PropertyUtilities.IsControlNull(modalHeaderLabel)) { String headerText = Control_PropertyUtilities.GetText(modalHeaderLabel); if (headerText.Equals("Reset Form", StringComparison.InvariantCultureIgnoreCase)) { retVal = Control_ActionUtilities.ClickModalButton(DL_ModalWindow_ResetCRF.ContinueButton); } } } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); } BrowserUtilities.SwitchToWindow(); return(retVal); }
public static IControl GetActiveFilterItem(String filterCriteria) { Thread.Sleep(5000); ReadOnlyCollection<IControl> filterOptions = GetDropdownItems(); if (filterCriteria.Equals("Equal to")) { if (!Control_PropertyUtilities.IsControlNull(filterOptions[0])) { return filterOptions[0]; } } else if (filterCriteria.Equals("Not equal to")) { if(!Control_PropertyUtilities.IsControlNull(filterOptions[1])) { return filterOptions[1]; } } else if (filterCriteria.Equals("Starts with")) { if (!Control_PropertyUtilities.IsControlNull(filterOptions[2])) { return filterOptions[2]; } } else if (filterCriteria.Equals("Contains")) { if (!Control_PropertyUtilities.IsControlNull(filterOptions[3])) { return filterOptions[3]; } } else if (filterCriteria.Equals("Does not contain")) { if (!Control_PropertyUtilities.IsControlNull(filterOptions[4])) { return filterOptions[4]; } } else if (filterCriteria.Equals("Ends with")) { if (!Control_PropertyUtilities.IsControlNull(filterOptions[5])) { return filterOptions[5]; } } else if (filterCriteria.Equals("Is greater than or equal to") || filterCriteria.Equals("Is after or equal to")) { if (!Control_PropertyUtilities.IsControlNull(filterOptions[2])) { return filterOptions[2]; } } else if (filterCriteria.Equals("Is greater than") || filterCriteria.Equals("Is after")) { if (!Control_PropertyUtilities.IsControlNull(filterOptions[3])) { return filterOptions[3]; } } else if (filterCriteria.Equals("Is less than or equal to") || filterCriteria.Equals("Is before or equal to")) { if (!Control_PropertyUtilities.IsControlNull(filterOptions[4])) { return filterOptions[4]; } } else if (filterCriteria.Equals("Is less than") || filterCriteria.Equals("Is before")) { if (!Control_PropertyUtilities.IsControlNull(filterOptions[5])) { return filterOptions[5]; } } return null; }
public static bool IsNoRecordsMessageExistInSitesTable() { IControl c = DL_AddLabPage.NoRecordsToDisplayDiv; return(c != null && !Control_PropertyUtilities.IsControlNull(c)); }
private static bool VerifyImage(IControl cell, string expected) { try { if (!Control_PropertyUtilities.IsControlNull(cell)) { IControl image = DL_Patient_EventFormsPage.GetImageInPatientCasebookCell(cell); if (!Control_PropertyUtilities.IsControlNull(image)) { bool found = false; String srcProperty = Control_PropertyUtilities.GetAttributeValue(image, "src", out found); if (found) { if (expected.Equals("On", StringComparison.InvariantCultureIgnoreCase)) { return(srcProperty.EndsWith("/yes.gif", StringComparison.InvariantCultureIgnoreCase)); } else if (expected.Equals("Off", StringComparison.InvariantCultureIgnoreCase)) { return(srcProperty.EndsWith("/no.gif", StringComparison.InvariantCultureIgnoreCase)); } else if (expected.Equals("Some", StringComparison.InvariantCultureIgnoreCase)) { return(srcProperty.EndsWith("/some.gif", StringComparison.InvariantCultureIgnoreCase)); } else if (expected.Equals("Ready", StringComparison.InvariantCultureIgnoreCase)) { return(srcProperty.EndsWith("/no_ready.gif", StringComparison.InvariantCultureIgnoreCase)); } else if (expected.Equals("Signed", StringComparison.InvariantCultureIgnoreCase)) { return(srcProperty.EndsWith("/yes.gif", StringComparison.InvariantCultureIgnoreCase)); } else if (expected.Equals("Rejected", StringComparison.InvariantCultureIgnoreCase)) { return(srcProperty.EndsWith("/no_rejected.gif", StringComparison.InvariantCultureIgnoreCase)); } else if (expected.Equals("Changed", StringComparison.InvariantCultureIgnoreCase)) { return(srcProperty.EndsWith("/changed.gif", StringComparison.InvariantCultureIgnoreCase)); } else if (expected.Equals("PartialSubmit", StringComparison.InvariantCultureIgnoreCase)) { return(srcProperty.EndsWith("/doc_partialsubmit.gif", StringComparison.InvariantCultureIgnoreCase)); } else if (expected.Equals("Submit", StringComparison.InvariantCultureIgnoreCase)) { return(srcProperty.EndsWith("/doc_s.gif", StringComparison.InvariantCultureIgnoreCase)); } else if (expected.Equals("NotSaved", StringComparison.InvariantCultureIgnoreCase)) { return(srcProperty.EndsWith("/doc_notstarted.gif", StringComparison.InvariantCultureIgnoreCase)); } } } } } catch (Exception e) { } return(false); }
public static bool VerifyPatientCasebook(String eventName, List <PatientCasebookData> dataList) { try { foreach (PatientCasebookData data in dataList) { IControl crfCell = null; IControl formRow = BP_Patient_EventFormUtilities.GetFormRow(eventName, data.CRF, out crfCell); if (!Control_PropertyUtilities.IsControlNull(formRow) && !Control_PropertyUtilities.IsControlNull(crfCell)) { if (!String.IsNullOrEmpty(data.FormStatus)) { IControl cell = WebTableUtilities.GetCell(formRow, 0); if (!VerifyImage(cell, data.FormStatus)) { return(false); } } if (!String.IsNullOrEmpty(data.DCF)) { IControl cell = WebTableUtilities.GetCell(formRow, 1); if (!VerifyImage(cell, data.DCF)) { return(false); } } if (!String.IsNullOrEmpty(data.SDVerify)) { IControl cell = WebTableUtilities.GetCell(formRow, 2); if (!VerifyImage(cell, data.SDVerify)) { return(false); } } if (!String.IsNullOrEmpty(data.MReview)) { IControl cell = WebTableUtilities.GetCell(formRow, 3); if (!VerifyImage(cell, data.MReview)) { return(false); } } if (!String.IsNullOrEmpty(data.DReview)) { IControl cell = WebTableUtilities.GetCell(formRow, 4); if (!VerifyImage(cell, data.DReview)) { return(false); } } if (!String.IsNullOrEmpty(data.Signed)) { IControl cell = WebTableUtilities.GetCell(formRow, 5); if (!VerifyImage(cell, data.Signed)) { return(false); } } if (!String.IsNullOrEmpty(data.Frozen)) { IControl cell = WebTableUtilities.GetCell(formRow, 6); if (!VerifyImage(cell, data.Frozen)) { return(false); } } if (!String.IsNullOrEmpty(data.Locked)) { IControl cell = WebTableUtilities.GetCell(formRow, 7); if (!VerifyImage(cell, data.Locked)) { return(false); } } } } return(true); } catch (Exception e) { } return(false); }
public static bool isTableRowCollapsedInCRF(IControl TableRow) { IControl c = SyncUtilities.FindVisibleElement_Parent(TableRow.WebElement, By.XPath(".//div[contains(@style, 'display: none')]")); return(!Control_PropertyUtilities.IsControlNull(c)); }
public static bool IsLinkAvailableInLeftPalette(IControl actionPaletteGroup, String linkName) { IControl c = SyncUtilities.FindElement_Parent(actionPaletteGroup.WebElement, By.LinkText(linkName)); return(!Control_PropertyUtilities.IsControlNull(c)); }
public static bool IsNoRecordsMessageExistInSitesTable() { IControl c = DL_Lab_ManageReferenceRanges.NoRecordsToDisplayDiv; return(c != null && !Control_PropertyUtilities.IsControlNull(c)); }
public static bool IsInLoginPage() { return(!Control_PropertyUtilities.IsControlNull(DL_LoginPage.UserNameTextbox) && !Control_PropertyUtilities.IsControlNull(DL_LoginPage.PasswordTextbox) && !Control_PropertyUtilities.IsControlNull(DL_LoginPage.LoginButton)); }
static bool HasPages() { IControl goToFirstPageIcon = DL_Pagination1.GetFirstPageIcon(DL_SiteManagementPage.Pager); return(!Control_PropertyUtilities.IsControlNull(goToFirstPageIcon)); }