尝试打开chrome pythonselenium时出错

2024-05-20 17:32:35 发布

您现在位置:Python中文网/ 问答频道 /正文

从selenium import webdriver

driver = webdriver.Chrome()

错误:

Python3.4.1(默认值,2014年11月12日,13:34:29) linux上的[GCC 4.1.2 20080704(Red Hat 4.1.2-48)] 键入“帮助”、“版权”、“信用证”或“许可证”以获取更多信息。在

from selenium import webdriver driver = webdriver.Chrome() Traceback (most recent call last): File "", line 1, in File "/users/shabshar/pyats/lib/python3.4/site-packages/selenium/webdriver/chrome/webdriver.py", line 62, in init s

在elf.service.start文件() File“/users/shabshar/pyats/lib/python3.4/site-packages/selenium/webdriver/common/服务.py“,第96行,开始 self.assert\u进程仍在运行() File“/users/shabshar/pyats/lib/python3.4/site-packages/selenium/webdriver/common/服务.py“,第109行,在assert_process_仍在运行中 % (自我路径,返回代码) selenium.common.异常.WebDriverException:消息:服务chromedriver意外退出。状态代码为:1


Tags: pyimportlibpackagesdriverseleniumlinesite