public static bool ValidateDefaultSelectedItemInDropDownMenu(String item)
 {
     //BrowserUtilities.SwitchToWebFocusFrame();
     if (!Control_ActionUtilities.Dropdown_VerifySelectedItem(wf_Page_Frame.CountrySelect_dropdown, item, "Item not found as default item"))
     {
         return(false);
     }
     return(true);
 }
Example #2
0
        static bool IsNewPatientsValueMatched(IControl row, String value)
        {
            if (String.IsNullOrEmpty(value))
            {
                return(true);
            }
            IControl dropdown = WebTableUtilities.GetElement(row, String.Empty, 1, TableColumnContentType.Dropdown);

            return(Control_ActionUtilities.Dropdown_VerifySelectedItem(dropdown, value, String.Empty));
        }
Example #3
0
 public static bool VerifyCustomFieldDropdownValue2(String value)
 {
     try
     {
         return(Control_ActionUtilities.Dropdown_VerifySelectedItem(DL_EditDCFPage.CustomFieldDropdown2, value, String.Empty));
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }
Example #4
0
 public static bool LabsDropDownDefaultValue(String value)
 {
     try
     {
         if ((Control_ActionUtilities.Dropdown_VerifySelectedItem(DS_StudyProperties.LabDropDown, value, "DefaultvalueisnotNo")))
         {
             return(true);
         }
     }
     catch (Exception e)
     {
         new DebugLogGenerator().WriteException(MethodBase.GetCurrentMethod().DeclaringType.Name, MethodBase.GetCurrentMethod().Name, e);
     }
     return(false);
 }