casperjs page loading: how to auto-load page's script files?
I'm new to casperjs and my desire is to try to test the javascript loaded
by certain pages of a web app. I'm using casper.thenOpen to load a page
from the web server, but it doesn't in turn load the tags that reference
js files. I even checked the web server's access log and sure enough, only
the page itself was requested, not the js files.
I would imagine there is built in functionality for doing this, but if I
have to do this manually I can live with writing my own utility function
for it. But again, being new to casperjs, I'm not sure how I'd go about it
- I haven't been able to locate examples that will help me figure this
out.
No comments:
Post a Comment