Questions tagged [capybara-webkit]

A Capybara driver for headless WebKit so you can test Javascript web apps.

https://github.com/thoughtbot/capybara-webkit

470 questions
14
votes
3 answers

Capybara-webkit tries to open example.com

I'm using capybara, capybara-webkit, capybara-screenshot together with cucumber. (Ruby 1.9.3, Rails 3.1.3) and Capybara.javascript_driver = :webkit is also set env.rb Unfortunately running a cucumber spec with @javascript will never succeed for…
pagid
  • 13,559
  • 11
  • 78
  • 104
14
votes
2 answers

vcr with capybara-webkit

I'm using capybara-webkit to test integration with a third party website (I need javascript). I want to use vcr to record requests made during the integration test but capybara-webkit doesn't go over net http so vcr is unable to record them. How…
opsb
  • 29,325
  • 19
  • 89
  • 99
11
votes
2 answers

Capybara-webkit and Qt5 on Yosemite

Latest Capybara-webkit throws a deprecation warning: WARNING: The next major version of capybara-webkit will require at least version 5.0 of Qt. You're using version 4.8.7. So I: gem uninstall capybara-webkit brew uninstall qt brew install qt5 gem…
Meltemi
  • 37,979
  • 50
  • 195
  • 293
11
votes
2 answers

Capybara::FrozenInTime error in integration specs using Rspec + Timecop + Capybara + Capybara Webkit

I'm seeing an error in some integration specs, using rspec, capybara, capybara-webkit and timecop. Capybara::FrozenInTime: time appears to be frozen, Capybara does not work with libraries which freeze time, consider using time travelling…
hsgubert
  • 2,266
  • 1
  • 22
  • 23
10
votes
3 answers

webkit_server hangs periodically when run from Capybara in Ruby

I am having a problem where an instance of webkit_server with Capybara and capybara-webkit running headless connected to a local Xvfb screen hangs when visiting a URL. It seems to happen after several minutes of repeatedly visiting different URLs…
Chris Hart
  • 2,153
  • 1
  • 23
  • 45
10
votes
6 answers

Capybara integration tests with jquery.selectize

How can I write a capybara integration test with a form using jquery.selectize? I'd like to test a user entering a couple of values.
Marc-André Lafortune
  • 78,216
  • 16
  • 166
  • 166
10
votes
2 answers

Database Cleaner issue with Capybara webkit

I am using Cucumber to write my integration tests and Database Cleaner to keep my db clean. Everything perfectly works as my tests don't require Javascript. I can make these last tests pass using Capybara webkit, but then my db is not cleaned at…
10
votes
4 answers

Capybara webkit invalid response error, how to debug?

I'm trying to write a request spec for a web page. This page works in development without error. But running in capybara webkit I get this error after trying to submit the form: Failure/Error: Unable to find matching line from backtrace …
Chris
  • 6,076
  • 11
  • 48
  • 62
9
votes
1 answer

Precompiled assets in Rails test environment not used

I'm using Rails 5.1.1 and for our rspec feature tests we want would like to use precompiled assets before running all feature tests. (The main reason for this is because capybara-webkit doesn't support javascript es6 features) The assets…
Dan
  • 1,136
  • 10
  • 24
9
votes
2 answers

Unable to install capybara-webkit with OS X Sierra

I've been trying to install the Capybara-Webkit gem with bundler and after following these instructions: https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit#macos-sierra-1012 I keep running into the error…
Caren García
  • 138
  • 1
  • 7
9
votes
5 answers

Deprecation warning from Capybara

I am upgrading from rails 3.2.19 to rails 4.1.5, using rspec-rails 2.14.0.rc1 and capybara 2.4.1. All tests pass, and I only have one deprecation warning left: [DEPRECATION] Capybara::Webkit::Driver#accept_js_confirms! is deprecated. Please use…
Obromios
  • 15,408
  • 15
  • 72
  • 127
9
votes
1 answer

Capybara-Webkit close webkit_server

I am using Capybara-Webkit to automate some work on a website. This is done in the background in a Resque task. After some executions there are quiet a lot webkit_server processes, that weren't closed by Capybara. So how can I force Capybara to…
Mark
  • 7,507
  • 12
  • 52
  • 88
8
votes
2 answers

Capybara Webkit runtime warning: Class is implemented in both

I get a slew of warnings from webkit when I run rspec. I am using capybara-webkit and qt installed from brew. I sure would love to fix these. Thanks for your help. Warnings like: "Implemented in both" objc[97388]: Class WebCoreMovieObserver is…
Jared Beck
  • 16,796
  • 9
  • 72
  • 97
8
votes
1 answer

Mac OS X (Big Sur) capybara-webkit installation problem

I have a problem with installation of capybara-webkit gem. Here is part of my test group in gemfile: group :test do gem 'capybara-webkit' end And when I write 'bundle' on console - it gives me out `"An error occurred while installing…
Silka
  • 194
  • 2
  • 11
8
votes
1 answer

How can I run headless browser system tests in Rails 5.1?

The documentation for Rails 5.1 system tests is a bit sparse. I'm unable to get headless tests that execute javascript running. I think one approach entails installing and running xvf. But this is more manual setup than I'm used to when running…
John Bachir
  • 22,495
  • 29
  • 154
  • 227
1
2
3
31 32