http://selenium.thoughtworks.com/
I found one way to do this was to create a test script that runs as a
CGI script. Adding just one line to the top of the script allows it to
run from the web or from the command line:
if ($ENV{SCRIPT_NAME}) { $|++ && print "Content-Type: text/plain\n\n"; }
In my setup, this meant I also needed to give the script a ".cgi" extension.
Setting a simple environment variable in my profile allowed 'prove' to
recognize a second test extension without extra effort:
export PROVE_SWITCHES="--ext=.t --ext=.cgi"
Now I can have Selenium run a Perl test and inspect the 'ok', 'not ok' output.
Mark