A Capybara driver for headless WebKit so you can test Javascript web apps.
Questions tagged [capybara-webkit]
470 questions
0
votes
0 answers
Setting page.driver.block_unknown_urls in Cucumber?
I am using cucumber and I keep getting this warning
Request to unknown URL: http://fonts.googleapis.com/css?family=Source+Sans+Pro
To block requests to unknown URLs:
page.driver.block_unknown_urls
To allow just this URL:
…

Cu1ture
- 1,273
- 1
- 14
- 29
0
votes
1 answer
How to check if JavaScript alert is present (or not present) in a Capybara session?
I'm trying to write a test that confirms that no JavaScript alert is present on the page (because in capybara-webkit, it is silencing this alert, but in selenium it correctly raises an error). How can I write a test to expect(page).to_not…

Andrew
- 227,796
- 193
- 515
- 708
0
votes
1 answer
error installing capybara-webkit. Can not compile
I can not handle the situation to install capybara-webkit on yosemity
Any idea is welcome.
Installing capybara-webkit (1.3.1)
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension.
…

Boti
- 3,275
- 1
- 29
- 54
0
votes
1 answer
Where is the webkit_debug log located?
I am working on transitioning from the default rack_test driver to the webkit driver so I can run javascript in my rspec tests. Unfortunately, I am getting session timeout errors, so I changed my driver to webkit_debug, however, I can't seem to find…

nbb
- 295
- 3
- 10
0
votes
0 answers
Rspec/Capyabara - Test appearance and disappearance after few seconds of bootstrap modal (rails, rspec3, capybara 2, webkit driver, bootstrap3)
I would like to test that my bootstrap modal
appears on page load (A)
then disappears after 3 seconds (B)
then if user loads again the page does not load anymore thanks to a cookie based technique. (user should only see once this modal)…

Mathieu
- 4,587
- 11
- 57
- 112
0
votes
1 answer
Minitest-Capybara: find "a" - click "a" - unable to find link or button
Is it possible that if I write in my integration test:
all("a")[0]
the test goes well but when writing:
click_on(all("a")[0])
I get the error message "unable to find link or button"?
The has
href="javascript:void(0)"

TakeMeToTheMoon
- 527
- 1
- 8
- 25
0
votes
2 answers
How to extract HTML from updated DOM using Capybara Webkit driver?
I have a page that injects some text into the DOM: 'Success!'.
The Javascript code works because I see the expected text in the screenshot, and the spec passes:
page.visit '/'
save_and_open_screenshot
expect( page).to have_content 'Success!'
puts…

B Seven
- 44,484
- 66
- 240
- 385
0
votes
2 answers
@javascript tag not working for cucumber test cases using capybara driver
I am getting this error when using @javascript tag for scenario :
Unable to load URL: http://testdomain.mentorstring.com:3000/login because of error loading http://testdomain.mentorstring.com:3000/login: Unknown error…

kasif adnan
- 11
- 3
0
votes
0 answers
Compilation errors using qt 4.8.5 on capybara-webkit
I have followed the directions at https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit for installation on Windows 7. I have uninstalled Qt and reinstalled and tried to do this many times, and I can't get it…
0
votes
1 answer
Cannot build capybara-webkit 1.3 on Windows 7 64-bit (ruby 2.1.3)
I've followed the process outlined in the guide for several different versions of Qt (I've tried 4.8.4, 4.8.5 and 4.8.6 - now trying 4.5.4), but none have managed to complete the rake build step.
This is my current environment:
which qmake…

nicohvi
- 2,270
- 2
- 28
- 42
0
votes
0 answers
Capybara and select tag reloading another select tag using ajax
I'm with a problem here. There are two select on view and there is an onchange on the first. When the user changes the first select, the second is reloaded via ajax. It is working as well.
My problem is write that in capybara.
select all('#unit_id…

Thiago Guimarães
- 23
- 5
0
votes
1 answer
Capybara webkit socks5 proxy support
Can you provide an example of how to send all Capybara-webkit requests through socks5 proxy? Capybara.current_session.driver.browser.set_proxy method exists, but how can it be used with socks5 proxy

Oleg Boris
- 3
- 1
0
votes
1 answer
Capybara Webkit Failed to build gem native extension. OSX
The capybara-webkit gem fails to build its native extensions on my machine
OSX Yosemite 10.10.1
g++: error: unrecognized command line option '-Xarch_x86_64'
make[1]: *** [build/webkit_server.gch/c++] Error 1
make: ***…

topher6345
- 21
- 3
0
votes
0 answers
Capybara save_and_open_page with third party JS
Using Capybara I get alot of javascript errors due to cross origin policies regarding external javascript (Twitter widget API and typekit font).
Is there a way to fix this?

Cjmarkham
- 9,484
- 5
- 48
- 81
0
votes
0 answers
Trouble installing capybara-webkit on yosemite
I'm on ruby 2.1.1. and I'm getting this error when trying to install capybara-webkit
command : gem install capybara-webkit -v1.3.1
gcc: error: unrecognized command line option '-Xarch_x86_64'
gcc version is
gcc -v
Using built-in…

rgagnon
- 114
- 7