cookbook 'chromedriver', '~> 2.0.0', :supermarket
chromedriver (7) Versions 2.0.0 Follow2
Selenium WebDriver for Chrome
cookbook 'chromedriver', '~> 2.0.0'
knife supermarket install chromedriver
knife supermarket download chromedriver
Selenium ChromeDriver Cookbook
Installs ChromeDriver (https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver).
Requirements
- Chef 12.6+
- Chrome (this cookbook does not install Chrome)
Platforms
- CentOS, RedHat, Fedora
- Debian, Ubuntu
- Mac OS X
- Windows
Cookbooks
- windows
Usage
Include recipe in a run list or cookbook to install ChromeDriver.
Attributes
-
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
.
Install selenium node with chrome capability
include_recipe 'chrome'
include_recipe 'chromedriver'
node.set['selenium']['node']['capabilities'] = [
{
browserName: 'chrome',
maxInstances: 1,
version: chrome_version,
seleniumProtocol: 'WebDriver'
}
]
include_recipe 'selenium::node'
Download ChromeDriver from alternative location
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.
Getting Help
- Ask specific questions on Stack Overflow.
- Report bugs and discuss potential features in Github issues.
Contributing
Please refer to CONTRIBUTING.
License
MIT - see the accompanying LICENSE file for details.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
Changelog
2.0.0 - 2016-10-01
- Drop support for Chef 11
- Add support for proxy
1.2.2 - 2016/08/16
- Fix #6 Updated chromedriver_powershell_version to access stdout property
1.2.1 - 2016/01/29
- Fix #3 Chef::Exceptions::InvalidRemoteFileURI
1.2.0 - 2015/11/30
- Default ChromeDriver version to LATEST_RELEASE
1.1.0 - 2015/10/15
- ChromeDriver release 2.20
1.0.0 - 2015/09/12
- Initial release
Collaborator Number Metric
2.0.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
2.0.0 passed this metric
Foodcritic Metric
2.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: chromedriver/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.0.0 passed this metric
Publish Metric
2.0.0 failed this metric
chromedriver is up for adoption
Supported Platforms Metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 passed this metric
2.0.0 failed this metric
2.0.0 passed this metric
Foodcritic Metric
2.0.0 failed this metric
FC066: Ensure chef_version is set in metadata: chromedriver/metadata.rb:1
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
2.0.0 passed this metric
Publish Metric
2.0.0 failed this metric
chromedriver is up for adoption
Supported Platforms Metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 passed this metric
2.0.0 failed this metric
Run with Foodcritic Version 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
2.0.0 passed this metric
Publish Metric
2.0.0 failed this metric
chromedriver is up for adoption
Supported Platforms Metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 passed this metric
2.0.0 failed this metric
2.0.0 passed this metric
Testing File Metric
2.0.0 failed this metric
Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag Metric
2.0.0 passed this metric
2.0.0 failed this metric
2.0.0 passed this metric