selenium - Can't connect to Tor-Firefox via Watir -
selenium - Can't connect to Tor-Firefox via Watir -
i having issues connecting tor via ruby - watir webdriver.
i utilize tor browser bundle. problem when seek connect via watir (selenium) cannot seem open tor instead of regular firefox.
looking @ similar issues i've tried 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 utilize 9050, 9150 works when utilize tor profile['network.proxy.type'] = 1 browser = watir::browser.new :firefox, :profile => profile browser.goto [an .onion website]
when utilize before-mentioned code nonetheless still open normal firefox browser, , cannot connect onion sites.
any thoughts? there way in need connect tor browser webdriver profile?
the answer:
first, open tor browser (it needs running already). then, in code, create sure start with:
selenium::webdriver::firefox::binary.path='{location of start_tor_browser*}' browser = watir::browser.new :firefox
*in case: /home/tor/tor-browser_en-us/start-tor-browser
nothing else required - don't bother messing profile
firefox selenium watir watir-webdriver tor
Comments
Post a Comment