我的配置文件只是启动 1 个 chrome 实例。我期待它打开 2。这是我的配置多功能。
multiCapabilities: [
{
browserName: 'chrome',
logName: 'Chrome - Suite 1',
shardTestFiles: false,
maxInstances: 1,
maxSessions: 1,
specs: ['test/protractor/test.js']
},
{
browserName: 'Chrome',
logName: 'Chrome - Suite 2',
shardTestFiles: false,
maxInstances: 1,
maxSessions: 1,
specs: ['test/protractor/test2.js']
}
],
现在我面临如下错误:
/usr/local/lib/node_modules/protractor/node_modules/selenium-
webdriver/lib/error.js:546
throw new ctor(message);
^
SessionNotCreatedError: Unable to create session from {
"desiredCapabilities": {
"specs": [
"test\u002fprotractor\u002ftest2.js"
],
"maxSessions": 1,
"logName": "Chrome - Suite 2",
"count": 1,
"browserName": "Chrome",
"maxInstances": 1,
"shardTestFiles": false
},
"capabilities": {
"firstMatch": [
{
"browserName": "Chrome"
}
]
}
}
Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-
11
14T08:25:53'
System info: host: 'Siva.local', ip:
'fe80:0:0:0:4b7:1bb3:a4c7:925f%en0', os.name: 'Mac OS X', os.arch:
'x86_64', os.version: '10.14', java.version: '1.8.0_131'
Driver info: driver.version: unknown
非常欢迎任何帮助使其启动 2 个实例。