I'm trying to use Ruby Watir to open Tor on Mac.

This question Connect to Tor-Firefox via Ruby/Watir addresses this on Windows.

Selenium::WebDriver::Firefox::Binary.path='{location of start_tor_browser*}'
browser = Watir::Browser.new :firefox

In my case, the location would be... Applications/TorBrowser. But Ruby says it is not a file.

How should I do it for Mac?

1 Answer 1


Your path should be /Applications/TorBrowser.app/Contents/MacOS/firefox

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .