简体   繁体   中英

Selenium - Chromedriver filenotfound error message

I am trying to use selenium to test a webpage I am building. I downloaded chrome driver and placed the executable in the path below. I know the path is correct.

driver = webdriver.Chrome(executable_path=r'C:\Python\chromedriver.exe')

What can I do to address this or what am I missing?

Try calling the file without the ".exe" extension. I use chromedriver but I never need to call the extension.

driver = webdriver.Chrome('C:\Python\chromedriver')

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM