Skip to content

dhoer/chef-safaridriver

Repository files navigation

Selenium SafariDriver Cookbook

Cookbook Version Build Status

Installs SafariDriver (https://github.com/SeleniumHQ/selenium/wiki/SafariDriver).

Requirements

  • Mac OS X 10.8+
  • Chef 11.16+

Platforms

  • Mac OS X

Cookbooks

  • safari
  • macosx_gui_login

Usage

Include cookbook in recipe or run list to install SafariDriver. Username and password are required to login to GUI.

Attributes

  • node['safaridriver']['username'] - Username to login as. Required.
  • node['safaridriver']['password'] - Password of username. Required.
  • node['safaridriver']['url'] - URL of SafariDriver to download.

Example

Install selenium node with safari capability

username = 'username'
password = 'password'

node.set['safaridriver']['username'] = username
node.set['safaridriver']['password'] = password

include_recipe 'safaridriver'

node.set['selenium']['node']['username'] = username
node.set['selenium']['node']['password'] = password
node.set['selenium']['node']['capabilities'] = [
  {
    browserName: 'safari',
    maxInstances: 1,
    version: safari_version,
    seleniumProtocol: 'WebDriver'
  }
]

include_recipe 'selenium::node'

Getting Help

Contributing

Please refer to CONTRIBUTING.

License

MIT - see the accompanying LICENSE file for details.