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.
Conditional wait for popwindow content..
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
_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
please replace the wait statement with the following code.
This should make the code work for you.
If the problem still persists, please let me know.
Regards.