I have found some issues dealing with the WaitFor command that I would like to have addressed.
- Waitfor 30, “ImageFileHere”
If “ImageFileHere” is not found within 30 seconds, Eggplant ends the script. It would be helpful if there was a way to use WaitFor such that if the image is not found, the script can deal with it.
I am aware that the following would work"
WaitFor 30, “ImageFileHere”
Do this or that
It seems reasonable to me, that there should be a way to use it more like"
If WaitFor 30, “ImageFileHere”
However, the result of the WaitFor 30, “ImageFileHere” is the location of the found image, not a boolean that can be used for an if statement.
I think this could be written into a do statement, but that seems like a lot of work for something that should be as simple as writing the WaitFor command into a logic statement.
- There should be a way to Not a WaitFor command.
I have an image on the screen and I’m waiting for it to go away. To do this right now, I’m having to build a repeat loop until ImageFound(“ImageFileHere”) = false.
It seems like this could be functionalized by Eggplant in a logical command like the following:
WaitFor 30, not “ImageFileHere”
Yes, I have written a function that I can call to do just this, but I thought it would be neat if it were built into Eggplant for better readability of the code.
I have found the WaitFor command to be very useful in many areas, but it seems like these small changes could make the tool extensively more useful and shorten the code even further for more readability and function.
Thanks for all your comments, they have always been useful in the past.