Determining Browser

You may want to determine which browser you are running in your Watir code.

It’s simple to do:

require 'watir'
b = Watir::Browser.new :chrome
browser.driver.browser #=> :chrome