Having trouble downloading a file using Protractor with Headless Chrome. The download works fine when not in headless mode.
In my protractor.conf.js file, I have the following capabilities configured:
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'args': ['no-sandbox', 'disable-setuid-sandbox', 'headless'],
'prefs': {
'download': {
'prompt_for_download': false,
'default_directory': '/tmp'
}
}
}
I am attempting to download the file by clicking a button in the UI. Any tips on how to make headless file downloads work, or should I provide more details?