You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OS: Ubuntu 24.04 Chromium version: 131.0.6778.264-r0 Go version: 1.23.3
Rod does not create a new page nor does it report an error. My whole program gets stuck after calling the *rod.Browser.Page method.
Function creating the browser:
// browserWrapper is an abstraction over the rod launcher and browser types.typebrowserWrapperstruct {
browser*rod.Browserlauncher*launcher.Launcher
}
// newBrowserWrapper creates an instance of *browserWrapper and launches a new browser.// The environment is checked for a 'BROWSER' variable with a path to a supported browser. If not found, rod// downloads a browser and takes over.funcnewBrowserWrapper(headlessbool) (*browserWrapper, error) {
wrapper:=new(browserWrapper)
ifbrowserPath, ok:=os.LookupEnv("BROWSER"); ok {
wrapper.launcher=launcher.New().Bin(browserPath)
} else {
wrapper.launcher=launcher.New()
}
wrapper.launcher=wrapper.launcher.Headless(headless)
controlURL, err:=wrapper.launcher.Launch()
iferr!=nil {
returnnil, err
}
wrapper.browser=rod.New().ControlURL(controlURL)
err=wrapper.browser.Connect()
returnwrapper, err
}
This is how a new page is provisioned:
funcLoginFunc(wrapper*browserWrapper) error {
// program gets stuck at this function call.page, err:=wrapper.browser.Page(proto.TargetCreateTarget{})
iferr!=nil {
returnerr
}
returnnil
}
The text was updated successfully, but these errors were encountered:
Rod Version: v0.116.2
OS: Ubuntu 24.04
Chromium version: 131.0.6778.264-r0
Go version: 1.23.3
Rod does not create a new page nor does it report an error. My whole program gets stuck after calling the
*rod.Browser.Page
method.Function creating the browser:
This is how a new page is provisioned:
The text was updated successfully, but these errors were encountered: