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.
Running Sahi Script take more time to check the Assertion mentioned
Hi Friends,
In my application I automated a scenario where in from the current displayed page clicking on a Button will Popup a Window. In the popup window selecting “SUBMIT” button user will be taken to a Parent Page. The Code Snippet is as below
1. _click(_span("Save Complete"));
Button
2. _assertExists(_emphasis("Evaluation Save"));
PopUp Window
3. _click(_button("Submit"));
4. _assertExists(_cell("ParentPage"));
Parent Page
When I run the script for the above, application and Script will run in Sync till Point3. But problem with the Script is at Point 3 and Point 4.
Though in the application the Parent Page has refreshed after the pop window submitted , the Sahi Script takes time of around 5min to Check the Assertion mentioned at Point 4. Thus Script is TAKING MORE TIME.
Anyone please suggest a solution for this?
Thanks,
Nanda.
In my application I automated a scenario where in from the current displayed page clicking on a Button will Popup a Window. In the popup window selecting “SUBMIT” button user will be taken to a Parent Page. The Code Snippet is as below
1. _click(_span("Save Complete"));
Button
2. _assertExists(_emphasis("Evaluation Save"));
PopUp Window
3. _click(_button("Submit"));
4. _assertExists(_cell("ParentPage"));
Parent Page
When I run the script for the above, application and Script will run in Sync till Point3. But problem with the Script is at Point 3 and Point 4.
Though in the application the Parent Page has refreshed after the pop window submitted , the Sahi Script takes time of around 5min to Check the Assertion mentioned at Point 4. Thus Script is TAKING MORE TIME.
Anyone please suggest a solution for this?
Thanks,
Nanda.
Comments
It looks like Sahi may be trying to execute the step on the wrong window. Could you please specify the error message that is visible in the logs?
Regards,
Narayan
I am able to run the script successfully with no errors But below is the Copy-Pasted Lines from Log File which could give the Time difference from Step 3 to Step 4
_click(_button("Submit")); at Sep 29, 2010 10:19:12 AM
_assertExists(_cell("ParentPage")); at Sep 29, 2010 10:21:32 AM