相关疑难解决方法(0)

不能为Selenium使用chrome驱动程序

我在使用适用于Selenium的Chrome驱动程序时遇到问题.我已将chromedriver下载并保存到C:\ Chrome:

driver = webdriver.Chrome(executable_path="C:/Chrome/")
Run Code Online (Sandbox Code Playgroud)

使用它给我以下错误:

Traceback (most recent call last):
  File "C:\Python33\lib\subprocess.py", line 1105, in _execute_child
    startupinfo)
PermissionError: [WinError 5] Access is denied

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Python33\lib\site-packages\selenium\webdriver\chrome\service.py", line 63, in start
    self.service_args, env=env, stdout=PIPE, stderr=PIPE)
  File "C:\Python33\lib\subprocess.py", line 817, in __init__
    restore_signals, start_new_session)
  File "C:\Python33\lib\subprocess.py", line 1111, in _execute_child
    raise WindowsError(*e.args)
PermissionError: [WinError 5] Access is denied

During handling of the above exception, another exception occurred:

Traceback …
Run Code Online (Sandbox Code Playgroud)

python selenium google-chrome python-3.x python-3.3

30
推荐指数
3
解决办法
6万
查看次数

标签 统计

google-chrome ×1

python ×1

python-3.3 ×1

python-3.x ×1

selenium ×1