Use the DoClick method instead of Click in cases in which the Click method cannot successfully click. In some cases, the Click method may not be able to find the location of these items; use DoClick in such situations. See API click versus Agent click for more information.
DoClick ([bAsync])
Variable | Description |
---|---|
bAsync | Optional: TRUE to execute asynchronously. Default is FALSE. If clicking the control causes a modal dialog box, pop-up browser, or other pop-up window to appear, then by default DoClick hangs while the dialog box or pop-up window is open. In such situations, you should set bAsync to TRUE. This causes DoClick to return immediately, which allows your script to continue processing, that is, manipulate or close the dialog box or pop-up window. BOOLEAN. |