Good Day, I\'ve done a number of searches on here and google and yet to find a solution that address this problem.
The scenario is:
I have a Python script (
Try this, for Ubuntu 16.04:
firefoxsudo apt update
sudo apt install firefox
firefox is well installedwhich firefox
Will return /usr/bin/firefox
geckodriver releases page. Find the latest version of the driver for your platform and download it. For example:wget https://github.com/mozilla/geckodriver/releases/download/v0.24.0/geckodriver-v0.24.0-linux64.tar.gz
tar -xvzf geckodriver*
chmod +x geckodriver
$PATH and give root accesssudo mv geckodriver /usr/bin/
cd /usr/bin
sudo chown root:root geckodriver
seleniumpip3 install selenium
firefox and geckodriver to $PATHsudo vim ~/.bashrc
Add the two lines:
export PATH=$PATH:"/usr/bin/firefox"
export PATH=$PATH:"/usr/bin/geckodriver"
sudo reboot