public static bool ApplyFilterWithInvalidData(string columnName, string columnData, string filterCriteria) { try { IControl filterTextbox = WebTableUtilities.GetFilterTextbox(DL_Lab_ManageReferenceRanges.LabsGridFilterRow, GetColumnIndex(columnName)); Control_ActionUtilities.Textbox_SetText(filterTextbox, columnData, String.Empty); IControl filterCriteriaIcon = WebTableUtilities.GetFilterCriteriaIcon(DL_Lab_ManageReferenceRanges.LabsGridFilterRow, GetColumnIndex(columnName)); Control_ActionUtilities.Click(filterCriteriaIcon, String.Empty); IControl filterCriteriaItem = DL_CommonObjects.GetActiveFilterItem(filterCriteria); Control_ActionUtilities.Click(filterCriteriaItem, String.Empty); IControl filterTextbox1 = WebTableUtilities.GetFilterTextbox(DL_Lab_ManageReferenceRanges.LabsGridFilterRow, GetColumnIndex(columnName)); Control_ActionUtilities.Textbox_SetText(filterTextbox1, columnData, String.Empty); IControl filterCriteriaIcon1 = WebTableUtilities.GetFilterCriteriaIcon(DL_Lab_ManageReferenceRanges.LabsGridFilterRow, GetColumnIndex(columnName)); Control_ActionUtilities.Click(filterCriteriaIcon1, String.Empty); IControl filterCriteriaItem1 = DL_CommonObjects.GetActiveFilterItem(filterCriteria); Control_ActionUtilities.Click(filterCriteriaItem1, String.Empty); } catch (Exception e) { new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e); return(false); } return(true); }