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
Headless(true|false) has no effect on the browser here. The browser is always shown
package main
import (
"github.com/go-rod/rod""github.com/go-rod/rod/lib/launcher"
)
funcmain() {
// make sure target browser is closedpath:="/usr/bin/chromium"// launch installed browserwsURL:=launcher.NewUserMode().Bin(path).Headless(true).MustLaunch()
// connect to the browserbrowser:=rod.New().ControlURL(wsURL).MustConnect().NoDefaultDevice()
browser.MustPage("http://127.0.0.1:80/#")
}
What you got
The browser always shown
What you expect to see
The browser shown or hidden based on the flag
What have you tried to solve the question
Such as after modifying some source code of Rod you are able to get rid of the problem.
The text was updated successfully, but these errors were encountered:
2 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Above] [Context: "## The code to demonstrate your question"]
You are probably using the last browser. UserMode is a raw mode, you literally have to manage everything, if you don't close the browser, it will remain open. In this mode, rod will not help you to close the browser.
Rod Version: v0.116.2
The code to demonstrate your question
Headless(true|false)
has no effect on the browser here. The browser is always shownWhat you got
The browser always shown
What you expect to see
The browser shown or hidden based on the flag
What have you tried to solve the question
Such as after modifying some source code of Rod you are able to get rid of the problem.
The text was updated successfully, but these errors were encountered: