← Back to team overview

sikuli-driver team mailing list archive

[Question #164202]: Find commands never seems to time out

 

New question #164202 on Sikuli:
https://answers.launchpad.net/sikuli/+question/164202

Have a simple set of scripts that function when the elements are there. What I am trying to do is error out when there is a change to the UI. Scripts work fine and complete when the elements are correct, but seem to wait forever when they are not there.

Here is the sample script:
setAutoWaitTimeout(4000) #setting this because some elements are so to load
type( , "This is my test entry for you to see that this works")
click( )
find( )
hover( )
find( )
click( )
...

As you can see there is nothing to complicated by this, but find will keep trying forever it seems like. I ran this script from mac command-line and it waited over 2 hours on a find() and once it was found it continue with the next step.

I need to know how to get it to timeout, or throw an error so that I know it failed.

Thanks,
Rod Tietjen

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