How Do I Overwrite Protractor.conf.js Values From The Command Line?
I currently have protractor setup to run on our integration server. Inside the protractor.conf.js file i have the following: multiCapabilities: [{ 'browserName': 'firefox',
Solution 1:
This is a problem.
According to the source code, browser
command line argument is an alias of capabilities.browserName
.
According to the referenceConf.js
documentation:
// If you would like to run more than one instance of WebDriver on the same
// tests, use multiCapabilities, which takes an array of capabilities.
// If this is specified, capabilities will be ignored.
multiCapabilities: [],
In other words, since multiCapabilities
are specified, capabilities
are ignored.
What you can try to do is to reset multiCapabilities
from command-line:
protractor --verbose --browser=chrome --multiCapabilities
As an another workaround, have a separate config file for running a single browser instance.
Also, list of related topics:
Post a Comment for "How Do I Overwrite Protractor.conf.js Values From The Command Line?"