python3 selenium ie 拒绝连接报错_python Selenium权限错误:[WinError 5]访问被拒绝
我正试图用python Selenium打开一个Internet Explorer,但始终收到一个错误“PermissionError:[WinError 5]访问被拒绝”。
我已经下载了Internet Explorer驱动程序,服务器作为管理员运行了脚本,还有什么我可以做的吗?
代码from selenium import webdriver
driver = webdriver.Ie(r"C:\\Users\\N\\Downloads\\IEwebdriver\\IEDriverServer_x64_2.53.1")
driver.get("http://www.hotmail.com")
driver.maximize_window()
driver.implicitly_wait(20)
完整的错误消息C:\Users\N\AppData\Local\Programs\Python\Python35-32\python.exe C:/Users/N/PycharmProjects/first/SeleniumScripts/Myfirstscripts.py
Traceback (most recent call last):
File "C:\Users\N\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\service.py", line 64, in start
stdout=self.log_file, stderr=self.log_file)
File "C:\Users\N\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 947, in __init__
restore_signals, start_new_session)
File "C:\Users\N\AppData\Local\Programs\Python\Python35-32\lib\subprocess.py", line 1224, in _execute_child
startupinfo)
PermissionError: [WinError 5] Access is denied
在处理上述异常期间,发生了另一个异常:Traceback (most recent call last):
File "C:/Users/N/PycharmProjects/first/SeleniumScripts/Myfirstscripts.py", line 5, in
driver = webdriver.Ie(r"C:\\Users\\N\\Downloads\\IEwebdriver\\IEDriverServer_x64_2.53.1")
File "C:\Users\N\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\ie\webdriver.py", line 49, in __init__
self.iedriver.start()
File "C:\Users\N\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\service.py", line 76, in start
os.path.basename(self.path), self.start_error_message)
selenium.common.exceptions.WebDriverException: Message: 'IEDriverServer_x64_2.53.1' executable may have wrong permissions. Please download from http://selenium-release.storage.googleapis.com/index.html and read up at https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver
Exception ignored in: >
Traceback (most recent call last):
File "C:\Users\N\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\service.py", line 163, in __del__
self.stop()
File "C:\Users\N\AppData\Local\Programs\Python\Python35-32\lib\site-packages\selenium\webdriver\common\service.py", line 135, in stop
if self.process is None:
AttributeError: 'Service' object has no attribute 'process'
Process finished with exit code 1
我在用微软视窗10。
python3 selenium ie 拒绝连接报错_python Selenium权限错误:[WinError 5]访问被拒绝相关推荐
- python3 selenium ie 拒绝连接报错_Python3+selenium配置常见报错解决方案
第一个坑:'geckodriver' executable needs to be in PATH 1.如果启动浏览器过程中报如下错误 Traceback (most recent call last ...
- C#文件拒绝访问。上传文件报错System.UnauthorizedAccessException: 对路径XXX的访问被拒绝。
https://blog.csdn.net/you5552391/article/details/45245523 常详细信息: System.UnauthorizedAccessException: ...
- python3 selenium ie 拒绝连接报错_selenium+python自动化测试--解决无法启动IE浏览器及报错问题...
前言:记录启动IE浏览器的报错及解决方法. 错误1: selenium.common.exceptions.WebDriverException: Message: 'IEDriverServer.e ...
- python调用js文件报错_python - selenium 运行网页中js脚本报错,提示未定义
问 题 问题1 selenium 运行网易中js脚本报错提示未定义 报错提示如下: driver.execute_script("javascript:amsInit(62800,30315 ...
- python中冒号报错_python新手常见错误和异常
在python编程中,新手最常见的错入和异常如下 1.缺少冒号引起的错误 在if,elif,for,while,class,def声明末尾需要添加冒号(:),如果忘记添加,将会提示:"Syn ...
- selenium使用PhantomJS浏览器报错module ‘selenium.webdriver‘ has no attribute ‘PhantomJS‘
承接上文,关于module 'selenium.webdriver' has no attribute 'PhantomJS'报错的解决办法 https://blog.csdn.net/m0_6179 ...
- windows远程连接报错--“发生身份验证错误。要求的函数不受支持”
网络开通后,连接报上面的错误. 解决方案: 1)第一种,修改本地电脑,开始菜单->运行gpedit.msc 打开配置项:计算机配置>管理模板>系统>凭据分配>加密Orac ...
- python selenium chrome获取每个请求内容_python+selenium调用chrome打开网址获取内容
通过selenium库,python可以调用chrome打开指定网页并获取网页内容或者模拟登陆获取网页内容 1,安装selenium和配置chromedriver 安装selenium C:\User ...
- python安装失败无法访问_错误:由于环境错误而无法安装包错误:[WinError 5]访问被拒绝:...
我试图使用python -m pip install opencv-python -U pip --user将opencv python安装到windows10中的visualstudio代码中,但总 ...
最新文章
- SAP PM入门系列32 - S_ALR_87013432 Display Confirmations
- mybatis mysql Dao_Dao模式创建mybatis项目过程
- RMAN 不完全恢复
- Unrecognized Hadoop major version number: 3.0.0-cdh6.3.2
- IIS负载均衡-Application Request Route详解第六篇:使用失败请求跟踪规则来诊断ARR
- ipsec_profile
- VC++6.0中内存泄漏检测 转
- 【iOS发展-44】通过案例谈iOS重构:合并、格式化输出、宏观变量、使用数组来存储数据字典,而且使用plist最终的知识...
- 监控某个dll被修改_浅谈动力环境监控系统技术标准
- 动态路由之RIP协议、Bellman-Ford算法
- Unity3D中粒子系统
- VS2008 ---- VS2013各个版本下载地址
- 数据处理—ArcGIS处理地理空间数据云30mDEM数据
- SecureCRT 64位/32位 8.3.3 中文破解版(附上1.解决SecureCRT乱码问题2.解决Hostname lookup failed: host not found问题)
- fgo服务器维护抽卡,FGO国服最佳抽卡时间推荐,玄学或许能让你脱非入欧!
- 最简洁的秒杀 阿里月饼 js脚本
- 2015浙大计算机考研,2015浙大计算机考研机试题解.pdf
- 微信开放JS SDK,再次给浏览器们上了一课
- 南宁计算机培训学校6,南宁市桃源路中64号南宁市第6职业技术学校
- 机器学习(回归八)——Softmax回归
热门文章
- linux下的图形界面扫雷游戏(Gtk+2.0)
- Spring+MyBatis多数据源配置实现
- A Zero Flow Entry Expiration Timeout P4 Switch
- CentOS 7下使用chkconfig添加的服务无法使用/etc/profile里面的环境变量
- nfs:server 172.168.1.22 not responding,still trying arm客户端配置
- Redis 数据类型及应用场景
- 日程管理 FullCalendar
- Python 的lambda表达式的一些小细节
- IOS8 AutoLayout+SizeClasses 基础篇(1)
- 图文:2010中国计算机网络安全年会启明星辰展台