51Testing软件测试论坛

标题: chromedriver在运行时报错 webdriver相关问题! [打印本页]

作者: 测试积点老人    时间: 2021-8-2 13:52
标题: chromedriver在运行时报错 webdriver相关问题!
  1. Traceback (most recent call last):
  2. File "C:\Users\Le'novo\AppData\Local\Temp\Rar$DIa5348.42032\baichuan.py", line 65, in
  3. get_table(urltb['urlset'][i])
  4. File "C:\Users\Le'novo\AppData\Local\Temp\Rar$DIa5348.42032\baichuan.py", line 33, **in get_table
  5. driver = webdriver.**Chrome('C:/Users/Administrator/Desktop/价格数据库资料 - 副本/python/chromedriver')
  6. File "C:\Users\Le'novo\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in init
  7. self.service.start()
  8. File "C:\Users\Le'novo\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 98, in start
  9. self.assert_process_still_running()
  10. File "C:\Users\Le'novo\AppData\Local\Programs\Python\Python39\lib\site-packages\selenium\webdriver\common\service.py", line 109, in assert_process_still_running
  11. raise WebDriverException(
  12. selenium.common.exceptions.WebDriverException: Message: Service C:/Users/Administrator/Desktop/价格数据库资料 - 副本/python/chromedriver unexpectedly exited. Status code was: 1
复制代码
安装了chrome(win32的 但是电脑是64)-但是似乎于事无补……

作者: qqq911    时间: 2021-8-3 10:22
版本不匹配吧
作者: bellas    时间: 2021-8-3 12:10
'C:/Users/Administrator/Desktop/价格数据库资料 -  副本  这个换个英文名
作者: 海海豚    时间: 2021-8-3 14:30
下载chromedriver,下载之后将chromedriver.exe放到一个目录下,记得把该目录添加到PATH环境变量中。




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2