Hi all, I need to handle a special case in my application in which I have a dialog opened and click on button “Save” which makes a process… so it shows a window message saying “in progress” or something like that… only when the dialog disappears the application is ready to make any other action.
For other tests I waited for a “result image” which appeared once the process was done. However, in this case, there is no result image or change in the UI that could tell me the process is done, except the message window “in progress” disappears.
Then, to solve this problem I wanted to add code that says:
wait until ImageFound(“inprogress”) is false
However, I’ve seen some cases in the application in which it gets hung and the message “in progress” never disappears. In this case, the line of code above will get hung, then both the application and the Eggplant test
case will get hung!
Then, to avoid this infinite loop I wanted to add one more condition like:
wait until ImageFound(“inprogress”) is false and currentTime is less than or equal to timeout
However, I dont know how to make something similar to Time.Now from other languages, to get the initial time and time running?
Is there something like Time.now in Eggplant?
Do you suggest a better solution to add control to these lines of code?