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.
Wait for page load during recording
Hi
I have a requirement, where in there are lot of ajax calls in iframes when the page is loaded. As I understand, sahi injects javascript into pages only when the page is loaded. In this case I do not know if all the frames are loaded. Hence when I start typing, it is at times does not capture. This also is random and I cannot know when to start my recording
Is there any way we know if the page is loaded and we can start typing
Sanket
I have a requirement, where in there are lot of ajax calls in iframes when the page is loaded. As I understand, sahi injects javascript into pages only when the page is loaded. In this case I do not know if all the frames are loaded. Hence when I start typing, it is at times does not capture. This also is random and I cannot know when to start my recording
Is there any way we know if the page is loaded and we can start typing
Sanket
Best Answer
-
Hi sanket,
In SahiOS,
_sahi.areWindowsLoaded() is the API that you are looking for.
It returns a boolean value based on whether the page has completed loading or not.
Regards.