I am trying to run my e2e tests using protractor and chrome. I use chrome in incognito mode, as I have to test different logins and I do not want SSO to be enabled. It works when I open an incognito window and I manually navigate to the URL, I am getting asked for a username and password. However, when I run the same scenario from protractor (so still using incognito and the same URL), I am getting logged in automatically.
Anybody has any suggestions? Does it have something to do with the chrome profile that is getting loaded? I am new to this, so any suggestion is welcomed. Thank you!
My capabilities section of the config:
config.capabilities = {
browserName: 'chrome',
chromeOptions: {
args: ['disable-infobars',"--incognito","--log-level=3","--disable-gpu", "--window-size=1600,1200"]
},
//shardTestFiles: true,
//maxInstances: 3,
deviceProperties:{
browser: {
name: 'chrome',
version: 'latest'
},
platform: {
name: 'Windows',
version: '10'
}
}
}