sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03528
Re: [Question #162372]: Best way to code closing a browser(app) triggered after a complete windows copy event
Question #162372 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/162372
Status: Open => Answered
Calle Rundgren proposed the following answer:
I would use a while()-loop in order to wait until the save is finished.
It can look like this.
while exists(Image which appears on screen) #the Image shown during the save.
wait(5) #wait and checks the screen once every 5s
App.close("Firefox") #use App.close() instead of closeApp()
App.close("cmd")
For more information:
http://sikuli.org/docx/tutorials/surveillance/surveillance.html
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.