From: Joel Pearson Date: 2013-03-22T21:16:40+09:00 Subject: Re: question on watir Raj pal wrote in post #1102781: > all other windows are closed expect the one which > consist of pop up. > > it is not closing when the window is having a pop up. Then it's something to do with the way the popup is created. I'd guess that the popup doesn't have watir attached to it. If you don't have watir's control of the popup, then you have a few options. For IE you can use the COM object, or just use Watir to re-attach to it. For Firefox you can either target the window, using the various ways of dealing with a window regardless of what it contains; or you could use the process library to kill the underlying process once you've finished with the browser, thereby terminating all windows. These approaches would also work with IE, but they should be second choice to using its COM object. -- Posted via http://www.ruby-forum.com/.