Using Capybara matchers on arbitrary HTML content Posted on 2017-05-122017-05-12 by Ignacio Contreras Apart from using it for integration tests, it’s really easy to use Capybara outside of browser tests. And that means, on any HTML content (string) you have. Share this: