From: Joel Pearson Date: 2012-11-29T06:01:10+09:00 Subject: Re: Few unclosed browser Maybe this example will demonstrate my point: require 'watir-webdriver' br = Watir::Browser.new br = Watir::Browser.new br.close ________________ require 'watir-webdriver' br.close rescue nil br = Watir::Browser.new br.close rescue nil br = Watir::Browser.new br.close ________________ If your browser is disconnected from the local variable at any point, you'll lose the ability to close it without resorting to the task manager. That might happen here: execute(br) You could avoid this by using a global or instance variable for the browser rather than handing it to a method like that. The first example above is obviously a deliberate failure, but something akin to that might be happening somewhere in your code. -- Posted via http://www.ruby-forum.com/.