Home

Pages 9

Clone this wiki locally

Webrat lets you quickly write robust and thorough acceptance tests for a web application. By leveraging the DOM, it can run tests similarly to an in-browser testing solution without the associated performance hit (and browser dependency). The result is tests that are less fragile and more effective at verifying that the app will respond properly to users.

Webrat does not natively handle Javascript. If your application uses Javascript, you might want to make use of Webrat’s Selenium support (see Webrat::Selenium in the RDoc).
Alternatively, you may want to investigate standalone Selenium or watir.