I currently have protractor setup to run on our integration server. Inside the protractor.conf.js file i have the following:
multiCapabilities: [{
'browserName': 'firefox',
'platform': 'MAC'
}, {
'browserName': 'chrome',
'platform': 'MAC'
}]
I would like to override this when running locally from the command line. I've tried the following with no success
protractor --verbose --browser=chrome
Question: How do i switch to only using a single instance of chrome when running locally from the command line?
This is a problem.
According to the source code,
browser
command line argument is an alias ofcapabilities.browserName
.According to the
referenceConf.js
documentation:In other words, since
multiCapabilities
are specified,capabilities
are ignored.What you can try to do is to reset
multiCapabilities
from command-line:As an another workaround, have a separate config file for running a single browser instance.
Also, list of related topics: