Insufficient permission to download file

21 views
Skip to first unread message

ekes...@updox.com

unread,
Oct 10, 2017, 10:57:07 AM10/10/17
to ChromeDriver Users
I am automating my Chrome browse and I want to download a file to a known location instead of relying on the default download location (because my program will be run on different machines which will likely have different default locations).

I have configured chrome to use a custom download location but when it tried to download a file, I get "Failed - Insufficient permissions". The download will work if I don't change the default directory but it fails when I do.

Example changes:
{ prefs: {
download: {
prompt_for_download: false,
default_directory: 'my/custom/directory'
}
}
}

I'm doing this on an OS X machine and have even used 'chmod' to give full permission to that directory to everyone (it is now more permissive than the default download location that works) but Chrome still insists that it doesn't have permission to download there.


Any ideas?


Eric

ekes...@updox.com

unread,
Oct 10, 2017, 10:59:13 AM10/10/17
to ChromeDriver Users
I'm doing this in Ruby using Selenium, if it matters.
Reply all
Reply to author
Forward
0 new messages