> @driver.windows.last.use do
> @driver.window.close
> end

With your above code,if three pop-up windows generated for any actions 
from the main window. Then how many will be closed by the above loop?


Again you are really awesome! Really appreciated,lot's to learn from 
you.


Thanks

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