快捷导航

我想请问下这个错误怎么解决

#encoding:utf-8from selenium import webdriverdriver = webdriver.Chrome()driver.get("https://www.baidu.com")driver.find_element_by_id('kw').send_keys('selenium2')driver.find_element_by_id('su').click()driver.quit()报错信息:

Traceback (most recent call last):  File "C:/Python/Python35/Lib/site-packages/selenium/test.py", line 5, in     driver = webdriver.Chrome()  File "C:\Python\Python35\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 62, in __init__    self.service.start()  File "C:\Python\Python35\lib\site-packages\selenium\webdriver\common\service.py", line 74, in start    stdout=self.log_file, stderr=self.log_file)  File "C:\Python\Python35\Lib\subprocess.py", line 947, in __init__    restore_signals, start_new_session)  File "C:\Python\Python35\Lib\subprocess.py", line 1224, in _execute_child    startupinfo)OSError: [WinError 740] 请求的操作需要提升。

免责声明:本内容仅代表回答者见解不代表本站观点,请谨慎对待。

版权声明:作者保留权利,不代表本站立场。

回复

使用道具 举报

参与会员1

看这个请求的操作需要提升 好像是没有权限?你试试用管理员模式执行python怎么样
回复

使用道具 举报

可能感兴趣的问答

发新帖
  • 微信访问
  • 手机APP