SetWebDropDown |
Top Previous Next |
×V4.1Ø
Syntax - SetWebDropDown <Value> <Element Identifier> ["All" | "DIRECTSELECTION" | "KEYPRESS" | "TYPEVALUE" | "PASTEVALUE" | "WILDCARD" | "DIRECTSELECTIONWILDCARD" | "KEYPRESSWILDCARD"] Where: <Value> is a literal string or a variable that contains a string value. <Element Identifier> is a valid web element identifier as described in Identifying an Element.
Description: This command causes EMUE to select an option from a drop down or combo box. The <Value> specified should contain the text that appears in the desired selection. By default, EMUE will try each selection method available. In order to circumvent this process, choose a specific selection method. "ALL" will cycle through each method, which is the same as the default behavior. "DIRECTSELECTION" attempts to immediately jump to the desired option. This method is ideal, but does not work with certain types of dropdowns. "KEYPRESS" will type the first character of the desired option and will continue to press that key until the desired option is found. "TYPEVALUE" will type the desired value one character at a time and checks to see if the selection is equal to the desired value. "PASTEVALUE" will paste the desired value into the control and then confirm that the correct item was selected. If the exact text of the desired dropdown selection is unknown, a wildcard can be used. In order to use a wildcard, one of the wildcard options ("WildCard", "DirectSelectionWildCard", "KeypressWildcard") must be used. EMUE will interpret the asterisk (*) as zero or more characters and the question mark (?) as a single character. This command can be used on Soarian pop up menus as well. Starting with version 5.1 and with Soarian SmartUI, users can specify the text of an option from a pop up menu. The command will expose the menu and click on the desired option.
Soarian SmartUI: Yes Chrome: Yes
Sample 1: The following statement will choose the option "Final" from the drop down list "DiagnosisType". SetWebDropDown "Final" "Browser=Main:sframeInner->wellFrame->tabWell1:SelectList,ID=ctlcmpDiagnosisTypeList__,INDEX=1"
Sample 2: The following example uses a wildcard. Copy StatusCode File 1 2 Concatenate DropdownSelection StatusCode "*" SetWebDropDown DropdownSelection "Dialog=Soarian:wellFrame:DropDownList,__eventBits=1024,INDEX=1" "WildCard"
Sample 3: Soarian Pop up Menu SetWebDropDown "Create a policy" ReviseEncounter_PatientInsurance.ManageList_Button
See Also:
|