'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?
Solution 1:[1]
Adding
--start-fullscreen
Did the trick.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Tal Angel |
