selenium.common.exceptions.WebDriverException: Message: ‘geckodriver’ executable needs to…

Using selenium webriver for the first time, webdriver.Firefox ()

Error report selenium.common.exceptions . webdriverexception: Message: ‘geckodriver’ executable needs to be in path.

Windows processing method:

1. Download geckodriver.exe :

Download address:
Choose to download according to the system version (such as windows 64 bit system)

2. After downloading and decompressing, the getckodriver.exe Put it in the python installation directory. If you have checked addtopath when installing python, you don’t need to do anything. Otherwise, you need to add the python installation directory to the system variable environment variable path.

3. Run the code again

Other browsers have similar processing methods; download address of each browser driver




Similar Posts: