Repository is archived
No commit activity in last 3 years
No release in over 3 years
Monkeypatches selenium-webdriver 2.37.0 to pass --verbose to chromedriver so it works in Mavericks
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0

Runtime

 Project Readme

Selenium::Chrome::Mavericks

UPDATE: This gem is no longer necessary as of Chromedriver 2.6. Please use the regular selenium-webdriver gem.

I made this gem because selenium-webdriver, from capybara anyway, won't honor my passing of the argument "--verbose", which is the workaround to getting chromedriver working on Mavericks.

In addition, the latest chromedriver release (2.5) does not fix the bug that necessitated the --verbose workaround. I'm fed up and want to be able to run Cucumber on my Mavericks computer, so here's a gem that monkeypatches the selenium-webdriver 2.37.0

This gem depends on selenium-webdriver and is locked at that version -- as such you may replace that gem with this gem. This gem will never be updated unless, for some strange reason, things get worse... so consider it a temporary / throwaway.

Track the bug on selenium's bug tracker: https://code.google.com/p/chromedriver/issues/detail?id=599

Installation

Add this line to your application's Gemfile:

gem 'selenium-chrome-mavericks'

And then execute:

$ bundle

Or install it yourself as:

$ gem install selenium-chrome-mavericks

Usage

Somewhere before you begin using selenium-webdriver, add this code:

require 'selenium/chrome/mavericks'

For example, at the top of your env.rb, if using Cucumber.

It has now patched the correct initializer and will pass --verbose to the child process, which for some reason makes chromedriver work right on Mavericks...

Enjoy.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request