A Capybara driver for headless WebKit so you can test Javascript web apps.
Questions tagged [capybara-webkit]
470 questions
5
votes
1 answer
Silencing unnecessary capybara-webkit warnings
Any advice on silencing these capybara-webkit warnings?
2015-09-06 14:15:38.455 webkit_server[3700:6222738] Error loading
/Users/justin/Library/Internet Plug-Ins/Google Earth Web
Plug-in.plugin/Contents/MacOS/libnpgeplugin.dylib:
…

justingordon
- 12,553
- 12
- 72
- 116
5
votes
2 answers
Uncheck check_box only not working with rspec / capybara tests
I have a nested form that has 4 checkboxes. Currently, everything is working in browser, but I can't get the capybara tests to uncheck the checkbox and save.
Using Rails 4.2.2 and latest versions of capaybara-webkit and rspec
settings.html.erb
<%=…

LMo
- 1,429
- 2
- 15
- 32
5
votes
4 answers
RSpec and Capybara: How to get the horizontal and vertical position of an element
I have added visually hidden jump links to my website, that appear when they are focused (similar to e.g. GitHub, just press Tab once on the home page).
I want to test this behaviour with Capybara. I can't check for e.g. 'visibility: true/false',…

Joshua Muheim
- 12,617
- 9
- 76
- 152
5
votes
1 answer
Check hidden checkbox using Capybara
I've got a checkbox that I want to check. This button has a confirm alertassociated and some other stuff.
5
votes
0 answers
Capybara: webkit and selenium can't find url, racktest works
Multi domain app. Using POW server locally. Cucumber tests
In one of the steps i set app_host (subdomain belongs to account and fabricated each time):
def set_current_subdomain(subdomain)
Capybara.app_host =…

Elder
- 437
- 5
- 17
5
votes
1 answer
Why are my Javascript-dependent feature specs passing when not in Javascript mode?
I have non-Javascript specs and Javascript feature specs that use capybara/capybara-webkit.
I have some tests that I expected to fail when in non-Javascript mode, but they are passing. I've tried the functionality in my browser with Javascript…

John Bachir
- 22,495
- 29
- 154
- 227
5
votes
3 answers
Can't install Capybara-Webkit on Debian
I am currently trying to install Capybara-Webkit on a rails 3.2 app. Everytime I try to install the gem I get the following output. I am on Debian unstable.
ERROR: Error installing capybara-webkit:
ERROR: Failed to build gem native extension.
…

jamesconant
- 1,405
- 1
- 12
- 18
5
votes
1 answer
Rspec periodically hangs when using capybara-webkit with a page that loads an external script with async = true
I'm working on an application that uses uservoice. The uservoice snippet
var uv = document.createElement('script');
uv.type = 'text/javascript';
uv.async = true;
uv.src = ...; // external call to uservoice to fetch js
var s =…

jgdreyes
- 169
- 1
- 6
5
votes
1 answer
Capybara-webkit throws Can't find variable: $
I'm trying to fill a wysihmlt5 textarea with Capybara-webkit (not sure if there is another way):
Capybara.default_driver = :webkit
page.execute_script %Q{ $('#wysihtml5-textarea').data("wysihtml5").editor.setValue('Lorem ipsum') }
But I get thsi…

alexchenco
- 53,565
- 76
- 241
- 413
5
votes
1 answer
Test loading message content before AJAX request is completed with Capybara
I see a lot of questions and answers about Capybara not waiting for an AJAX request to complete before testing for content, but I need to do the opposite: I want to test that a loading message is present before the AJAX request is done.
How would I…

Chris Butler
- 733
- 6
- 23
4
votes
1 answer
rails 3.1, Installing capybara-webkit, Failed to build gem native extension, what to do?
I am trying to install capybara-webkit (0.8.0), but I get the error below, can any body help, I am on ubuntu 11.10.
Installing capybara-webkit (0.8.0) with native extensions
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
…

simo
- 23,342
- 38
- 121
- 218
4
votes
1 answer
capybara-webkit - rails session not retained/set
Ive setup capybara-webkit for my integration tests and Im running into a very simple problem. My session is not being stored. The use case is pretty simple
1. Login
2. Go to a specific page
3. Check if it has the approp…

Mohith Thimmaiah
- 857
- 1
- 9
- 21
4
votes
1 answer
Is it possible to install capybara-webkit with xcode command line tools only?
The last computer I installed capybara-webkit on did not require full xcode, only the command line tools. However, now when I try to install it on a new computer, I run into the following:
Try to install:
$ gem install capybara-webkit
Get error…

toppsdown
- 359
- 3
- 14
4
votes
3 answers
Capybara can't find select box for Semantic-ui
I use capybara with capybara-webkit and Semantic-ui, but it seams that dropdowns doesn't work out of box, because

boblin
- 3,541
- 4
- 25
- 29
4
votes
4 answers
Capybara webkit allow unknown urls is not being set
I am using capybara webkit for some of my rspec tests in a rails application. I want to allow_unknown_urls and have set this in the spec_helper.rb file as per the guide for global configuration here https://github.com/thoughtbot/capybara-webkit/ -…

RenegadeAndy
- 5,440
- 18
- 70
- 130