Testing Javascript in Perl applications

There is a tool called Selenium which is used to test the Javascript component in Perl based applications. This is used to run tests directly in the browser. Actually this tool sits between Perl application, test script and browser. The test script sends the Selenium server commands to run inside the web browser. The web browser then executes those commands, and returns the results to Selenium server and then to test script. It requires JRE and a working web server to work with.

Jonathan Rockway in his book has explained and used this in Catalyst applications.