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.
Popup window title
b_nagapadmini
Members
Hi,
How to get the title o the popup windoe?
I tried using : _alert(window.document.title);
_alert(_title());
Both are giving the main window title instead of popup window title.
How to get the title o the popup windoe?
I tried using : _alert(window.document.title);
_alert(_title());
Both are giving the main window title instead of popup window title.
Answers
You can then use _selectWindow("/ name.*/") with a regular expression.
Even I tried _popup(/.*/);
_popup(/Modal.*/);
Only if i'm giving the proper window title or the popup id its working fine.Else its failing,but issue is both are dynamic.