← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #239839]: Event based execution of script

 

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

Description changed to:
I have one situation wherein the 'stop' button disables on GUI when the
test is done successfully.

I need to wait on that screen (wait for the 'stop' button to be greyed
out ) and then move on to close the window in which this operation is
being performed.

I tried the following code :
while exists("img1"): wait(25)
   sleep(1)
    if exists("img2"):
    print "Test Done"
    type(Key.F4,KEY_ALT)

###
where img1='stop' button enabled
            img2='stop' button disabled 
and the test takes around 20 seconds to run.
Thanks

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