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.

Closing a pdf popup

agonagon Members
Hello, so I am trying to download a pdf which is opening within a popup window (for which I cant identify the title).

I'd like to close the popup window since my browser is crashing with all the popups.

any tips are highly appreciated.

Comments

  • RofzillaRofzilla Members
    edited August 2018
    Hope this helps

    var $x = document.title;
    _selectWindow ($x);
    _closeWindow;

    Or you can turn into a function

    function closeAnnoyingPopUp(){
    var $x = document.title;
    _selectWindow ($x);
    _closeWindow;}

    closeAnnoyingPopUp ();
  • or
    var $x = document.title;
    _popup($x).close();
Sign In or Register to comment.