Skip to content

dhoer/chef-geckodriver

Repository files navigation

Selenium GeckoDriver Cookbook

Cookbook Version linux osx win

Installs geckodriver (https://github.com/mozilla/geckodriver).

Requirements

  • Chef 12.6+
  • Mozilla Firefox (this cookbook does not install Mozilla Firefox)

Platforms

  • CentOS, RedHat, Fedora
  • Mac OS X
  • Ubuntu, Debian
  • Windows

Usage

Include recipe in a run list or cookbook to install geckodriver.

Attributes

  • node['geckodriver']['version'] - Version to download.
  • node['geckodriver']['url'] - URL download prefix.
  • node['geckodriver']['windows']['home'] - Home directory for windows.
  • node['geckodriver']['unix']['home'] - Home directory for both linux and macosx.

Install selenium node with firefox capability

include_recipe 'mozilla_firefox'
include_recipe 'geckodriver'

node.override['selenium']['node']['capabilities'] = [
  {
    browserName: 'firefox',
    maxInstances: 1,
    version: firefox_version,
    seleniumProtocol: 'WebDriver'
  }
]

include_recipe 'selenium::node'

Getting Help

Contributing

Please refer to CONTRIBUTING.

License

MIT - see the accompanying LICENSE file for details.