If you are taking the open source route the best bet for you would be selenium (Especially Selenium 2.0/WebDriver).

-nIL