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 solve Timing Issue
OS : Windows 7
Browser : Firefox 7.0.1 & lower versions
Build: 2010-11-03
I have scripts with many click links which takes different timing to load on different run.
Eg: if the click event 1 takes 20 seconds to load at the first time, then it may take 30 seconds at the second time... so i cannot put a _wait(30000) as an optimal time.. because it may take 40 seconds at the next run...depends on the performance speed of the site.
Is there any statement where i can put in the begening of the script which the script controller understands to take the appropriate time between each events... so that i don't need to put the _wait statement... and to wait the maximum time to run the scripts.
This is been a serious issue for me since i want to run many scripts in the minimum time.
PLEASE ADVISE ME what to do.. or how to solve this issue.
thanks in advance,
George
Browser : Firefox 7.0.1 & lower versions
Build: 2010-11-03
I have scripts with many click links which takes different timing to load on different run.
Eg: if the click event 1 takes 20 seconds to load at the first time, then it may take 30 seconds at the second time... so i cannot put a _wait(30000) as an optimal time.. because it may take 40 seconds at the next run...depends on the performance speed of the site.
Is there any statement where i can put in the begening of the script which the script controller understands to take the appropriate time between each events... so that i don't need to put the _wait statement... and to wait the maximum time to run the scripts.
This is been a serious issue for me since i want to run many scripts in the minimum time.
PLEASE ADVISE ME what to do.. or how to solve this issue.
thanks in advance,
George
This discussion has been closed.
Comments
If you are using _wait(30000);// Incase the link is loaded before 30 secs then unnecessarily you will have to wait for remaining sec.
You can use: _wait(maxTime, condition);
In your case it would be : _wait(200000,_click(_link("First link Identifier")));
_wait(300000,_click(_link("Second link Identifier")));
Regards
Sumitra
George