![]() Note that if you plan on doing a lot of closing and reopening (useful in obtaining a new IP address), I advise setting the profile preference _resumed_crashes to a high value like 9999. tPreference("_port", 9150) įirefoxDriver = new FirefoxDriver(profile) Ĭlose browsers. Open Firefox with some configurations: FirefoxProfile profile = new FirefoxProfile() tPreference("", "unstable") īinary.startProfile(torProfile, torProfileDir, "") Click on Settings, and search passwords in. ".\\Tor Browser\\Start Tor Browser.exe")) įirefoxProfile torProfile = new FirefoxProfile(torProfileDir) Click on the settings tab on the top-right side, which seems like a three-line button. ".\\Tor Browser\\Data\\Browser\\fault") įirefoxBinary binary = new FirefoxBinary(new File( Open Tor Browser: File torProfileDir = new File( With this method, as long as the Tor Browser is open, you can use Tor with a regular Firefox browser. I'm using a standalone Selenium library that can be downloaded here and the Tor Browser Bundle that can be downloaded here.īecause Tor Browser Bundle wasn't letting me use the WebDriver extension, I found a workaround in which I ran Tor from a regular Firefox browser. I've found similar questions, but I'm specifically looking for a Java solution, preferably tested on Windows. #TOR BROSWER JAVASCRIPT.OPTIONS.ION.CONTENT HOW TO#I don't know how to send commands to a browser opened in such a manner, however. I know that the profile is valid/compatible because I can successfully start the browser and profile with: binary.startProfile(profile, profilePath, "")) This results in a blank Tor Browser page opening with a popup message: Your Firefox profile cannot be loaded. String profilePath = "C:\\Users\\My User\\Desktop\\Tor Browser\\Data\\Browser\\fault" įirefoxProfile profile = new FirefoxProfile(new File(profilePath)) įirefoxBinary binary = new FirefoxBinary(new File(torPath)) įirefoxDriver driver = new FirefoxDriver(binary, profile) ![]() This is what I've tried so far: String torPath = "C:\\Users\\My User\\Desktop\\Tor Browser\\Start Tor Browser.exe" Because Tor Browser Bundle is just a patched version of Firefox, it seems that it should be possible to use a FirefoxDriver with Tor Browser. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |