Open
Description
hi there,
Been a user for quite a while, thanks for all the work done here, appreciated it.
Looking how to configure it using ubuntu wsl, I have a small snippet but nothing works, any help is much appreciate it.
package main
import (
"fmt"
"github.com/go-rod/rod"
"github.com/go-rod/rod/lib/launcher"
)
func main() {
u := launcher.New().
UserDataDir("/tmp/rod").
Bin("/mnt/c/Program Files/Google/Chrome/Application/chrome.exe").
MustLaunch()
fmt.Println("[!] getting launcher running")
rod.New().
ControlURL(u).
NoDefaultDevice().
MustConnect().
MustPage("https://pase.example.com/login")
}
Error:
> go run ./main.go -rod=trace
panic: [launcher] Failed to get the debug url:
goroutine 1 [running]:
github.com/go-rod/rod/lib/utils.glob..func2({0x786a20?, 0xc0000460f0?})
/home/jolea/.gvm/pkgsets/go1.21/global/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:68 +0x1d
github.com/go-rod/rod/lib/utils.E(...)
/home/jolea/.gvm/pkgsets/go1.21/global/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:74
github.com/go-rod/rod/lib/launcher.(*Launcher).MustLaunch(0xc0001a8e70?)
/home/jolea/.gvm/pkgsets/go1.21/global/pkg/mod/github.com/go-rod/[email protected]/lib/launcher/launcher.go:401 +0x62
main.main()
/home/user/Script/rod/test/main.go:13 +0x85
exit status 2
I also tried using a ws, still the same issue.
Activity