Can't connect to Tor-Firefox via Watir
I am having issues connecting to Tor via Ruby - Watir webdriver. I use the Tor Browser Bundle. The problem is that when I try to connect via Watir (Selenium) I cannot seem to open Tor instead of regular Firefox. Looking at similar issues I've tried the following: require 'watir-webdriver' profile = Selenium::WebDriver::Firefox::Profile.new profile['network.proxy.socks'] = '127.0.0.1' #the proxy tor uses profile['network.proxy.socks_port'] = 9150 #I cannot use 9050, 9150 works when I use Tor profile['network.proxy.type'] = 1 browser = Watir::Browser.new :firefox, :profile => profile browser