Headless Web Browser During Cron? 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 = &amp;new SimpleBrowser();
$browser-&gt;get('http://php.net/');


But, is there a way I can use the code that the simpletest module already provides?
If you want a PHP headless web browser, you might look at Mink.

Gherkin/Behat seem to be getting some traction in the Drupal community and in the PHP community more broadly for Behavioral Driven Development.  Mink also supports browser emulation systems (like Selenium), which you typically need in order to interact with Javascript.