Convert HTML-formatted Selenium test case (Selenese) into Perl script