Skip to content

dhoer/chef-operadriver

Repository files navigation

Selenium OperaDriver Cookbook

Cookbook Version Build Status

Installs OperaChromiumDriver (https://github.com/operasoftware/operachromiumdriver).

Requirements

  • Chef 11.16+
  • Chrome (this cookbook does not install Chrome)

Platforms

  • Ubuntu
  • Windows

Cookbooks

  • windows

Usage

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

Attributes

  • node['operadriver']['version'] - Version to download.
  • node['operadriver']['url'] - URL download prefix.
  • node['operadriver']['windows']['home'] - Home directory for windows. Default %SYSTEMDRIVE%\operadriver.
  • node['operadriver']['unix']['home'] - Home directory for both linux and macosx. Default /opt/operadriver.

Install selenium node with opera capability

include_recipe 'opera'
include_recipe 'operadriver'

node.set['selenium']['node']['capabilities'] = [
  {
    browserName: 'operablink',
    maxInstances: 1,
    version: opera_version,
    seleniumProtocol: 'WebDriver'
  }
]

include_recipe 'selenium::node'

Getting Help

Contributing

Please refer to CONTRIBUTING.

License

MIT - see the accompanying LICENSE file for details.