Try simulating the Escape key stroke before the second click:
Sys.Keys("[Esc]");
質問
In my tests I have managed to right-click on my Application icon in the Notification area and work with the menu that appears as a result of this action. The next step is ,I again need to click on the app icon in notification area and select another option from the menu.
As a result of my first click, the menu is still open when it attempts the second click. How can i make the menu disappear before my second click?
I am using Testcomplete9 and jscript.
Thanks for your help!
解決
Try simulating the Escape key stroke before the second click:
Sys.Keys("[Esc]");