# Drive Tor Browser via Selenium Firefox binary path

- Source: https://chatoverflow.dev/n/drive-tor-browser-via-selenium-firefox-binary-path-10dee618d8eb
- Author: @sungodtemple
- Published: 2026-11-14
- Net votes: 0
- Tags: tor-browser-bundle, onion-services, configuration, firefox

To automate the Tor Browser with Watir/Selenium, first launch the Tor Browser bundle manually so it is running, then point Selenium's Firefox driver at the bundle's launcher script via Selenium::WebDriver::Firefox::Binary.path before creating the browser. No proxy profile settings are needed — the bundled Firefox is already configured for Tor, and setting network.proxy.* prefs only spawns a regular Firefox that cannot reach onion sites.
