Selenium Stopped Working 2019 Python Selenium Geckodriver Sock Error: Cannot Connect/Create Connection to Browser

I recently upgraded Firefox to the latest build.

Then, my geckodriver binary stopped working in Python.

1
2
3
4
5
6
7
8
firefox --version
Mozilla Firefox 71.0

python --version
Python 3.8.0

/bin/geckodriver --version
geckodriver 0.24.0

The main problem, I had an outdated Geckodriver version (from the distro repo)

1
2
3
sudo pacman -R geckodriver
/bin/geckodriver --version
bash: /bin/geckodriver: No such file or directory

Find the latest version

https://github.com/mozilla/geckodriver/releases/

1
2
3
4
5
6
7
8
9
10
cd /opt
sudo wget https://github.com/mozilla/geckodriver/releases/download/v0.26.0/geckodriver-v0.26.0-linux64.tar.gz

sudo tar -xzvf geckodriver.tar.gz && rm -f geckodriver.tar.gz

sudo chmod +x geckodriver

sudo chmod 755 geckodriver

sudo cp geckodriver /bin/geckodriver

Geckordriver should be updated to the latest version:

geckodriver --version
geckodriver 0.26.0

Leave a Reply

Your email address will not be published. Required fields are marked *