blueking15341534 2021-02-08 23:40 采纳率: 0%
浏览 280

ChromeCore' executable may have wrong permissions.

from selenium import webdriver
import selenium


#
# print(selenium.__version__)
# print(selenium.webdriver)



driver = webdriver.Chrome(executable_path=r"D:\softs\chrome\ChromeCore")
driver.get("https://www.baidu.com")

input = driver.find_element_by_css_selector('#kw')
input.send_keys("天堂的张望")

button = driver.find_element_by_css_selector('#su')
button.click()

Traceback (most recent call last):
  File "C:\Users\***\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\common\service.py", line 72, in start
    self.process = subprocess.Popen(cmd, env=self.env,
  File "D:\softs\python3.8\lib\subprocess.py", line 854, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "D:\softs\python3.8\lib\subprocess.py", line 1307, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
PermissionError: [WinError 5] 拒绝访问。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:/Users/***/Desktop/spideframer/testing2.py", line 11, in <module>
    driver = webdriver.Chrome(executable_path=r"D:\softs\chrome\ChromeCore")
  File "C:\Users\***\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
    self.service.start()
  File "C:\Users\***\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\common\service.py", line 86, in start
    raise WebDriverException(
selenium.common.exceptions.WebDriverException: Message: 'ChromeCore' executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home
 

 

  • 写回答

0条回答 默认 最新

      报告相同问题?

      悬赏问题

      • ¥15 定义了函数,但是无法根据函数定义触发器
      • ¥20 5变量卡诺图化简得出与非门电路图
      • ¥20 位置依赖的碱基序列独热编码
      • ¥15 Python爬取交通拥堵指数数据
      • ¥15 使用vba抓取重定向网页问题
      • ¥20 付费需求测试程序(细谈)。
      • ¥15 为什么这段c++代码会报这么多语法错误?
      • ¥20 如何利用C语言实现用最小二乘法选配两个经验公式
      • ¥50 vue-codemirror如何对指定行 指定位置的 字符进行背景颜色或者字体颜色的修改?
      • ¥30 遇到一个的问题,请教各位