W
W
Web__Nikita032019-03-24 17:14:10
Python
Web__Nikita03, 2019-03-24 17:14:10

Why is selenium throwing an error?

Here is the code

driver = webdriver.Firefox('C:\\py3eg\\geckodriver\\geckodriver.exe')
driver.get('https://freelance.ru/login/')

Writes [WinError 267] Wrong folder name: 'C:\py3eg\geckodriver\geckodriver.exe'
Here is where geckodriver is
5c97906448f1b448829621.png
Downloaded from here https://github.com/Mozilla/geckodriver/releases
If you write driver = webdriver.Firefox( executable_path=r'C:\\py3eg\\geckodriver\\geckodriver.exe') then everything works. Why?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question