Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, windows and java based applications. Get your 30 day free trial.

Discuss your Sahi Pro usage patterns, best practices, problems and solutions. Help others solve their problems and seek help from the community when needed. If you need specific support on your application, please email support @ sahipro.com

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.