← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #233689]: Detect a dialog box

 

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

Eugene S posted a new comment:
Just a guess..
Since this is a very basic Sikuli functionality, I find it hard to believe that there is any core issue with image detection.
What I would check is timing settings. Could it be that you try to detect the image before it actually appeared on the screen? This is in case it takes some time for your Dialog Box to appear.
Try to add something like that before your "if exists(image.jpg)" statement:

time.sleep(2)


Don't forget to import the "time" module:

import time

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