How to initiate a Tor Browser 9.5 which uses the default Firefox to 68.9.0esr using GeckoDriver and Selenium through Python

I managed to resolve this by updating to v9.5.1 and implementing the following changes: Note that although the code is in C# the same changes to the Tor browser and how it is launched should be applied. FirefoxProfile profile = new FirefoxProfile(profilePath); profile.SetPreference(“network.proxy.type”, 1); profile.SetPreference(“network.proxy.socks”, “127.0.0.1”); profile.SetPreference(“network.proxy.socks_port”, 9153); profile.SetPreference(“network.proxy.socks_remote_dns”, false); FirefoxDriverService firefoxDriverService = FirefoxDriverService.CreateDefaultService(geckoDriverDirectory); firefoxDriverService.FirefoxBinaryPath … Read more

ModuleNotFoundError: No module named ‘webdriver_manager’ error even after installing webdrivermanager

Update (thanks to Vishal Kharde) The documentation now suggests: pip install webdriver-manager Solution: Install it like that: pip install webdriver_manager instead of pip install webdrivermanager. Requirements: The newest version, according to the documentation supports python 3.6 or newer versions: Reference: https://pypi.org/project/webdriver-manager/

How to set up working X11 forwarding on WSL2 [closed]

TL;DR: Add the following to your ~/.bashrc: export DISPLAY=$(ip route list default | awk ‘{print $3}’):0 export LIBGL_ALWAYS_INDIRECT=1 Enable Public Access on your X11 server for Windows.* Add a separate inbound rule for TCP port 6000 to the windows firewall in order to allow WSL access to the X server, as described by the wsl-windows-toolbar-launcher … Read more