How to take a screenshot when resources never load

19 views
Skip to first unread message

cjr

unread,
May 17, 2013, 9:36:16 PM5/17/13
to casp...@googlegroups.com
Example url is http://campusvirtualintec.buenosaires.gob.ar/mod/resource/view.php?inpopup=true&id=812

I want to take a screenshot of this site, but even when I load it in chrome the spinner never stops spinning, some external resource never gets loaded. Is there a way I can force casper to capture the site after say 15 seconds.. even though it hasnt finished loading the content is there.

Henrik Andersson

unread,
May 19, 2013, 3:51:28 PM5/19/13
to casp...@googlegroups.com
Try using a simple wait or any other wait-function. http://casperjs.org/api.html#casper.wait
Reply all
Reply to author
Forward
0 new messages