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.
Playback failing with "script did not start within 130 secs" error
Hi
I was trying out sahi on one of my applications. I was able to record a script but the playback fails with error "script did not start within 130 seconds" in log file. Here are the details of my application and platform:
Application UI code written using SmartGwt
Browser: firefox 3.6.3
OS: Windows Vista
Here is the script:
_click(_cell("Search[16]"));
_click(_div("Allow Cards"));
_click(_cell("Limits[1]"));
_assertExists(_cell("Add New Limit"));
_assert(_isVisible(_cell("Add New Limit")));
_assertEqual("Add New Limit", _getText(_cell("Add New Limit")));
_assertContainsText("Add New Limit", _cell("Add New Limit"));
Also want to mention that the application initial load takes time (its a good size UI), but it becomes much worse when loading thru sahi proxy. I guess it is due to the code injection that sahi does.
I was trying out sahi on one of my applications. I was able to record a script but the playback fails with error "script did not start within 130 seconds" in log file. Here are the details of my application and platform:
Application UI code written using SmartGwt
Browser: firefox 3.6.3
OS: Windows Vista
Here is the script:
_click(_cell("Search[16]"));
_click(_div("Allow Cards"));
_click(_cell("Limits[1]"));
_assertExists(_cell("Add New Limit"));
_assert(_isVisible(_cell("Add New Limit")));
_assertEqual("Add New Limit", _getText(_cell("Add New Limit")));
_assertContainsText("Add New Limit", _cell("Add New Limit"));
Also want to mention that the application initial load takes time (its a good size UI), but it becomes much worse when loading thru sahi proxy. I guess it is due to the code injection that sahi does.
Comments
I suspect that it has to do with some AJAX request which never completes (like a comet request). Could you try this:
Open sahi/userdata/config/userdata.properties and add
xhr.wait_ready_states = 1,2
Restart Sahi and please check again.
If that still does not work, try
xhr.wait_ready_states = 2,3
and
xhr.wait_ready_states = 2
Let us know what you find.
If the application is very slow, you could add/modify io.buffer_size in sahi.properties.
io.buffer_size=32768
Note that all modifications to userdata. properties will need a restart of the proxy.
We also have more optimizations coming in the next build, so if you want, I can send you a build to check if it improves performance.
Regards,
Narayan