#
#
# .2021-01-25 18:34:45
Python
# ., 2021-01-25 18:34:45

How to remove Selenium error?

After installing Selenium and running this code:

from selenium import webdriver 

driver = webdriver.Firefox()
driver.get("https://mp3push.com/search/pyrokinesis+Прекрасное+далеко")
driver.find_element_by_class_name("item-wrap")

Throws an error:

raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'geckodriver' executable needs to be in PATH.

How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soremix, 2021-01-25
@andro1

Download geckodriver and put it in the folder with the script, or add the path to it in PATH
https://github.com/mozilla/geckodriver/releases

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question