I try to capture some images from the new relic insights dashboard, but it won't work.
The script works a few weeks ago, but now, I just get some empty images with an orange border at the top (like if JavaScript was not enabled).
There's my script: http://pastebin.com/aiBiWXqK
It works for the login page, but for the 2 other captures, it show an empty page.
I run this script like this in an .sh file.
PHANTOMJS_EXECUTABLE=/usr/local/bin/phantomjs /usr/local/bin/casperjs --cookie-file=$(pwd)/tv-cookies.txt $(pwd)/capture.js --ssl-protocol=any --ignore-ssl-errors=true
I tried to casper.wait(fun, 300000)
to be sure it will completely load.
I tried to to casper.waitForSelector('.dashboard-widgets', fn)
to check if the selector is created, but it won't work.
I know the dashboard is created with Angular, but I tried to capture other websites made with Angular and it's ok.
Does anyone know how to make it? Or any advice or other packages to use to do this?