I have two monitors and every time I run puppeteer.launch()
in non-headless mode, it sent the browser to the monitor on left. It is annoying as left monitor is my main monitor where I write code with. Can I set a parameter so that it'll send browser to my right monitor? I've search its API but couldn't find such parameter. Thanks in advance.
Asked
Active
Viewed 3,028 times
3

Jake
- 71
- 2
- 8
-
2Maybe this can help: https://stackoverflow.com/a/27957436/2625560 – vsemozhebuty Mar 19 '20 at 14:50
-
9Brilliant!!! It worked! For reference, the exact syntax is `let browser = await puppeteer.launch({ headless: false, args: ["--window-size=1920,1080", "--window-position=1921,0"] })` – Jake Mar 19 '20 at 17:22