Top "Capybara" questions

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

How to click on the second link with the same text using Capybara in Rails 3?

In a view file I have: = link_to 'View', post = link_to 'View', comment In a spec file (I'm using …

ruby-on-rails ruby-on-rails-3 capybara
With Capybara, how do I switch to the new window for links with "_blank" targets?

Perhaps this isn't actually the issue I'm experiencing, but it seems that when I "click_link" a link with target="_…

ruby-on-rails testing selenium webkit capybara
How to stub ApplicationController method in request spec

I am needing to stub the response of a current_user method in an Rspec/capybara request spec. The method …

ruby-on-rails ruby rspec capybara
How to get HTML5 data attribute using xpath?

How do I get the first table (table1) using xpath for Webdriver? <span id="dynamically generated id" data-id="table1"&…

java ruby xpath selenium-webdriver capybara
How to fill hidden field with Capybara?

I've already found that when I want to set value to text field, text area or password field, I can …

rspec capybara
Can't find element to click on using Capybara + Rails3

Background: I'm using Capybara with Rspec to test a Rails 3 app. Driver used: Selenium Problem: I can't find the "Sign …

ruby-on-rails testing rspec capybara
How to test a confirm dialog with Cucumber?

I am using Ruby on Rails with Cucumber and Capybara. How would I go about testing a simple confirm command ("…

automated-tests capybara integration-testing
Ensure an element is not present with Capybara

Using Capybara, I need to assert that a form element is not present, for example, 'Then I should not see …

ruby capybara
ERROR: Error installing capybara-webkit:

Any suggestions on how to fix? gem install capybara-webkit -v '0.11.0' Building native extensions. This could take a while... …

ruby-on-rails ruby gem capybara capybara-webkit
Rspec + Capybara : How to click on alert box

I have gone through the post of capybara + click on alert box but nothing seems to be work. Following is …

rspec capybara