Links

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:
{
"goog:chromeOptions": {
"experimentalOptions": {
"prefs": {
"download": {
"default_directory": "C:\\Users\\admin\\Downloads"
}
}
}
}
}
For macOS:
{
"goog:chromeOptions": {
"experimentalOptions": {
"prefs": {
"download": {
"default_directory": "/Users/testproject/Documents"
}
}
}
}
}
Then all you have to do is click save and execute the job you desire with these desired capabilities.