TestArmada / magellan

Large Scale Automated Testing for Mocha, Nightwatch, Appium, Nodejs, etc
MIT License
287 stars 44 forks source link

"resolution" config property not working for local runs #165

Closed m2hd1 closed 7 years ago

m2hd1 commented 7 years ago

Hi there,

Is there a way to set the browser resolution from the magellan config file for local runs ? I added the resolution property as follows but it didn't work for me: "resolution": "480x1024" I also tried to add the "profiles" property but that didn't help either

"profiles": {
    "default": [
      { "browser": "chrome", "resolution": "480x1024" }
    ]
  }

even the --resolution=480x1024 switch is not working

Thank you !

Maciek416 commented 7 years ago

The resolution property doesn't work locally because it's intended to set the resolution of the entire screen of the virtual machine being requested from providers like Saucelabs. If you want to set the size of the browser you'll need to use the browser resize commands in Nightwatch or wd/wdio in the body of your actual tests.

m2hd1 commented 7 years ago

That makes sense, thank you @Maciek416 !