ClickWebElement |
Top Previous Next |
×V4.1Ø
Syntax - ClickWebElement <Element Identifier> [<ClickType>] Where: <Element Identifier> is a valid web element identifier as described in Identifying an Element. <ClickType> This is an optional parameter to define the type of automated click. "Default", "Mouse", "SoarianPopup", "SoarianClinicalsPopup", "UseJSFrameRef" or "Windows"
Description: This command simulates a mouse click on an element on a web page identified by <Element Identifier>. This command is used to click buttons, links, and other elements. There are some scenarios in Soarian where an element may be very difficult to click with the ClickWebElement command, but can be activated by sending a carriage return with the SendKeyToWebElement command.
The ClickType parameter defines the type of automated click to be send. "DEFAULT" will keep the standard behavior (mshtml) click. The "WINDOWS" option will get an automation element at the derived element location and perform an invoke. The "MOUSE" option will perform a User32 (coordinate based) mouse click on the derived element location. The "SoarianPopup" and "SoarianClinicalsPopup" option is designated for a special circumstance in Soarian involving pop up menus. The "UseJSFrameRef" is a temporary solution to retrieve the frame path for a control in Soarian.
Soarian SmartUI: Yes Chrome: Yes
Note: The "SoarianPopup" and "SoarianClinicalsPopup" options do not allow the use of wildcards (*) in identifying the actual menu option from Soarian pop up menus such as the Actions button on the RG Details page. See Sample 3 below.
Sample 1: The following statement clicks on the element named FindNewButton. ClickWebElement "Dialog=Main:wellFrame:Button,ID=ctlFindNowButton,INDEX=1"
Sample 2: The following statement clicks on the element named NewWindow with the "WINDOWS" clicktype. ClickWebElement "Browser=Popup Test 1::Button,ID=btnNewWindow,INDEX=1" Windows
Sample 3: The following statement clicks on the Soarian Popup menu item named Add comment with the "SoarianPopup" clicktype. Wildcards are NOT allowed in identifying the actual menu option such as the Add comment TableCell. Wildcards are allowed in other parts of the element identifier. ClickWebElement "Browser=*Soarian*:sframeInner->;wellFrame->;tabWell*:Button,id=ctlRPBPActionsInsBtn,INDEX=1->;Position=TableCell,innertext=Add comment,INDEX=1" SoarianPopup
See Also:
|