Starting a Session  

Opening a Browser

Once you’ve installed Watir, and your desired drivers, and have an open irb session, you can try out opening a browser with:

require 'watir'

By default Watir will open a Chrome Browser.

To open other browsers: :firefox :internet_explorer :edge :safari

To open a browser on a remote machine, specify the url: :firefox, url: "http://#{the_grid_url}:4444/wd/hub"

There are many settings that can be customized on each browsers:

Last Updated: August 10, 2018