Joel Pearson wrote in post #1083530:
> I think your best bet is probably to loop through the active windows and
> close each, something like this:
>
> browser.windows.each {|w| w.close rescue nil}
> browser.close rescue nil #The previous line should do this, but it's
> best to be sure
>
> If you run that at the end it should close all webdriver windows.

What is this: browser??
I am sure its not the current browser? then what is it?

-- 
Posted via http://www.ruby-forum.com/.