Sahi is a tool for automating web application testing, is gaining popularity that allows recording and replaying across browsers. It provides different language drivers for writing test scripts, and supports Ajax and highly dynamic web applications. In this article shows how to use Sahi to test a web application. You will learn to format scripts for Junit and to test with Apache Ant.