-
-
Notifications
You must be signed in to change notification settings - Fork 430
Open
Description
Describe the bug
When launching a browser with go-rod on Linux, the "Unlock Login Keyring" password prompt appears and blocks the program. This happens despite using all known flags intended to prevent it, including --password-store=basic, --use-mock-keychain, and a clean UserDataDir. The flags appear to have no effect.
I don't use stealth pkg.
To Reproduce
func main() {
userDataDir, _ := os.MkdirTemp("", "rod-user-data-*")
defer os.RemoveAll(userDataDir)
l := launcher.New().
UserDataDir(userDataDir).
Set("password-store", "basic").
Set("use-mock-keychain").
Headless(true)
log.Println("Attempting to launch browser...")
// Execution blocks here due to the OS password prompt.
controlURL := l.MustLaunch()
browser := rod.New().ControlURL(controlURL).MustConnect()
defer browser.MustClose()
log.Println("This log message is never reached without manual intervention.")
}This program hangs at l.MustLaunch() until the popup is manually dismissed.
Expected Behavior
The browser should launch without any OS-level password prompts. The automation script should run uninterrupted.
System Environments
- Rod Version: v0.116.2
- Go Version: 1.23.11
- OS: Void Linux
- Desktop Environment: Xfce
Possible cause
"--password-store=basic works, as long as you don't use ignoreDefaultArgs: ["--enable-automation"]" Stackoverflow
maybe go-rod uses some stealth by default?
Metadata
Metadata
Assignees
Labels
No labels