Installs ChromeDriver (https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver).
- Chef 12.6+
- Chrome (this cookbook does not install Chrome)
- CentOS, RedHat, Fedora
- Debian, Ubuntu
- Mac OS X
- Windows
- windows
Include recipe in a run list or cookbook to install ChromeDriver.
node['chromedriver']['version']
- Version to download. DefaultLATEST_RELEASE
.node['chromedriver']['url']
- URL download prefix. Defaulthttps://chromedriver.storage.googleapis.com
.node['chromedriver']['windows']['home']
- Home directory for windows. Default%SYSTEMDRIVE%\chromedriver
.node['chromedriver']['unix']['home']
- Home directory for both linux and macosx. Default/opt/chromedriver
.
include_recipe 'chrome'
include_recipe 'chromedriver'
node.set['selenium']['node']['capabilities'] = [
{
browserName: 'chrome',
maxInstances: 1,
version: chrome_version,
seleniumProtocol: 'WebDriver'
}
]
include_recipe 'selenium::node'
override_attributes(
"chromedriver": {
"url": "https://s3.amazonaws.com/mybucket/chromedriver"
"version": "2.21"
}
)
This will download the ChromeDriver that best matches version and platform criteria e.g., Linux x64 platform will match https://s3.amazonaws.com/mybucket/chromedriver/2.21/chromedriver_linux64.zip. Note that ChromeDriver path must be the same as that found under http://chromedriver.storage.googleapis.com/index.html.
- Ask specific questions on Stack Overflow.
- Report bugs and discuss potential features in Github issues.
Please refer to CONTRIBUTING.
MIT - see the accompanying LICENSE file for details.