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

selenium_grid (6) Versions 2.0.0

Installs/Configures Selenium-Grid

Policyfile
Berkshelf
Knife
cookbook 'selenium_grid', '~> 2.0.0', :supermarket
cookbook 'selenium_grid', '~> 2.0.0'
knife supermarket install selenium_grid
knife supermarket download selenium_grid
README
Dependencies
Changelog
Quality 33%

Selenium-Grid Cookbook

Cookbook Version
linux
win

Setup a selenium grid in minutes. Create selenium hub, then add selenium nodes on Linux, Mac OS X and/or Windows
platforms. Set max instances greater than zero to install and/or configure Browsers and JavaScript engines. Browsers
and JavaScript engines will be ignored on operating systems that are not compatible.

Supported Browser and JavaScript engines:

  • Chrome
  • Firefox
  • HtmlUnit
  • Internet Explorer

Requirements

  • Java (not installed by this cookbook)
  • Chef 12.14+

Platforms

  • CentOS, RedHat
  • Debian, Ubuntu
  • Windows

Recipes

hub

Installs and configures a Selenium Hub as a service. See selenium
hub
recipe attributes for more information about configuring the hub.

node

Installs and configures a Selenium Node as service on Linux and a GUI service on Windows. See selenium
node recipe attributes for more information about configuring
the node. The following attributes are in addition to the node attributes. See associated browsers and drivers cookbook
attributes (if any) for more information about configuring them as well.

Attributes

  • node['selenium_grid']['chrome']['max_instances'] - Installs Chrome and ChromeDriver, if > 0. Default 0.
  • node['selenium_grid']['chrome']['version'] - Version of browser installed, if nil. Default nil.
  • node['selenium_grid']['firefox']['max_instances'] - Installs MozillaFirefox, if > 0. Default 0.
  • node['selenium_grid']['firefox']['version'] - Version of browser installed, if nil. Default nil.
  • node['selenium_grid']['htmlunit']['max_instances'] - Activates HtmlUnit, if > 0. Default 0.
  • node['selenium_grid']['htmlunit']['version'] - Default nil.
  • node['selenium_grid']['ie']['max_instances'] - Installs IEDriver and configures IE, if > 0. Only one instance of IE is recommended. Windows only. Default 0.
  • node['selenium_grid']['ie']['version'] - Version of browser installed, if nil. Default nil.
Account
  • node['selenium_grid']['username'] - Windows only. Default nil.
  • node['selenium_grid']['password'] - Windows only. Default nil.
  • node['selenium_grid']['domain'] - Windows only. Default nil.
Display
  • node['selenium_grid']['display']['width'] - Linux and Windows only. Default 1024.
  • node['selenium_grid']['display']['height'] - Linux and Window only. Default 768.
  • node['selenium_grid']['display']['depth'] - Linux only. Default 24.
  • node['selenium_grid']['display']['windows'] - Windows only. Default true.

Examples

Role to create Selenium Node with Chrome and Firefox capabilities

name "selenium_node"
description "Install Selenium Node with Chrome and Firefox capabilities"
default_attributes(
  "selenium_grid": {
    "chrome": {
      "max_instances": 5
    },
    "firefox": {
      "max_instances": 5
    } 
  }
)
run_list(
  "recipe[selenium_grid::node]"
)

Selenium Node with IE capability and custom version

v = ie_version.split('.')
major_version = v[0]
minor_version = v[1]

node.set['selenium_grid']['ie']['max_instances'] = 1
node.set['selenium_grid']['ie']['version'] = "#{major_version}.#{minor_version}"

include_recipe 'selenium_grid::node'

Getting Help

Contributing

Please refer to CONTRIBUTING.

License

MIT - see the accompanying LICENSE file for details.

Dependent cookbooks

selenium >= 0.0.0
xvfb >= 0.0.0
mozilla_firefox >= 0.0.0
geckodriver >= 0.0.0
chrome >= 0.0.0
chromedriver >= 0.0.0
iedriver >= 0.0.0
windows_screenresolution >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Changelog

2.0.0

  • Drop support for Chef 11
  • Drop support for Opera
  • Drop support for Mac OS X
  • Drop support for PhantomJS

1.2.2

  • Support Firefox on Debian platform

1.2.1

  • Replace firefox with mozilla_firefox cookbook

1.2.0

  • Support Opera

1.1.0

  • Support PhantomJS

1.0.0

  • 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 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
            

2.0.0 passed this metric

No Binaries 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 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