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

    Status: Open => Answered

RaiMan proposed the following answer:
The part, where you put my suggestion is not visited ("Re-clicking menu
item." is not printed).

my suggestion is also for the visited part:

not:
        appWindow.wait(HighlightedOpenNotebook, 1);
        appWindow.click(HighlightedOpenNotebook);

but:
        appWindow.wait(HighlightedOpenNotebook, 1);
        appWindow.click();

The Debug.action() here does not make sense, since a click is logged
anyways.

BTW: reducing the waittime below 3 seconds does not make sense: If the
image is already found after one second, the the search terminates with
success. If it is not found within 1 second (high risk) you get a
FindFailed even if after 2 - 3 seconds the image would have been found.

If there is a risk, that an image search takes longer in some cases,
just set the waittime to 5 or even 10 seconds, which would give some
robustness for special situations, but does not harm if it succeeds in
shorter times.

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to