Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

ghostdriver (3) Versions 1.0.1

Selenium WebDriver for PhantomJS

Policyfile
Berkshelf
Knife
cookbook 'ghostdriver', '= 1.0.1', :supermarket
cookbook 'ghostdriver', '= 1.0.1'
knife supermarket install ghostdriver
knife supermarket download ghostdriver
README
Dependencies
Changelog
Quality 0%

GhostDriver Cookbook

Cookbook Version
Build Status
GitHub Issues

This cookbook installs and configures PhantomJS GhostDriver (https://github.com/detro/ghostdriver) as a
standalone server or selenium-grid node.

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 to nil.

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

Contributing

Please refer to CONTRIBUTING.

License

MIT - see the accompanying LICENSE file for details.

Changelog

1.0.1

  • Update metadata description

1.0.0

  • Initial release

Foodcritic Metric
            

1.0.1 failed this metric

FC052: Metadata uses the unimplemented "suggests" keyword: /tmp/cook/fdbf8ec30be5c2505d2c1b58/ghostdriver/metadata.rb:16
FC052: Metadata uses the unimplemented "suggests" keyword: /tmp/cook/fdbf8ec30be5c2505d2c1b58/ghostdriver/metadata.rb:17