In windows OS, the browsers launched perfectly with the below configuration. But in MAC chrome browser is not fully maximized.
My Config File:
config.framework = 'jasmine2';
config.allScriptsTimeout = timeout;
config.getPageTimeout = timeout;
config.jasmineNodeOpts.isVerbose = true;
config.jasmineNodeOpts.defaultTimeoutInterval = timeout;
config.specs = [
'qa/**/*Spec.js'
];
config.multiCapabilities = [{
browserName: 'chrome',
shardTestFiles: true,
maxInstances: 17,
'chromeOptions': {
'args': ['start-maximized']
}
}];
Environment Details:
You could also add start-fullscreen argument in your chrome options instead of using browser.driver.manage().window().maximize()
.
I was having the same issue and this resolved it on Mac.
chromeOptions: {
args: [
'--start-fullscreen'
]
}
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With