Protractor - Change Browser Capabilities at RunTime -


is there way change browser capabilities within beforeeach of protractor suite. need set capabilities.name attribute before each spec execution.

to create separate instances of desired capabilities, such capabilities.name, want try multicapabilities option available via protractor. example similar below , reside in conf.js file. allows submit unique name each test session.

  onprepare: function(){   var caps = browser.getcapabilities()   },    multicapabilities: [{     browsername: 'firefox',     version: '32',     platform: 'os x 10.10',     name: "firefox-tests",     shardtestfiles: true,     maxinstances: 25   }, {     browsername: 'chrome',     version: '41',     platform: 'windows 7',     name: "chrome-tests",     shardtestfiles: true,     maxinstances: 25   }], 

a complete example of can seen here:

https://github.com/saucelabs-sample-test-frameworks/js-cucumberjs-protractor3.0/blob/master/conf.js


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -