Closed chengxiao closed 3 years ago
Please add a valid **Rod Version:** v0.0.0
to your issue. Current version is v0.85.9
generated by check-issue
Better to use Page.MustWindowFullscreen
: #274
You have to remove no-startup-window
flag to use start-fullscreen
, chrome team should doc it:
func main() {
u := launcher.New().
Headless(false).
Set("start-fullscreen").
Delete("no-startup-window").
MustLaunch()
browser := rod.New().ControlURL(u).MustConnect().NoDefaultDevice()
browser.MustPage("http://example.com")
utils.Pause()
}
not work in rod, but it worked in chromedp
How can I set the chrome fullscreen or set the window size?