0

I am having hard time maximizing chrome browser using theintern/leadfoot command maximize.

I tried maximize window .maximizeWindow() (it works for firefox but not for chrome browser. I even tried execute("window.resizeTo(14400, 8130);") and setWindowSize("", 1440, 813);

Has any one tried a different approach?

AlexLordThorsen
  • 8,057
  • 5
  • 48
  • 103
User987
  • 1
  • 1

1 Answers1

0

You can add Chrome commandline argument --start-maximized, you can pass it in chromeOptions

{
    browserName: 'chrome',
    chromeOptions: {
        args: [
            'start-maximized'
        ]
    }
}
muzuiget
  • 1,057
  • 1
  • 10
  • 11