1

I have a Selenium script that controls a Tor browser. However, I'm unable to use the functionality 'New Tor Circuit for this site' even by sending the Ctrl+Shift+L combination to the browser.

Can someone explain how I can achieve this?

For reference, I'm using C# with the OpenQA Selenium package

numX
  • 830
  • 7
  • 24

1 Answers1

1

The "new circuit" is a Tor Browser behaviour, you can't "launch" it with Selenium, Selenium just acts on the viewport.

But you can anyway launch a terminal command programmatically.

Take a look here

or there: link

  • this is for launching a new identity, could you please provide the code to change circuit? and the windows command if possible – numX Feb 13 '21 at 14:55
  • One more thing, this doesn't seem to work on certain sites whilst the 'Change tor circuit for this site' button does. Is there any further functionality I need to add? – numX Feb 14 '21 at 18:56
  • No, I just get OK responses from the control port. I suspect it has something to do with the circuit being marked as dirty but not being terminated, if that makes sense? – numX Feb 16 '21 at 05:42
  • #NumX i don't think so...i'm sorry but i can't do more than this, i've not completely understood what's happening –  Feb 17 '21 at 12:26