Run Selenium tests more easily with automatic installation and updates for all supported webdrivers.
webdrivers downloads drivers and directs Selenium to use them.
Drivers are stored in
in your Gemfile:
gem "webdrivers", "~> 3.0"
in your project:
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
Webdrivers.configure do |config| config.proxy_addr = 'myproxy_address.com' config.proxy_port = '8080' config.proxy_user = 'username' config.proxy_pass = 'password' end
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 (
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