Top "Capybara" questions

Capybara is a web application testing framework for Rack applications, such as Rails, Sinatra and Merb.

cucumber and capybara, how to open external url or visit outside url

i am using cucumber and capybara. in a rails 3.0.9 platform. i am getting this test case fail: log is: (::) failed …

ruby-on-rails ruby ruby-on-rails-3 cucumber capybara
Selenium WebDriver can't find Firefox when installed with Homebrew cask

Homebrew cask does some app linking magic on Mac OS X. Apparently it's not good enough because Selenium WebDriver looking …

selenium selenium-webdriver capybara homebrew homebrew-cask
Capybara::ElementNotFound: Unable to find xpath "/html"

I'm following the Ruby on Rails tutorial at http://ruby.railstutorial.org/chapters/static-pages and came across the following error …

ruby-on-rails ruby rspec capybara gemfile
How can I test a rails 4 confirm dialog with Capybara and Poltergeist?

I'm trying to test that a link to a destroy action throws a native browser confirm box with the correct …

ruby-on-rails rspec capybara poltergeist
Capybara tests with :js=>true... Routing Error: No route matches [GET] "/assets"

I'm getting a similar error in a number of tests when I add ":js => true" to them. eg: An …

ruby-on-rails-3 capybara rspec-rails
Downloading file to specific folder using Capybara and Poltergeist driver

I am writing my acceptance tests using Capybara and Poltergeist driver.I need to validate the content of the CSV …

capybara poltergeist
Is there a way to print javascript console.errors to the terminal with Rspec/Capybara/Selenium?

When I run rspec, is it possible to have capybara/selenium report any javascript console.errors and other exceptions back …

javascript ruby-on-rails selenium rspec capybara
Capybara testing value of hidden field

I have a form with a hidden field that contains the current date. I'm trying to figure out how to …

capybara
How can I simulate the browser back button in Capybara?

We have a issue on our e-commerce site where users occasionally hit "checkout" twice and have their card charged twice. …

ruby-on-rails ruby testing capybara
Rails Phantomjs, poltergeist, and Capybara not playing well together

Working in a rails 3.1.2 project (mac OS X), I have PhantomJS properly installed (I can run code like the following …

ruby-on-rails-3 capybara rspec-rails phantomjs poltergeist