How do I click an element in PhantomJS?
page.evaluate(function() { document.getElementById(\'idButtonSpan\').click(); });
This gives
I never was able to directly click the element. Instead, I looked at the html to find what function was called with onclick, and then called that function.