I am currently evaluating Eggplant Green and Purple and do my first steps into SenseTalk Scripting.
I am currently running in some strange effects when using WaitFor commands. My intention is to have a script which runs an Vise installer in order to install some items on the SUT. So the code is just a few clickin yes buttons. The SUT is located on a Windows Machine running on a VM Server, so the runtime of the whole situation is rather slow, hence the long wait times for the next images to apear.
My code looks something like this, the numbers are line numbers:
1 Click "WinVista/Installer/buttonNext" 2 Click "WinVista/Installer/buttonNext" 3 Click "WinVista/Installer/buttonYes" 4 WaitFor 60.0,"WinVista/Installer/buttonYes" 5 Click "WinVista/Installer/buttonYes" 6 WaitFor 60.0,"WinVista/Installer/buttonYes" 7 Click "WinVista/Installer/buttonYes" 8 WaitFor 60.0,"WinVista/Installer/buttonYes" 9 Click "WinVista/Installer/buttonYes" 10 WaitFor 60.0,"WinVista/Installer/buttonClose" 11 Click "WinVista/Installer/buttonClose" 12Click "WinVista/closeWindow"
Eggplant prompts me with the following message:
waitfor WinVista/Installer/buttonYes found at (705, 586)
click WinVista/Installer/buttonYes at (705, 586)
Exception WinVista/Installer/buttonClose Unable To Find Any Image On Screen “(“WinVista/Installer/buttonClose”)” within 60.00 seconds
Selection Failed in 0:01:04 Image Not Found waitfor Error - Unable To Find Any Image On Screen “(“WinVista/Installer/buttonClose”)” within 60.00 seconds
I understand the message. But if I look on my SUT then I notice that the installer process is stuck on that point which is processed in line 7. So it seems to me that somehow the script runs “faster” then the actual processes on the SUT?!
My understanding at this point is that this should be prevented by the usage of WaitFor command. None of the isntaller processes between all those Yes clicks need 60 seconds to be processed.
Thanks for an insights on this…