Hi,
I'm trying to test a scenario using NightwatchJS that involves downloading a file. When I click the component that starts the download, the browser is stuck awaiting for user approval to save it. I've tried every variation of config that I can find online to override the safety settings, like this (in my `nightwatch.conf.js` file)
```js
...
desiredCapabilities": {
"browserName": "chrome",
"javascriptEnabled": true,
"chromeOptions": {
"prefs": {
"download": {
"default_directory": `${__dirname}/downloads`,
"prompt_for_download": false,
"directory_upgrade": true,
},
"safebrowsing": {
"enabled": false,
}
}
...
```
I see that others here are successfully using Nightwatch to test download scenarios. Can someone give me the magic sauce to do so with Chrome driver?
Thank you
Gary