← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #674145]: What is the correct way to click on drop-down menus that highlight?

 

Question #674145 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/674145

    Status: Open => Answered

RaiMan proposed the following answer:
Uuups, just went back in your answers and found, that you are on macOS
--- sorry.

On Mac  we have the bad situation, that a click on an app, that might be
seen in the foreground does not have the focus.

So please take care, that the targeted application has the focus, before
trying to click something.

This can be done by y a click somewhere in the app window, that does not
do anything, but activate the window or by using the feature
App.focus().

When I am doing my test on Mac, I always have this at the beginning:

App.focus("safari"); // as an example
RunTime.pause(1); // just to give the GUI some time

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.