may help. Selenium uses Firefox and has a macro recorder that generates a Perl script. You start the recorder, click click through your test scenario on an actual browser, click finish and out comes a script that does the things that you have just done. Then you can play with that script and modify it as you like. See