Can't connect to Tor-Firefox via Watir

后端 未结 1 1893
旧时难觅i
旧时难觅i 2021-01-19 12:26

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 canno

相关标签:
1条回答
  • 2021-01-19 12:56

    The answer:

    First, open the Tor browser (it needs to be running already). Then, in your code, make sure to simply start with:

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

    *In my case: /home/tor/tor-browser_en-US/start-tor-browser

    Nothing else is required - don't bother messing with profile

    0 讨论(0)
提交回复
热议问题