TestProject Forum

General => Selenium => Topic started by: DavidM on July 20, 2016, 20:06:25 pm

Title: Run ui tests with different window resolutions with protractor
Post by: DavidM on July 20, 2016, 20:06:25 pm
Can i launch multiple simultaneous tests each time with a different browser resolution ?
Title: Re: Run ui tests with different window resolutions with protractor
Post by: Oren 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']
}]