I use Protractor + Jasmine + UIAutomation to test web and desktop applications. I need to run my tests in Edge Chromium browser (version 88.0.705.53). I use selenium-server-standalone-3.141.59, and msedgedriver.exe version 88.0.705.53, the same like Edge browser. Here is my protractor config.js:
capabilities: {
'browserName': 'MicrosoftEdge',
'platform': 'windows',
'maxInstances': 1,
'nativeEvents': false,
'UseChromium': true,
edgeOptions: {
args: ['--no-sandbox', 'lang=en-EN', '--disable-gpu'],
prefs: {
download: {
'prompt_for_download': true,
'directory_upgrade': true,
'default_directory': 'C:\DownloadedFiles'
}
}
},
},
seleniumAddress: 'http://localhost:4444/wd/hub',
The problem is when I run my tests, download options are not applied and the browser doesn't prompt for download and the default directory is not changed. Here is my standalone server:
What is wrong with my settings and what should I change? Thank you for your answers in advance.
question from:
https://stackoverflow.com/questions/65936137/protractor-edge-chromium-options-not-applied 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…