n1k0/casperjs — Issue #15: access to page resources
Author: naltatis
Created: 2011-11-24 15:32:56+00:00
State: open

I've considered using casperjs to test web-tracking implementation. So I have to check if a specific request has gone out to the tracking-server.

It looks like `httpStatusHandlers` is only called when the entire page is loaded. I would like to see something like phantoms `onResourceRequested/onResourceRecieved` events.
But I'm not really sure where I would expect this kinds of events in the casper api.

Another idea is to put a list of all requested resources to the page object. That way a test could check on the list instead of waiting for an event which might fire before the page is loaded.

Do you have any thoughts on this topic?

\ naltatis