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.
_navigateTo time out issue
Hi Team,
When I use the API _navigateTo() to open a URL, it fails sometime with timeout issue and display a blank page, but we don't know when it will fail, can we capture the fail status and refresh the page?
I have tried to use the "try/catch" , but it didn't work, then I user Javascript document.readyState=="complete" to wait for page load successfully, it still not work, when the page load timeout, the case will fail, but I don't want the case fail, I just need to refresh the page, do you get some way?
When I use the API _navigateTo() to open a URL, it fails sometime with timeout issue and display a blank page, but we don't know when it will fail, can we capture the fail status and refresh the page?
I have tried to use the "try/catch" , but it didn't work, then I user Javascript document.readyState=="complete" to wait for page load successfully, it still not work, when the page load timeout, the case will fail, but I don't want the case fail, I just need to refresh the page, do you get some way?
Comments
You can use _wait(); //time in milliseconds.
For more details refer:
http://sahi.co.in/w/_wait
Also, if you want to refersh the page then you can use: _call(top.location.reload());
Let me know if this solves your issue.
Regards
Sumitra