Articles
Help Articles
How to change the headless download path
Chrome headless is downloading the file where the process is launched from.
Preferences to override this behavior can be found here:
1
{
2
"goog:chromeOptions": {
3
"experimentalOptions": {
4
"prefs": {
5
"download": {
6
"default_directory": "C:\\Users\\admin\\Downloads"
7
}
8
}
9
}
10
}
11
}
Copied!
For macOS:
1
{
2
"goog:chromeOptions": {
3
"experimentalOptions": {
4
"prefs": {
5
"download": {
6
"default_directory": "/Users/testproject/Documents"
7
}
8
}
9
}
10
}
11
}
Copied!
Then all you have to do is click save and execute the job you desire with these desired capabilities.
Copy link