Determining which Browser

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

It’s simple to do:

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