O'Reilly logo

The Cucumber Book, 2nd Edition by Steve Tooke, Aslak Hellesoy, Matt Wynne

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What We Just Learned

Testing web applications can be done in different ways. How to do it depends on what programming language your application is written in and whether it’s using JavaScript and Ajax. Let’s summarize what we’ve covered in this chapter:

  • Capybara has a simple DSL for navigating around URLs, filling in forms values, and clicking buttons and links.

  • Capybara has several drivers—some of them built-in, and some of them available as separate gems—that allow the same code to automate different browsers or browser simulators.

  • Web applications written in Ruby can use Capybara’s Rack driver to test functionality without JavaScript or Ajax. This is the fastest possible way to do an end-to-end test.

  • For Ruby/Rack applications, the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required