← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #693707]: Problem with mouse clicks on images

 

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

Anders W posted a new comment:
@RaiMan: this wait trick seems to work better. But since this is a web
application a web page may sometimes take longer time to load. Wouldn't
example below be a better solution?

if region.exists(button): # wait for page to load and button to appear
    wait(0.3)                          # wait for "animation effect" to finish
    region.click(button)     # search for button again since it may have been moved and then click

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