Skip to main content
removed additional "e", made "useExisting" italic, replaced "fuller" with more verbose to fullfil the min 6 chars to edit the answer, revert if anyone wants to
Source Link

Tor Browser is eessentiallyessentially Firefox, with a couple of patches. I don't think that the patches would affect the use of Selenium when compared to normal Firefox.

The Selenium documentation shows how to create a Firefox based WebDriver project.

The FirefoxDriver in particular can take parameters to the location of Firefox, and the profile to use. You should update these to point to the TorBrowser. The useExistinguseExisting flag looks promising for once you've started the Tor Browser Bundle.

I haven't tested any of this, but I expect this is enough to point you in the right direction. I expect someone else will come along and contribute a fullermore verbose answer.

Tor Browser is eessentially Firefox, with a couple of patches. I don't think that the patches would affect the use of Selenium when compared to normal Firefox.

The Selenium documentation shows how to create a Firefox based WebDriver project.

The FirefoxDriver in particular can take parameters to the location of Firefox, and the profile to use. You should update these to point to the TorBrowser. The useExisting flag looks promising for once you've started the Tor Browser Bundle.

I haven't tested any of this, but I expect this is enough to point you in the right direction. I expect someone else will come along and contribute a fuller answer.

Tor Browser is essentially Firefox, with a couple of patches. I don't think that the patches would affect the use of Selenium when compared to normal Firefox.

The Selenium documentation shows how to create a Firefox based WebDriver project.

The FirefoxDriver in particular can take parameters to the location of Firefox, and the profile to use. You should update these to point to the TorBrowser. The useExisting flag looks promising for once you've started the Tor Browser Bundle.

I haven't tested any of this, but I expect this is enough to point you in the right direction. I expect someone else will come along and contribute a more verbose answer.

Source Link
Megan Walker
  • 2.6k
  • 1
  • 22
  • 30

Tor Browser is eessentially Firefox, with a couple of patches. I don't think that the patches would affect the use of Selenium when compared to normal Firefox.

The Selenium documentation shows how to create a Firefox based WebDriver project.

The FirefoxDriver in particular can take parameters to the location of Firefox, and the profile to use. You should update these to point to the TorBrowser. The useExisting flag looks promising for once you've started the Tor Browser Bundle.

I haven't tested any of this, but I expect this is enough to point you in the right direction. I expect someone else will come along and contribute a fuller answer.