From: Raj pal Date: 2013-03-18T22:30:01+09:00 Subject: Re: question on watir hi Joel Pearson, You told me to refer the another discussion for popup, I used your code here, $browser.windows.each {|w| w.close rescue nil} $browser.close rescue nil But it is not closing the window as you told there. My problem is, when i pressing the next button the pop up is opening in a new window.I used above code of yours, but it's not working. what should I do to handle that pop up? RAJ -- Posted via http://www.ruby-forum.com/.