Search code examples
angularjsfirefoxprotractordesiredcapabilities

Protractor start with screen maximised firefox


I'm currently using the desired capability --start-maximized for chrome. Is there an equivalent option for firefox?

Thanks!


Solution

  • Here is how I managed to solve it. I added to the onPrepare function in my protractor.conf.js the following,

    (function() {browser.driver.manage().window().maximize();})();
    

    This works for both firefox and chrome :)