New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no driver called :webkit was found #155

Closed
sowenjub opened this Issue Sep 10, 2011 · 10 comments

Comments

Projects
None yet
8 participants
@sowenjub
Copy link

sowenjub commented Sep 10, 2011

Hello,

I can't get it to work, although I thought I did everything by the book (or the README).
Everytime I get an error "no driver called :webkit was found, available drivers: :rack_test, :selenium (Capybara::DriverNotFoundError)"

I'm using Lion, and "brew install qt --build-from-source" worked successfully.

gem "capybara-webkit" is part of my Gemfile

and I have "Capybara.javascript_driver = :webkit" in features/support/env.rb where I already set other options for Capybara (like save_and_open_page_path).

I've been trying with several bundle mix, always with rails (3.0.7), cucumber (0.10.3) and cucumber-rails (0.5.1)

Is there anything I'm missing ?

Thanks

@yfeldblum

This comment has been minimized.

Copy link

yfeldblum commented Sep 10, 2011

Do you have cucumber-rails in your Gemfile?

Have you run rails generate cucumber:install?

Do you have require "cucumber/rails" at the top of your features/support/env.rb (generated by cucumber:install)?

@sowenjub

This comment has been minimized.

Copy link

sowenjub commented Sep 11, 2011

Yes to all of that.

My features/support/env.rb starts with:

require 'cucumber/rails'
require 'capybara'
require 'capybara/rails'
require 'capybara/cucumber'
require 'capybara/session'
require 'capybara/rspec'
require 'email_spec'
require 'email_spec/cucumber'

Capybara.default_selector = :css
Capybara.save_and_open_page_path = File.join(Rails.root,'../capybara_tmp')

@ahamid

This comment has been minimized.

Copy link

ahamid commented Sep 24, 2011

i have the same problem using capybara-webkit on Fedora x86-64. i am not using rails, just cucumber.

@halogenandtoast

This comment has been minimized.

Copy link
Contributor

halogenandtoast commented Sep 27, 2011

If you are not using rails, have you tried explicitly requiring the gem in the features file before you set the Capybara.javascript_driver? `require 'capybara-webkit'

@zspencer

This comment has been minimized.

Copy link

zspencer commented Oct 4, 2011

I'm running Rails 3.0.something and I wound up doing this in my accetpance test helpers:

begin
require 'capybara-webkit'
Capybara.javascript_driver = :webkit if Capybara.drivers.has_key? :webkit
rescue LoadError
end

@aledalgrande

This comment has been minimized.

Copy link

aledalgrande commented Dec 12, 2011

Adding this in env.rb works for me:

require 'capybara-webkit'

Versions used:

capybara (1.1.2)
capybara-webkit (0.7.2)
@halogenandtoast

This comment has been minimized.

Copy link
Contributor

halogenandtoast commented Jan 13, 2012

I can't recreate this issue. I'm going to close this. If someone wants to provide a small application that can produce this issue feel free to reopen.

@dguzzo

This comment has been minimized.

Copy link

dguzzo commented Jan 24, 2012

aledalgrande's solution of adding

require 'capybara-webkit'

to env.rb worked for me as well. Should've been fairly obvious, but I'm still a newb in some respects :)

@sowenjub

This comment has been minimized.

Copy link

sowenjub commented Jan 29, 2012

Just saw those replies, and the require solved it for me as well. Thanks all!

@johncant

This comment has been minimized.

Copy link

johncant commented Sep 3, 2012

Cheers, fixed it for me as well. Weirdly, though,

bundle exec cucumber
worked, but
rake cucumber
failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment