How do I click an element in PhantomJS?
page.evaluate(function() { document.getElementById(\'idButtonSpan\').click(); });
This gives
For those using JQuery, the JQuery UI created a utility to simulate these: jquery-simulate. I use this in PhantomJS and Chrome
$ele..simulate( "click" );