I need a headless web browser with JS support to use during cron. It seems like the simpletest module does what I need, but how could one initiate a browser and hand it a DOM?
Outside the context of Drupal cron, it would go like this:
require_once('simpletest/browser.php');
$browser = &new SimpleBrowser();
$browser->get('http://php.net/');
But, is there a way I can use the code that the simpletest module already provides?