Angular 如何使用量角器停止chrome中的下载提示
Chrome选项:Angular 如何使用量角器停止chrome中的下载提示,angular,jasmine,protractor,Angular,Jasmine,Protractor,Chrome选项: 'chromeOptions': { args: [ 'disable-extensions', 'safebrowsing-disable-extension-blacklist', 'safebrowsing-disable-download-protection', // 'show-fps-counter=true' '--disable-save-password-bubble'
'chromeOptions': {
args: [
'disable-extensions',
'safebrowsing-disable-extension-blacklist',
'safebrowsing-disable-download-protection',
// 'show-fps-counter=true'
'--disable-save-password-bubble',
'--safe-mode'
],
prefs: {
'excludeSwitches': ['enable-automation'],
'useAutomationExtension': false,
'safebrowsing': {
'enabled': true,
},
download: {
'directory_upgrade': true,
// 'default_directory':downloadsPath
'prompt_for_download': false,
'default_content_settings.popups': 0
},
},
},
将
chromeOptions
更改为goog:chromeOptions
您使用的量角器版本是什么?
以下各项应起作用:
chromeOptions: {
prefs: {
'download': {
prompt_for_download: false,
}
}
}
你的问题不够清楚。我找不到你到底想要什么。请再解释一下。把它也添加到你的问题栏中。我用的是量角器版本5.4.2,我用的和你建议的一样,但它不起作用