← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #406805]: Script fail without proper message

 

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

    Status: Open => Answered

Alex Lunyov proposed the following answer:
It seems your script fails while waiting for 1480419928033.png in
doubleClick function after type(Key.ENTER) was successfully passed. That
is usually a problem of system GUI response, that in some cases don't
perform all key actions as you expect. You should better use waiting
constructions like

gui_element_region.wait(gui_element_subpicture, wait_time)

where gui_element_subpicture is little piece of expected element to be
acted on (20 × 20 pixels or so), gui_element_region is a rectangular
region where the subpicture is expected to appear, wait_time is
appropriate time, could be for example FOREVER = wait forever. Use SHOW
button to get the region according to the captured image and use
region.grow(2..5 pixels) to enlarge regions where Sikuli looks for the
subpic.

So you could always be sure your script clicks on appropriate GUI
elements. In most cases :)

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