Skip to content
Keep your Selenium WebDrivers updated automatically
Branch: master
Clone or download
Latest commit a164075 Mar 19, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib #latest_version now returns latest binary version corresponding to th… Mar 19, 2019
spec #latest_version now returns latest binary version corresponding to th… Mar 19, 2019
LICENSE.txt implement chromedriver on mac Aug 15, 2017
Rakefile implement chromedriver on mac Aug 15, 2017


Build status

Run Selenium tests more easily with automatic installation and updates for all supported webdrivers.


webdrivers downloads drivers and directs Selenium to use them.

Currently supported:

  • chromedriver
  • geckodriver
  • IEDriverServer
  • MicrosoftWebDriver

Drivers are stored in ~/.webdrivers directory


in your Gemfile:

gem "webdrivers", "~> 3.0"

in your project:

require 'webdrivers'

If there is a proxy between you and the Internet then you will need to configure the gem to use the proxy. You can do this by calling the configure method.

Webdrivers.configure do |config|
  config.proxy_addr = ''
  config.proxy_port = '8080'
  config.proxy_user = 'username'
  config.proxy_pass = 'password'

If you are getting an error like this (especially common on Windows)
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed

add the following to your code:


Note when using Microsoft Edge:

After updating Microsoft Edge on Windows 10, you will need to delete the existing binary (%USERPROFILE%/.webdrivers/MicrosoftWebDriver.exe) to to be able to download the latest version through this gem.

This is because MicrosoftWebDriver.exe is not backwards compatible and it does not have an argument to retrieve the current version. We work around this limitation by querying the current Edge version from the registry and fetching the corresponding binary IF a file does not already exist. If a file does exist, the gem assumes it is the expected version and skips the download process.

If you continue with the outdated binary, Selenium will throw an error: unable to connect to MicrosoftWebDriver localhost:17556.


The gem is available as open source under the terms of the MIT License, see LICENSE.txt for full details and copyright.


Bug reports and pull requests are welcome on GitHub.


Copyright (c) 2017 Titus Fortner See LICENSE for details

You can’t perform that action at this time.