← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #288450]: Inconsistent clicking. Some runs it will work, others it will not.

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
trying to use other methods for the click op does not make any sense,
since internally all variants are finally resolved as a Java Robot
action.

So either this works or nothing else works:

switchApp("<WindowName>")
click(image)

where image is a pattern having a target offset
(you might use ctrl-t to switch between code and thumbnail view to see the generated code for <image>)

This should work, if the image appears within 3 seconds after the
switchApp is issued.

To see, what image was found, you might use:
switchApp("<WindowName>")
click(image)
getLastMatch().highlight(2)

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