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.

Popup window title

b_nagapadminib_nagapadmini Members
edited February 2014 in Sahi Pro
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.

Answers

  • If its a pop-window, sahi controller only will give you the name under prefix:,
    You can then use _selectWindow("/ name.*/") with a regular expression.
  • I tried using the above 1 its not working.
    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.
Sign In or Register to comment.