← Back to team overview

sikuli-driver team mailing list archive

[Question #274718]: IDE command wait("image") not waiting for image to appear before script continues

 

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

Hello, I am a beginner user of Sikuli and have been using the sikuli IDE to create sikuli scripts for a research project.  I just recently upgraded to Sikulix 1.1.0 and the program I've be automating with Sikuli, Adobe Acrobat, also just recently upgraded it's version to DC.  I changed all the images in my script to match the new images from the updated version of Adobe Acrobat but the IDE script no longer works correctly.

The old IDE script I used to run to automate a process was short and simple:

doubleClick("image")
click("image")
click("image")
click("image")
click("image")
wait("image", 300)
click("image")

This script worked without problems before the upgrades. However. the script no longer seems to work after upgrading and then updating all the images for the new Adobe Acrobat process I need to run.  

The process doesn't wait at that wait() step.

doubleClick("image")
click("image")
click("image")
click("image")
click("image")
wait("image")
click("image")

I've also tried varying the script with  waitVanish(), looking for a different image,  along with onAppear, but I cannot get the process to stop and wait before moving on to the last command.  I am hoping I have made a simple error that someone can point out to me or perhaps there has been a slight change made in the scripting that I have overlooked with the new Sikulix release.  I haven't found a solution that "works" in the documentation or in the help forums so far which could mean it's a bug, but it could just as likely be user error (me).

The image I am asking the process to wait on is a button that says "completed" when a batch of tiff are done being processed.  I have  wondered if perhaps the "completed" button might be appearing too fast for me to see between each processed image? Can anyone recommend a way to test for this?

In an attempt to keep sikuli from getting confused I use a simple grey background and limited icons on my desktop.  I am using a windows 7 machine to run the script (windows 7 is a requirement for the project we are working on).  My current version of JAVA is Version 8. 

Thank you for your help.


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