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.

Java Driver: Check window/popup is closed or not?

How can I check whether a window/popup is closed or not with the Java driver?
I have a "save and exit" button which commits the input and closes the popup window. I want to check whether the popup is actually closed or not before I continue.

Thank you,
Regards, JSR

Comments

  • SumitraSumitra Members
    Hi Jack's_Smirking_Revenge,

    Kindly refer this URL:

    http://sahi.co.in/forums/viewtopic.php?id=2440

    Let me know if this solves your issue.

    Regards
    Sumitra
  • edited July 2011
    I've already checked the post with number 2440. However, I am not that good at javascript and I could not exactly get the usage of browser.fetch method. With Java driver I am referring to the popup window as browser.popup("editWindow"). So, what will I write instead of windowB in browser.fetch("windowB && windowB.closed != true")? How can I find the (javascript variable) handler of that popup window?
Sign In or Register to comment.