Run ui tests with different window resolutions with protractor

  • 1 Replies
  • 1732 Views
Can i launch multiple simultaneous tests each time with a different browser resolution ?

*

Oren

  • **
  • 59
Re: Run ui tests with different window resolutions with protractor
« Reply #1 on: July 21, 2016, 18:50:15 pm »
Your best bet would be to add multiCapabilities in config:

Code
multiCapabilities: [
{
   'browserName': 'chrome',
   'chromeOptions' : {
       args: ['--lang=en',
              '--window-size=1920,1080']
   },

   specs: ['specs.js']
},
{
   'browserName': 'chrome',
   'chromeOptions' : {
    args: ['--lang=en',
           '--window-size=1680,1050']
    },

   specs: ['specs.js']
},
{
   'browserName': 'chrome',
   'chromeOptions' : {
    args: ['--lang=en',
           '--window-size=1600,900']
    },
   specs: ['specs.js']
}]

 

Sitemap 1 2 3 4 5 6 7 8