Tal Angel
Tal Angel

Reputation: 1780

Launch page on second monitor does not maximize

I am working on 2 monitors and running Puppeteer tests.

I am using this code in order to open the browser on my 2nd monitor:

 const browser = await puppeteer.launch({

    args: ['--window-position=1920,0','--start-maximized',
     '--disable-web-security',
      '--disable-features=IsolateOrigins,site-per-process','--disable-infobars']});

The browser does open on my 2nd monitor, but it is Not maximized.

How to make it open in maximized mode?

Upvotes: 1

Views: 312

Answers (1)

Tal Angel
Tal Angel

Reputation: 1780

Adding

--start-fullscreen

Did the trick.

Upvotes: 2

Related Questions