Top "Capybara" questions

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

Cucumber/Capybara: check that a page does NOT have content?

Using Cucumber and Capybara, is there a way to verify that a string is NOT present on a page? For …

ruby-on-rails cucumber capybara
capybara click_link with :href match

I have the following test in a request spec: page.should have_link('Edit user', :href => edit_users_path(@…

ruby-on-rails capybara
Test Redirection with RSpec and Capybara (Rails)

I just have learnt how cool RSpec and Cabybara is, and now working around it to learn writing actual test. …

ruby-on-rails rspec capybara
How to emulate mouse hover with Capybara

Basically, what I'm trying to do is click on a button that becomes visible when hovering another element (its parent). …

ruby-on-rails rspec capybara
How do I simulate hitting enter in an input field with Capybara and ChromeDriver?

I have the following helper method to input a string into an input field and press the enter key, but …

javascript jquery ruby-on-rails capybara selenium-chromedriver
Is it possible to interact with hidden elements with capybara?

I have a file field that has opacity: 0 and is overlaping a fake button. Its a common css technic to …

capybara attachment
How to test for a redirect with Rspec and Capybara

I don't know what I'm doing wrong, but every time I try to test for a redirect, I get this …

ruby-on-rails ruby rspec capybara
Set Chrome as Default Browser for RSpec/Capybara

I'm having some trouble getting Chrome to work with RSpec/Capybara on Ubuntu 13.10 64-bit. By default it launches Firefox - …

google-chrome selenium rspec capybara
How do you test if a div has a certain css style in rspec/capybara?

How do you test if a div tag has a certain css style? I'm trying to test if it has …

ruby rspec capybara
Check select box has certain options with Capybara

How do I use Capybara to check that a select box has certain values listed as options? It has to …

ruby-on-rails selenium cucumber capybara