コード例 #1
0
 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);
 }
コード例 #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));
        }
コード例 #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);
 }
コード例 #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);
 }