首页 > 其他 > 详细

selenium 模块的使用

时间:2019-07-25 21:38:46      阅读:163      评论:0      收藏:0      [点我收藏+]

一、为什么会用 selenium 模块:

       运用过程中遇到错误:

       

Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\selenium\webdriver\common\service.py", line 76, in start
stdin=PIPE)
File "C:\Program Files (x86)\Python37-32\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Program Files (x86)\Python37-32\lib\subprocess.py", line 1178, in _execute_child
startupinfo)
PermissionError: [WinError 5] 拒绝访问。

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\Administrator\Desktop\颠覆性命名.py", line 3, in <module>
driver = webdriver.Chrome("C:/Users/Administrator/AppData/Local/Google/Chrome/Application")
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\selenium\webdriver\chrome\webdriver.py", line 73, in __init__
self.service.start()
File "C:\Users\Administrator\AppData\Roaming\Python\Python37\site-packages\selenium\webdriver\common\service.py", line 88, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: ‘Application‘ executable may have wrong permissions. Please see https://sites.google.com/a/chromium.org/chromedriver/home

selenium 模块的使用

原文:https://www.cnblogs.com/yangguogui/p/11246830.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!