You can solve this issue by using a simple command if you are on Linux
First, download (https://github.com/mozilla/geckodriver/releases) and extract the ZIP file
Open the extracted folder
Open the terminal from the folder (where the
geckodriver
file is located after extraction)Now run this simple command on your terminal to copy the geckodriver into the correct folder:
sudo cp geckodriver /usr/local/bin