go-rod / rod

A Chrome DevTools Protocol driver for web automation and scraping.
https://go-rod.github.io
MIT License
5.25k stars 345 forks source link

Get ws connection string from managed go-rod remote instance. #979

Closed pspsdev closed 10 months ago

pspsdev commented 10 months ago

Rod Version: v0.114.5

What have you tried to solve the question

When launching browser you can get ws url from argument U here:

rod.New().ControlURL(u)

When launching browser via managed rod:

rod.New().Client(launcher.MustClient())

wsUrl is not available. Is there any other way to get wsUrl from a browser that was launched via remote managed rod so that other applications can connect to that browser?

ysmood commented 10 months ago

322

pspsdev commented 10 months ago

@go-rod/everyone

github-actions[bot] commented 10 months ago

Please fix the format of your markdown:

6 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
6 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
11 MD031/blanks-around-fences Fenced code blocks should be surrounded by blank lines [Context: "```"]
11 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]

generated by check-issue