Programmatically access downloaded assets' properties for a particular page request ?
Is it possible to access properties of the assets like their headers (I mostly want the name of the assets) downloaded on a particular page request either by using something like selenium web driver or on node ?
Purely using node you can intercept http requests made through request library using request-capture-har utility which generates an HTTP archive which contains the information you need.
While this is not natively supported through selenium web-driver, you can integrate with firefox extensions to get information about all network requests.
@lorefnon, thanks for such a quick response. So for example, I want to capture all the assets' information for say https://google.com, so I'd be able to get that from the demo code in its README.md right? Just by running that in node script. Or am I thinking something wrong?
Lorefnon
Open Web Enthusiast
Purely using node you can intercept http requests made through request library using request-capture-har utility which generates an HTTP archive which contains the information you need.
While this is not natively supported through selenium web-driver, you can integrate with firefox extensions to get information about all network requests.