cookbook 'ghostdriver', '~> 1.1.0'
ghostdriver (3) Versions 1.1.0 Follow2
Selenium WebDriver for PhantomJS
cookbook 'ghostdriver', '~> 1.1.0', :supermarket
knife supermarket install ghostdriver
knife supermarket download ghostdriver
GhostDriver Cookbook
This cookbook installs and configures PhantomJS GhostDriver (https://github.com/detro/ghostdriver) as a
standalone server or selenium-grid node. PhantomJS is set to v1.9.8 in this cookbook.
Requirements
- Chef 11.6.0 (includes a built-in registry_key resource) or higher
Platforms
- CentOS, RedHat
- Ubuntu
- Windows
Cookbook Dependencies
- phantomjs
These cookbooks are referenced with suggests, so be sure to depend on cookbooks that apply:
- windows
- nssm - Required for Windows services only
Examples
See ghostdriver_test
cookbook for working examples.
Install ghostdriver as a standalone server
ghostdriver 'ghostdriver_standalone' do action :install end
Install ghostdriver as a selenium-grid node
ghostdriver 'ghostdriver_seleniumnode' do webdriverSeleniumGridHub "http://#{node['ipaddress']}:4444/grid/register/" action :install end
Attributes
-
servicename
- Service name. Defaults to the name of the resource block. -
webdriver
- Webdriver ip:port. Defaults to#{node['ipaddress']}:8910
. -
webdriverSeleniumGridHub
- URL of selenium hub. Defaults tonil
.
ChefSpec Matchers
This cookbook includes custom ChefSpec matchers you can use to test
your own cookbooks.
Example Matcher Usage
expect(chef_run).to install_ghostdriver('ghostdriver_seleniumnode').with( webdriverSeleniumGridHub: "http://#{node['ipaddress']}:4444/grid/register/" )
Cookbook Matchers
- install_ghostdriver(resource_name)
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.
`
Changelog
1.1.0 2016-09-26
- Use phantomjs2
- Use phantomjs v1.9.8
1.0.1 2015-09-15
- Update metadata description
1.0.0 2015-07-28
- Initial release
Collaborator Number Metric
1.1.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
1.1.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 CONTRIBUTING.md file
Foodcritic Metric
1.1.0 failed this metric
FC066: Ensure chef_version is set in metadata: ghostdriver/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.0 passed this metric
Testing File Metric
1.1.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
1.1.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 include a tag that matches this cookbook version number
1.1.0 failed this metric
1.1.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 CONTRIBUTING.md file
Foodcritic Metric
1.1.0 failed this metric
FC066: Ensure chef_version is set in metadata: ghostdriver/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
1.1.0 passed this metric
Testing File Metric
1.1.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
1.1.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 include a tag that matches this cookbook version number
1.1.0 failed this metric
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
1.1.0 passed this metric
Testing File Metric
1.1.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
1.1.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 include a tag that matches this cookbook version number
1.1.0 failed this metric
1.1.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 include a tag that matches this cookbook version number