您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

“ Webdrivers”可执行文件可能具有错误的权限。请参阅https://sites.google.com/a/chromium.org/chromedriver/home

“ Webdrivers”可执行文件可能具有错误的权限。请参阅https://sites.google.com/a/chromium.org/chromedriver/home

错误消息…

WebDriverException: Message: 'Webdrivers' executable may have wrong permissions.

…表示您尝试使用的 ChromeDriver 版本具有错误的权限。

您似乎已经尝试过:

driver = webdriver.Chrome('C:\Webdrivers')  # Optional argument, if not specified will search system $PATH variable.

几句话:

如果您的基础操作系统windows

    driver = webdriver.Chrome(executable_path=r'C:/path/to/chromedriver.exe')

如果您的基础操作系统linux

    driver = webdriver.Chrome(executable_path='/path/to/chromedriver')

如果您的基础操作系统macos

    driver = webdriver.Chrome(executable_path='/path/to/chromedriver')
Go 2022/1/1 18:14:01 有589人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶