18 January 2026:


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.

Waiting for popup to disappear - in Sahi Script

johnclarkejohnclarke Members
edited November -1 in Sahi - Open Source
I have a process that creates a "Please Wait" popup box. Basically I want the test to wait until the popup disappears and then when the parent window has completed loading it needs to write the HTML for the window to a file.

How can I do this using Sahi script?

I would appreciate all advice offered.

John

Comments

  • I have tried this :

    while (_assertExists(_popup("Please Wait")))
    {
    _wait(1000);
    }

    but the script gets into an infinite loop - even after the wait dialog has gone.

    One of the key problems is that I don't know how long the wait dialog will stay..it can be 10 seconds, 20 seconds, 10 minutes or in some extreme cases 40 mins.

    I would appreciate all advice offered regarding this matter.

    John
Sign In or Register to comment.