I am scraping a page with CasperJS that is using RichFaces to trigger a download. So far I have been unsuccessful with trying to capture the network requests and wanted to try something else.
Is there any way to extract the target URL from all the things going on in a RichFaces onClick event on an anchor tag in the DOM?
I did find this question here downloading a file that comes as an attachment in a POST request response in PhantomJs about modifying a form submission with casperJS but unfortunately this RichFaces event is not part of a form