18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
How to exit from the script, with status "-Stopped Playback: SUCCESS-"
Hi All,
Using sahi script, I click on a div element. After clicking on this div element, it takes 3-4 minutes to load the page and till then sahi script waits for page reload.
Clicking on this div element is my last step of the script and after that, I want to exit from the script instantly, irrespective of page load.
In other words, after executing step _click(_div(element)); controller should show the message "--Stopped Playback: SUCCESS--" immediately, without waiting for the page load on GUI side.
How to do this? Is there any exit/escape command in sahi?
Kindly help.
Using sahi script, I click on a div element. After clicking on this div element, it takes 3-4 minutes to load the page and till then sahi script waits for page reload.
Clicking on this div element is my last step of the script and after that, I want to exit from the script instantly, irrespective of page load.
In other words, after executing step _click(_div(element)); controller should show the message "--Stopped Playback: SUCCESS--" immediately, without waiting for the page load on GUI side.
How to do this? Is there any exit/escape command in sahi?
Kindly help.
Comments
If you are not caring about the UI not loading, then do not click the div.
Ragards
Sumitra
Thanks for the response.
Actually, this div is for rebooting my appliance and I want to reboot appliance using Sahi script. So clicking on that div is essential for me.
Well, I have got the solution. I am running script in batch mode and it successfully comes out after just clicking on the div.
But still, I would like to know, if it is possible using Sahi controller.
Regards,
nagar