javascript - How do i overwrite protractor.conf.js values from the command line? -


i have protractor setup run on our integration server. inside protractor.conf.js file have following:

 multicapabilities: [{     'browsername': 'firefox',     'platform': 'mac'   }, {     'browsername': 'chrome',     'platform': 'mac'   }] 

i override when running locally command line. i've tried following no success

protractor --verbose --browser=chrome 

question: how switch using single instance of chrome when running locally command line?

this problem.

according source code, browser command line argument alias of capabilities.browsername.

according referenceconf.js documentation:

// if run more 1 instance of webdriver on same // tests, use multicapabilities, takes array of capabilities. // if specified, capabilities ignored. multicapabilities: [], 

in other words, since multicapabilities specified, capabilities ignored.


what can try reset multicapabilities command-line:

protractor --verbose --browser=chrome --multicapabilities 

as workaround, have separate config file running single browser instance.


also, list of related topics:


Comments

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -

python - How to remove the Xframe Options header in django? -