hound icon indicating copy to clipboard operation
hound copied to clipboard

Retrieve DevTools port from ChromeDriver session

Open thelightcosine opened this issue 8 years ago • 2 comments

Currently when starting a new session the chrome instance is spawned with the remote-debugging-port set to a random high port. There is no way, aside from searching through ChromeDriver logs, to retrieve what port was passed to DevTools. I need to be able to tell an external 3rd party program how to talk to the Chrome session hound has opened.

thelightcosine avatar Feb 01 '18 20:02 thelightcosine

You can set --verbose with the driver, but you can also use --remote-debugging-port=xxxx, but i couldn't get it to talk between the driver and hound when i did that.

fantypants avatar Feb 06 '18 02:02 fantypants

If you pass the --remote-debugging-port option the whole thing just hangs and Hound craps out. I'm fine with the randomly selected port, but I need a way to programmatically access what that port is.

thelightcosine avatar Feb 20 '18 16:02 thelightcosine