start browsers minimized? #1415
Replies: 3 comments
-
That would be really helpful! One way to keep it minimized seems to be by setting the defaultViewPort to null and/or the width and height to a very small value as described in the puppeteer launch options, but I'm not able to make it run. Did anyone try this already? |
Beta Was this translation helpful? Give feedback.
-
while checking chromium docs, I noticed a few command line options which might do the trick: --ash-host-window-bounds ⊗ | Sets a window size, optional position, and optional scale factor. "1024x768" creates a window of size 1024x768. "100+200-1024x768" positions the window at 100,200. "1024x768*2" sets the scale factor to 2 for a high DPI display. "800,0+800-800x800" for two displays at 800x800 resolution. "800,0+800-800x800,0+1600-800x800" for three displays at 800x800 resolution. ↪
|
Beta Was this translation helpful? Give feedback.
-
in fact if indeed the switches work, maybe you can just let people pick whatever value in the config file... for instance in my case, I just move the window to the bottom of my screen and just let the tab titles stick out while the rest remain hidden... |
Beta Was this translation helpful? Give feedback.
-
just an idea....
it would be interesting to see if, while runing headless=false, you could have the script start the browser and keep the tab minimized....
Beta Was this translation helpful? Give feedback.
All reactions