You could take a look at Selenium.
From its site: "Selenium tests run directly in a browsers, just as real users do. And they run in Internet Explorer, Mozilla and Firefox on Windows, Linux and Macintosh...Selenium uses JavaScript and Iframes to embed a test automation engine in your browser."