WebDriverException:Message:'geckodriver'executable needs to be in Path

我在windows10 下 做 Selenium WebDriver 启动 浏览器需要加载浏览器的驱动,这里 由于高版本的 火狐浏览器需要 下载

geckodriver-v0.16.1

下载地址: http://download.csdn.net/detail/qianaier/9834895

放到 :C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32 

#coding=utf-8
from selenium import webdriver

driver=webdriver.Firefox()
driver.get("https://www.baidu.com/")
driver.find_element_by_id("kw").send_keys("Selenium2")
driver.find_element_by_id("su").click()
driver.quit()

你可能感兴趣的:(WebDriverException:Message:'geckodriver'executable needs to be in Path)