johntitus / node-horseman

Run PhantomJS from Node
MIT License
1.45k stars 125 forks source link

How to .injectJs(file) #283

Closed nageshdudam closed 7 years ago

nageshdudam commented 7 years ago

Hi,

I want to inject a jquery click event as a separate file. Not sure how to do it in horseman.

Just want an example of how to do it.

Please let me know.

awlayton commented 7 years ago

You just give it a filename and it runs the JavaScript in that file (within the webpage).