phantomjs 1.9.0 permissions problem on screenshot capture

942 views
Skip to first unread message

Usama Ahmed

unread,
Feb 4, 2014, 6:03:36 AM2/4/14
to phan...@googlegroups.com
Hi i am a newbie on phantomjs. I am getting phantom error

[error] [phantom] Failed to save screenshot to somepicture.png please check permissions

when i try to run my script using casperjs.

I have tried some things from internet regarding setting permissions on folder . But that didn't worked as well

Please help

Thanks

Usama Ahmed

unread,
Feb 4, 2014, 6:05:52 AM2/4/14
to phan...@googlegroups.com
I have tried it on Ubuntu 12.10 LTS as well as Ubuntu 13.10.

Khalid Zubair

unread,
Feb 25, 2014, 3:03:18 AM2/25/14
to phan...@googlegroups.com
Hi Usama 

This error comes up in a few occassions, including the usual file permissions. However it's also possible getting this via casper.js when the screenshot you're trying to get is of a url or link which has no response body. In such cases an error would come up similar to the following 

[error] [phantom] Failed to save screenshot to [target directory/target file]; please check permissions


On Tuesday, February 4, 2014 4:03:36 PM UTC+5, Usama Ahmed wrote:
Reply all
Reply to author
Forward
0 new messages