chromedriver-helper saved my life

Twice while building my projects, I couldn’t figure out why selenium didn’t open a new window when my Capybara test ran.

The first time it took hours. This time it took less than 30 min.

This gem saved my life and it’s how , in combination with the capybara and selenium gems, I was able to run the tests.gem 'chromedriver-helper', '~> 1.0


Here's my entire gem file:

source 'https://rubygems.org'

gem 'rails', '>= 5.1.0'
gem 'activesupport', '>= 5.1.5'
gem 'sqlite3', '~> 1.3.13'
gem 'puma', '3.7'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'therubyracer', platforms: :ruby
gem 'jquery-rails', '~> 4.3.1'
gem 'turbolinks', '5'
gem 'jbuilder', '~> 2.5'
gem 'rails-controller-testing', '~> 0.0.3'

group :development, :test do
gem 'byebug', platform: :mri
gem 'rspec-rails', '~> 3.7.2'
gem 'capybara', '~> 2.18'
gem 'selenium-webdriver', '~> 3.11'
gem 'chromedriver-helper', '~> 1.0'
end

group :development do
gem 'web-console', '>= 3.3.0'
gem 'listen', '3.0.5'
gem 'spring', '1.7.2'
gem 'spring-watcher-listen', '2.0.0'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s