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.

Conditional wait for popwindow content..

rajkumarrajkumar Members
edited April 2013 in Sahi - Open Source
I would like make to wait the script for heading in popup window.
_wait(5000, _popup("Hello")._exists(_heading1(" Hai welcome")));

is giving the following error:

ERROR [0 ms] [12:48:11.982]
TypeError: Cannot call method "_exists" of undefined

Answers

  • Hi RajKumar,
    please replace the wait statement with the following code.
    _selectWindow('Hello');
    _wait(5000,_exists(_heading1(" Hai welcome")));
    

    This should make the code work for you.
    If the problem still persists, please let me know.

    Regards.
Sign In or Register to comment.