How do I click an element in PhantomJS?
page.evaluate(function() { document.getElementById(\'idButtonSpan\').click(); });
This gives
With 1.9.2 this worked for me, click handlers were triggered:
1.9.2
var a = page.evaluate(function() { return document.querySelector('a.open'); }); page.sendEvent('click', a.offsetLeft, a.offsetTop);