
6.9.15.1.11.5.11Chrome 57.0.2987.98 (64-bit)OS X El Capitan Version 10.11.6const commonConfig = require('./protractor.common.conf.js')
const HtmlScreenshotReporter = require('protractor-jasmine2-screenshot-reporter')
const reporter = new HtmlScreenshotReporter({
dest: '../test/screenshots',
filename: 'my-live-answer-e2e-report.html'
})
const extend = require('util')._extend;
exports.config = {
directConnect: true,
capabilities: {
'browserName': 'chrome'
},
beforeLaunch: () => {
return new Promise((resolve) => {
reporter.beforeLaunch(resolve)
})
},
onPrepare: () => {
var SpecReporter = require('jasmine-spec-reporter')
jasmine.getEnv().addReporter(new SpecReporter({displayStacktrace: 'all'}))
jasmine.getEnv().addReporter(reporter)
global.isAngularSite = (flag) => {
browser.ignoreSynchronization = !flag
}
},
// Close the report after all tests finish
afterLaunch: (exitCode) => {
return new Promise((resolve) => {
reporter.afterLaunch(resolve.bind(this, exitCode))
})
}
}
exports.config = extend(exports.config, commonConfig)
A relevant example test
Login to any username/password site. When successfully logging in, the save password dialog appears.
Output from running the test
Timeout because the test cannot do anything once the password manager appears
Steps to reproduce the bug
Login to any username/password site. When successfully logging in, the save password dialog appears.
Add the following in your protractor config. This should disable the chrome password manager:
Tested on Windows 10, Chrome 57.
capabilities: {
'browserName': 'chrome',
'chromeOptions': {
'prefs': {
'credentials_enable_service': false,
'profile': {
'password_manager_enabled': false
}
}
}
}
I am running tests using an old version of https://github.com/teerapap/grunt-protractor-runner which has a very old version of protractor and also which uses an old version of the chrome driver. New version of chrome driver addresses this issue.
Latest Release: ChromeDriver 2.28
Supports Chrome v55-57
Changes include:
Fixes a bug which blocked ChromeDriver automation extension from loading and thereby causing window resizing/positioning & screenshot functionalities to break.
Most helpful comment
Add the following in your protractor config. This should disable the chrome password manager:
Tested on Windows 10, Chrome 57.
capabilities: { 'browserName': 'chrome', 'chromeOptions': { 'prefs': { 'credentials_enable_service': false, 'profile': { 'password_manager_enabled': false } } } }