当我尝试将它与Tor Project一起使用时,我的selenium 3.0出现了一个大问题。我已经使用Selenium启动了Tor浏览器,但是如果我尝试从选择元素中选择一个选项,它根本不起作用。我认为Marionette不和Tor合作,有人设法运行它吗?
System.setProperty("webdriver.gecko.driver", "/Users/alixmuselmann/Documents/**/**/**/**/geckodriver");
String torPath = "/Users/alixmuselmann/Downloads/TorBrowser.app/Contents/MacOS/firefox";
String profilePath = "/Users/alixmuselmann/Library/Application Support/TorBrowser-Data/Browser/nsqp6dzx.default";
File torProfileDir = new File(profilePath);
FirefoxBinary binary = new FirefoxBinary(new File(torPath));
FirefoxProfile torProfile = new FirefoxProfile(torProfileDir);
FirefoxDriver driver = new FirefoxDriver();