Skip to content
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

cannot load such file -- capybara-webkit (LoadError) #12

Open
autumn-hoerr opened this issue Oct 22, 2012 · 4 comments
Open

cannot load such file -- capybara-webkit (LoadError) #12

autumn-hoerr opened this issue Oct 22, 2012 · 4 comments

Comments

@autumn-hoerr
Copy link

Hey Ted,

This looks great. I got the following error when I was trying to get it setup:

cannot load such file -- capybara-webkit (LoadError)

Once I manually added capybara-webkit to my Gemfile everything worked okay. I see it's marked as a dependency in the gemspec, but it didn't seem to take in my case.

-d

@autumn-hoerr
Copy link
Author

Nevermind, reading all of the documentation is probably a good idea. You might want to make it clearer on http://intridea.github.com/green_onion/ that if you want to use capybara-webkit you do have to manually include it as you mention on https://github.com/intridea/green_onion

@tomeara
Copy link

tomeara commented Oct 22, 2012

Hey Dan!

Yeah, at one point before flexible browser configuration, capybara-webkit was a dependency, but now you can use any of the drivers specified (as well as creating your own). I think I may need to make this more clear, so I'm going to reopen this issue. I've kept Capybara as a dependency, but someone could easily use WATIR if they wanted to as well.

Let me know what you think about the gem, and how it works for you!

@tomeara tomeara reopened this Oct 22, 2012
@phillipoertel
Copy link

Hi, awesome tool, thank you very much for creating this!

I just installed the latest gem version (0.1.4) and it still required capybara-webkit. I read the latest source on github and saw that poltergeist is now also supported. Would it be possible to release an updated gem with that very useful change? Once you're at it, I'd suggest making poltergeist the default driver since PhantomJS is 1000 times easier to install than Webkit/QT and works just as well.

I'm also a little confused that you have different drivers at all. Since you're going through Capybara, shouldn't that abstract the driver for you, and green onion just use whatever driver is configured for Capybara?

@tomeara
Copy link

tomeara commented Dec 25, 2012

Thanks for the input! That might be a good idea about using poltergeist as the default. Along with the easy configuration, it is a bit faster in the benchmarks as well. I'll look more into it after the holiday. I'll also accept a pull request for that change to the defaults. ;) For now, you'll have to install the poltergeist gem manually, if you decide to use it.

The drivers are fully configurable, just in case someone wants to use WATIR or another browser automation tool instead of Capybara.

Please let me know how you might be using GreenOnion, and feel free to add more suggestions to the issues.

From my phone. Please forgive any typos.

On Dec 25, 2012, at 10:32 AM, Phillip Oertel [email protected] wrote:

Hi, awesome tool, thank you very much for creating this!

I just installed the latest gem version (0.1.4) and it still required webkit-capybara. I read the latest source on github and saw that poltergeist is now also supported. Would it be possible to release an updated gem with that very useful change? Once you're at it, I'd suggest making poltergeist the default driver since PhantomJS is 1000 times much easier to install than Webkit/QT and works just as well.

I'm also a little confused that you have different drivers at all. Since you're going through Capybara, shouldn't that abstract the driver for you, and green onion just use whatever driver is configured for Capybara?


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants