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.
Sahi ant vs playback
Hello,
I am fairly new to Sahi, but my company has been using it for some time now. I looked at the scripts that have been written, and I see a lot of "_wait()" statements. I asked why these were there, and I was told that they wait for the page to render.
Now, I looked at Sahi documentation and it said that you don't need to wait for page to load or even ajax calls. So i used the sahi browser client, loaded one of the script files (from which i had removed all "_wait" statements) and used Playback. The script ran fine, and a lot faster (obviously).
But, in our build environment, if i remove the "_wait" statements, the tests fail. The difference i saw was that in our build environment (which is on Hudson) we use the Ant sahi task to execute the script. When the "_wait" statement is removed, it keeps failing as it cannot find certain elements on the page (which probably means the page has not loaded completely). The "_wait" solves this, by waiting for the page to load completely.
What is the difference between the 2 methods, playback vs ant? And is there any solution to this?
Thanks.
I am fairly new to Sahi, but my company has been using it for some time now. I looked at the scripts that have been written, and I see a lot of "_wait()" statements. I asked why these were there, and I was told that they wait for the page to render.
Now, I looked at Sahi documentation and it said that you don't need to wait for page to load or even ajax calls. So i used the sahi browser client, loaded one of the script files (from which i had removed all "_wait" statements) and used Playback. The script ran fine, and a lot faster (obviously).
But, in our build environment, if i remove the "_wait" statements, the tests fail. The difference i saw was that in our build environment (which is on Hudson) we use the Ant sahi task to execute the script. When the "_wait" statement is removed, it keeps failing as it cannot find certain elements on the page (which probably means the page has not loaded completely). The "_wait" solves this, by waiting for the page to load completely.
What is the difference between the 2 methods, playback vs ant? And is there any solution to this?
Thanks.