In a previous post (enter link description here) the following code (by DebanjanB)
# install firefox, geckodriver, and selenium
!apt-get update
!pip install sel
After all the discussion within the comments it seems you erred the command to download GeckoDriver and possibly some issues with downloading and/or installing Firefox.
The command to install geckodriver within ubuntu was error prone:
!apt install firefox-geckodriver
Here are the detailed steps:
Browse to the geckodriver releases page. Checkout the compatible version of GeckoDriver for your platform and download it as follows:
wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
Extract the file with:
tar -xvzf geckodriver*
Make it executable:
chmod +x geckodriver
Add the driver to your PATH so other tools can find it:
export PATH=$PATH:/path-to-extracted-file/.
Reference: How to install geckodriver in Ubuntu?
The latest version of Firefox is always available as a security updates in all supported releases of Ubuntu and a normal update will install it. You need to enable the security or you need to update the repositories (e. g. Software & Updates
-> Updates
). You need to enable the Security
by default but better to check if the package manager doesn't updates Firefox by default.
You can find the detailed steps in:
Reference: How do I install the latest stable version of Firefox?
Selenium Client Driver page mentions:
Supported Python Versions:
Python 2.7, 3.4+
But the list on selenium 3.141.0 page includes only:
So possibly Python 3.7 is still not supported and you may have to downgrade to a relevant version.
SessionNotCreatedException: Message: Unable to create new service: ChromeDriverService with Selenium 3.14.0 and Python 3.7.3