[1] Selenium (http://www.seleniumhq.org),
[2] scriptable testing, like Groovy's Geb (http://www.gebish.org), which uses Selinium's core WebDriver component under the covers, or
[3] scriptable headless browsing without using a real browser engine, such as with Python's Mechanize (http://wwwsearch.sourceforge.net/mechanize)?
Is this pretty much bullet #3, just for people who want to use "full-stack JavaScript" everywhere?