PacktLib: Application Testing with Capybara

Application Testing with Capybara

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

Your First Scenario with Capybara

Installing Capybara

Preparing your system

Installing system libraries

Installing Capybara

Installing Cucumber and Selenium

Cucumber-Rails

Your first scenario – a YouTube search

Summary

Mastering the API

Locating elements with XPath and CSS

Navigation

Submitting forms

Finders, scoping, and multiple matches

Asserting and querying

Summary

Testing Rails and Sinatra Applications

Understanding the Rack interface

Capybara and Rack::Test

Which driver to use and when?

A note on Rails/RSpec and Capybara

Summary

Dealing with Ajax, JavaScript, and Flash

Ajax and asynchronous JavaScript

Flash and HTML5 – black box elements

Summary

Ninja Topics

Using Capybara outside of Cucumber

Advanced interactions and accessing the driver directly

Advanced driver configuration

The driver ecosystem

Summary

Index