无法启动镶边驱动程序



谁能告诉我以下错误的解决方案?

from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
#chrome
driver = webdriver.Chrome(executable_path="F:Driverschromedriver.exe")
print ("chrome driver launched successfully...")

错误:

Traceback (most recent call last):
File "C:/Users/user/PycharmProjects/test_selenium/test.py", line 7, in <module>
driver = webdriver.Chrome(executable_path="F:Driverschromedriver.exe")
File "C:UsersuserPycharmProjectstest_seleniumvenvlibsite-packagesseleniumwebdriverchromewebdriver.py", line 73, in __init__
self.service.start()
File "C:UsersuserPycharmProjectstest_seleniumvenvlibsite-packagesseleniumwebdrivercommonservice.py", line 98, in start
self.assert_process_still_running()
File "C:UsersuserPycharmProjectstest_seleniumvenvlibsite-packagesseleniumwebdrivercommonservice.py", line 109, in assert_process_still_running
raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: Service F:Driverschromedriver.exe unexpectedly exited. Status code was: 1

我不时遇到此错误。对我有用的是下载另一个版本的 selenium Web 驱动程序(升级总是对我有用,但如果它对您不起作用,也请尝试降级(

相关内容

  • 没有找到相关文章

最新更新