Questions tagged [capybara]

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

Capybara aims to simplify the process of integration testing Rack applications, such as Rails, Sinatra or Merb. Capybara simulates how a real user would interact with a web application. It is agnostic about the driver running your tests and currently comes bundled with rack-test, Culerity, Celerity and Selenium support built in.

A complete reference is available at rubydoc.info.
A great capybara cheat sheet is available here.

5916 questions
56
votes
4 answers

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). I have tried to use trigger.('mouseover') on the parent of the hidden button, but that doesn't seem to work. Here's a code snippet…
adritha84
  • 957
  • 1
  • 7
  • 15
56
votes
5 answers

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 be compatible with Selenium... This is the HTML that I have: