johntitus / node-horseman

Run PhantomJS from Node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to .injectJs(file)

nageshdudam opened this issue · comments

commented

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.

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