python3.x + selenium 3.x 遇到的问题:Exception ignored in: <bound method Service.__del__ of <selenium.webdriver.firefox.service.Service object at 0x0045E450>>

我解决了!!!
from selenium import webdriver
import time
dr = webdriver.Firefox(executable_path = '/Users/jinwenxin/desktop/pythonPractice/geckodriver')
time.sleep(5)
print 'Browser will close.'
dr.quit()
 
也就是往 driver=webdriver.Firefox()里添加下载的新的引擎地址executable_path = 'C:\Program Files\Mozilla Firefox\geckodriver.exe'
即: driver=webdriver.Firefox(executable_path = 'C:\Program Files\Mozilla Firefox\geckodriver.exe')
这样就不会报错
如下图:
posted @ 2016-10-23 08:34  Halo3224  阅读(7015)  评论(0编辑  收藏  举报
热爱技术的小牛