Need help with watir_meta?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.

About the developer

413 Stars 44 Forks Other 58 Commits 4 Opened issues


Former watir.gem that referenced both watir-webdriver and watir-classic

Services available


Need anything else?

Contributors list


This code is no longer being used, and this repository exists only as an archive.


Watir, pronounced water, is an open-source (BSD) family of Ruby libraries for automating web browsers. It supports your app no matter what technology it is developed in. They support Internet Explorer on Windows, Firefox and Chrome on Windows, Mac and Linux.


This is the meta-gem for installing all necessary dependencies and having a convenient way to switch between different Watir drivers.

Currently supported drivers are: - watir-classic - watir-webdriver

Visit Watir website or refer to each gem's own README and documentation for better understanding of how to use these libraries.

Watir Related Libraries





Add it into your Gemfile:

gem "watir", "~>4.0"

Or install it manually with the following command:

gem install watir

Then in your test file:

require "watir"
browser =

The command above will use watir-classic with Internet Explorer on Windows and watir-webdriver with Firefox on Linux/OS X by default.

Switching Between Drivers

There are multiple ways to specify a different driver.

By specifying different browser via

: ````ruby
require "watir"

will use watir-webdriver with Chrome

browser = :chrome ````

By specifying driver manually via

: ````ruby
require "watir"

will use watir-webdriver with Internet Explorer

Watir.driver = :webdriver browser = :ie ````

Or by using an environment variable

: ````ruby require "watir"

will use watir-classic

ENV["WATIR_DRIVER"] = "classic" browser = ````


Currently it is possible to use only one driver per Ruby process. All the methods to switch between drivers won't have any effect after you've opened your first browser window.


See LICENSE for details.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.