A Capybara driver for headless WebKit so you can test Javascript web apps.
Questions tagged [capybara-webkit]
470 questions
0
votes
1 answer
can't install capybara-webkit
When I bundle install I get:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
Command 'qmake -spec linux-g++ ' not available
Makefile not found
Gem files will remain installed in…

simo
- 23,342
- 38
- 121
- 218
0
votes
1 answer
capybara-webkit on yosemite g++: error: unrecognized command line option '-Xarch_x86_64'
I'm having problem installing on OS X 10.10 Yosemite, running with gcc4.9.2 and qt 4.8.6 installed via Brew.
gem install capybara-webkit
Building native extensions. This could take a while...
ERROR: Error installing capybara-webkit:
ERROR: Failed…

James Tan
- 1,336
- 1
- 14
- 32
0
votes
0 answers
Capybara won't start the web server when 'rspec spec' is used but does it only when 'rspec spec/features' is used
The issue is basically described in subject. I don't really know if this problem is RSpec problem or Capybara one. I haven't found anything on the web about this issue, diving into the Capybara code didn't help me either.
I'm using the…

vittorius
- 365
- 3
- 10
0
votes
1 answer
Selenium with Capybara failing test
I'm having a problem with my Selenium test, it looks like the test data is not getting added to the right environment or Selenium is trying to read from the wrong one.
The below test passes without :js => true but with it it fails
it "allows the…

SteWoo
- 458
- 1
- 8
- 21
0
votes
1 answer
Records of a table are deleted when there is no `expect.. to .. have_content..`
I have a simple spec like this :
scenario "Fill the payments information for a painting", js: true do
period = create(:period)
painting = create(:painting, period: period, published: false)
admin = AdminUser.create!(email: 'admin@example.com',…

Dougui
- 7,142
- 7
- 52
- 87
0
votes
1 answer
TestUnit Capybara.reset_sessions! for every test
So the following code works in isolation but if I run the full test suite it breaks if I remove:
Capybara.reset_sessions!
From my investigation the user can't sign in as they are already signed in. So my question is, is it typical to need to call…

Brettski
- 1,061
- 2
- 12
- 25
0
votes
1 answer
Capybara::Webkit::InvalidResponseError: Unable to load URL: file:///
So I get this error when trying to run a Integration test in TestUnit using Capybara.
It's trying to load the URL at file:///
Any ideas?
# Running:
E
Finished in 1.072113s, 0.9327 runs/s, 0.0000 assertions/s.
1)…

Brettski
- 1,061
- 2
- 12
- 25
0
votes
1 answer
How to set cookies in capybara with capybara-webkit
I'm using capybara with capybara-webkit for testing, but I need to set some specific cookies.
I'm so confused by it's document, and the source code.
I did find a method here…

Steven Yue
- 966
- 1
- 8
- 16
0
votes
1 answer
Is waiting needed in Capybara for non DOM-altering Javascript?
From what I understand of Capybara's autowait feature, it waits for the DOM to change, so I guess it's waiting for all AJAX requests to complete and/or the main frame to finish loading.
I have a test case in which I need to:
fill in a field…

djfm
- 2,317
- 1
- 18
- 34
0
votes
0 answers
Rspec, Capybara: Ambiguous match, found 2 elements matching field 'brief'
I have just implemented an inline form show/hide function with Jquery and a few of my specs are failing. I post comments to answers and to questions, and comments can be posted in reply to other comments. When the form is shown, the 'add comment'…

Annika
- 55
- 2
- 10
0
votes
1 answer
Disabling ClickFailed screenshots in capybara-webkit
Is there a way to disable capybara-webkit from creating a screenshot(click_failed_XXXXXX) when a ClickFailed error occurs? Thanks in advance.

nocalbruin
- 3
- 1
0
votes
1 answer
ruby capybara code to click a link
I'm new to test automation and using Ruby capybara with the selenium driver.
I want to automate this page
Here, I want to click the file menu inside the applet for that I did following but it is not working
browser =…

Sush
- 1,449
- 8
- 26
- 51
0
votes
1 answer
Cucumber doesn't work due to dyld (Library not loaded) issue
when running cucumber on my osx I am facing an issue .I am using capybara version 2.1.0 and capybara-webkit version 1.0.0
Log.
satyammacmini:New_Beast satyam$ cucumber features -f junit -o testresults -t …

user2526795
- 77
- 1
- 8
0
votes
1 answer
ruby capybara to check a text inside a dev
Iam working with test automation .for that am using ruby capybara to wite test scripts.Using
Ruby cabybara code i want to check a text is present is not inside dev element
how can i possible?
Sush
- 1,449
- 8
- 26
- 51

Sush
- 1,449
- 8
- 26
- 51
0
votes
1 answer
Why are css selectors interpreted differently by JQuery and Capybara?
I'm writing tests for a web app using Capybara. I'm trying find a node in the DOM using the following set of selectors.
'[ng-repeat="task in taskList.items"]:last-child .editable-select [multiple="multiple"]'
When I pass these selectors to JQuery,…

dB'
- 7,838
- 15
- 58
- 101