OnetapInc / chromy

Chromy is a library for operating headless chrome. 🍺🍺🍺
MIT License
605 stars 41 forks source link

Chrome instance viewport size #125

Closed mmendjeli closed 4 years ago

mmendjeli commented 4 years ago

Hi, Is there a way to open the chrome instance with a specific viewport size? I cannot found any options related. thanks

mmendjeli commented 4 years ago

seems just need to add it in the chromeFlags

let chromy = new Chromy({"port":port, chromeFlags: ['--window-size=640,480']})