geckodriver icon indicating copy to clipboard operation
geckodriver copied to clipboard

Is it possible to control Tor?

Open ottogutierrez opened this issue 1 year ago • 11 comments

Hello,

Is it possible to control Tor browser with the geckodriver?

I have tried to open it listing the tor binary location (in options) but it opens the browser and doesn't control it.

ottogutierrez avatar Sep 22 '22 03:09 ottogutierrez

Could you please attach a trace-level log from geckodriver? It could help us to identify the issue. Basically geckodriver should be able to. Thanks!

whimboo avatar Sep 22 '22 08:09 whimboo

I've tried yesterday myself and as it looks like Marionette and Remote Agent (WebDriver BiDi) get both enabled but they seem to get stuck somewhere. It's also hard to tell where exactly given that I'm not able to get any valid log output with remote.log.level=Trace set.

I think that there might be some conversation needed with the creators of the Tor browser first.

This wouldn't be on our priority list but if you could reach out we are happy to assist.

whimboo avatar Sep 23 '22 06:09 whimboo

FWIW, I could successfully connect using a WebDriver BiDi client to the latest alpha release from Tor (12.0a2) which is based on ESR102. I managed to connect via websocket, create a session, open a tab etc... so it seems to work fine. The regular release is still based on ESR91 so we won't be able to do much with BiDi with this one.

juliandescottes avatar Oct 12 '22 07:10 juliandescottes

I think the question here was more about Marionette due to the usage of geckodriver. Good hint anyway to use a later build of Tor. I wonder if Marionette works as well in the 102 ESR alpha release. Could you run a check for that @juliandescottes?

whimboo avatar Oct 13 '22 21:10 whimboo

Just tried, and I could successfully connect with geckodriver & use marionette. However I also managed to connect to Tor 11.5.2, so maybe there is a configuration issue that both you and the reporter face, and which doesn't occur on my machine?

juliandescottes avatar Oct 14 '22 11:10 juliandescottes

Thanks for your help @juliandescottes! As I'm new to this, as a workaround, launched Firefox and used the proxy that Tor creates.

Would you be able to share how you got it to work with Tor?

Thank you!

ottogutierrez avatar Oct 24 '22 19:10 ottogutierrez