Capybara-webkit on Linux, getting errors (newbie)

329 views
Skip to first unread message

anandvc

unread,
Apr 30, 2013, 12:47:15 AM4/30/13
to capybar...@googlegroups.com
I am trying to get started with a new app that uses capybara-webkit on a linux machine, but I keep running into issues that may be because of my own lack of understanding of how capybara-webkit is supposed to be used. I'd appreciate your help in figuring out why I am getting this "NoResponse" error followed by "Broken Pipe" errors.

Here's what I have:

(Linux version check)
-bash-4.1# uname -a
Linux app02 2.6.32-042stab061.2 #1 SMP Fri Aug 24 09:07:21 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux

(Qt version check)
-bash-4.1# qmake -v
QMake version 2.01a
Using Qt version 4.8.4 in /usr/local/Trolltech/Qt-4.8.4/lib

(clean installation)
-bash-4.1# gem install capybara --version='2.0.3'
Fetching: capybara-2.0.3.gem (100%)
Successfully installed capybara-2.0.3
1 gem installed
Installing ri documentation for capybara-2.0.3...
Installing RDoc documentation for capybara-2.0.3...
-bash-4.1# gem install capybara-webkit
Fetching: capybara-webkit-0.14.2.gem (100%)
Building native extensions.  This could take a while...
Successfully installed capybara-webkit-0.14.2
1 gem installed
Installing ri documentation for capybara-webkit-0.14.2...
Installing RDoc documentation for capybara-webkit-0.14.2...

(Trying it in irb and failing)
-bash-4.1# irb
irb(main):001:0> require 'capybara'
=> true
irb(main):002:0> require 'capybara-webkit'
=> true
irb(main):003:0> session = Capybara::Session.new(:webkit_debug)
=> #<Capybara::Session>
irb(main):004:0> session.visit("http://www.google.com")
Finished "EnableLogging" with response "Success()"
Wrote response true ""
Received "Visit"
Started "Visit"
Load started
"Visit" started page load
Started request to "http://www.google.com/"
Finished "Visit" with response "Success()"
Capybara::Webkit::NoResponseError: No response received from the server.
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.14.2/lib/capybara/webkit/browser.rb:199:in `check'
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.14.2/lib/capybara/webkit/browser.rb:142:in `command'
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.14.2/lib/capybara/webkit/browser.rb:18:in `visit'
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.14.2/lib/capybara/webkit/driver.rb:29:in `visit'
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-2.0.3/lib/capybara/session.rb:183:in `visit'
        from (irb):4
        from /usr/local/rbenv/versions/1.9.3-p125/bin/irb:12:in `<main>'
irb(main):005:0>
irb(main):005:0> session.visit("http://www.google.com")
Errno::EPIPE: Broken pipe
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.14.2/lib/capybara/webkit/connection.rb:21:in `write'
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.14.2/lib/capybara/webkit/connection.rb:21:in `puts'
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.14.2/lib/capybara/webkit/connection.rb:21:in `puts'
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.14.2/lib/capybara/webkit/browser.rb:136:in `command'
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.14.2/lib/capybara/webkit/browser.rb:18:in `visit'
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-webkit-0.14.2/lib/capybara/webkit/driver.rb:29:in `visit'
        from /usr/local/rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/capybara-2.0.3/lib/capybara/session.rb:183:in `visit'
        from (irb):5
        from /usr/local/rbenv/versions/1.9.3-p125/bin/irb:12:in `<main>'
irb(main):006:0>

---------
Previously, I have tried a few other combinations of Qt libraries, capybara and capybara-webkit gem versions, but I have faced similar errors. Can someone tell me how I can load a simple web page using capybara-webkit? I would also appreciate knowing what is the ideal combination of versions of qt, capybara and capybara-webkit that should be used on Linux. Thank you!

Shahbaz I khan

unread,
May 12, 2013, 1:47:33 AM5/12/13
to capybar...@googlegroups.com
Try using the master branch. Please read 'oelmekki' 's comment that resolves my issue of 'No Reasponse'

Anand Chhatpar

unread,
May 13, 2013, 1:35:24 AM5/13/13
to capybar...@googlegroups.com
Thank you, Shahbaz!

Regards,

- Anand
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "capybara-webkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/capybara-webkit/D51huFdwClg/unsubscribe?hl=en.
> To unsubscribe from this group and all its topics, send an email to
> capybara-webk...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages