webfp / tor-browser-selenium

Tor Browser automation with Selenium.
MIT License
548 stars 100 forks source link

Invalid Firefox binary #101

Closed Lukinnno closed 6 years ago

Lukinnno commented 6 years ago

Hi, could you please give me an example of correct "tbb_fx_binary_path" for windows? I have this error: Traceback (most recent call last): File "C:/Python36/Moje/webTest/Tor2.py", line 10, in with TorBrowserDriver("I:\Tor\Tor Browser\") as driver: File "C:\Python36\lib\site-packages\tbselenium\tbdriver.py", line 44, in init tbb_profile_path, tor_data_dir) File "C:\Python36\lib\site-packages\tbselenium\tbdriver.py", line 124, in setup_tbb_paths % tbb_fx_binary_path) tbselenium.exceptions.TBDriverPathError: Invalid Firefox binary I:\Tor\Tor Browser\Browser\firefox

DKanarsky commented 6 years ago

Had the same issue. You should change tbselenium.common.DEFAULT_TBB_FX_BINARY_PATH value to join('Browser', 'firefox.exe'). Now it is: join('Browser', 'firefox') and the code isfile("...\Browser\firefox") returns False, but it is a file, not directory and must return True.

gunesacar commented 6 years ago

@DKanarsky was that the only change you have to make tbselenium work on Windows? Trying to get a sense of how hard it is to add Windows compatibility.

gunesacar commented 6 years ago

Windows is not supported at the moment.

Crisfon6 commented 3 years ago

i have the same problem on ubuntu 20.04

f-tepel commented 1 year ago

Did you manage to fix it @Crisfon6 ?