Problem
I am testing file download, but when I start the download, the prompt βSave As ...β appears. I saw a solution in this SO question , but it doesn't seem to work for me.
Config
My protractor configuration file looks like this (coffeescript):
exports.config = capabilities: browserName: "chrome" shardTestFiles: true maxInstances: 2 chromeOptions: args: ['--no-sandbox', '--test-type=browser'] prefs: download: prompt_for_download: false default_directory: '/' default_content_settings: popups: 0
More details
The chromeOptions.pref webdriver docs says:
See the Preferences file in the Chrome user data directory for an example.
In my own Chrome settings file, I do not see default_directory .
"download": { "directory_upgrade": true, "prompt_for_download": false },
System
- Protractor: version 1.5.0 (fairly new)
- Node: 0.10.28, 0.11.8 and 0.11.14
source share