← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #181907]: Delete value from field on Mac

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
On Mac, other than on Windows, the first click on a GUI element, only
acts on the GUI element, if the application window already has the
focus. This is generally not the case when running a Sikuli script.

So you first have to focus to your application somehow, before starting
any actions in that application.

You might use switchApp() or App.focus() to get the application
frontmost and focused.

Or you use a click() on an area of the app window, that has no effect,
but brings the window to front and makes it focused.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.