use selenium python open with IE issue
2016-07-25 16:52
661 查看
#selenium python 使用 IEDriver.exe
##1. download IEDriver
##2. unzip IEDriver.exe to %PYTHON%\Scripts\
##3.execute script got error message
##4.solution
###4.1 add below script before use webdriver
###4.2 modify ie security settings
##1. download IEDriver
##2. unzip IEDriver.exe to %PYTHON%\Scripts\
##3.execute script got error message
Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones
##4.solution
###4.1 add below script before use webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities DesiredCapabilities.INTERNETEXPLORER['ignoreProtectedModeSettings'] = True
###4.2 modify ie security settings
相关文章推荐
- 使用Python工具分析风险数据 20160723
- python学习 第三篇字典,列表生成式,文件操作
- 初探
- Python数据类型(3)
- Python起步(2)
- Python之模块介绍
- 基于anaconda安装模块(threading)
- python多线程
- Python渗透测试框架:PytheM
- python 生成ssh秘钥对
- DAY10:leetcode #22 Valid Parentheses
- Python——使用ElementTree解析AndroidManifest.xml文件
- Python开发【第一章】:简介和入门
- 利用python解析手机通讯录
- 数组剔除元素后的乘积Python解法
- windows下使用pip安装python的第三方lxml库
- 用命令行运行python所有的unittest文件
- python学习之wxPython 报错
- 跟我学Python系列 -Map()函数的理解
- python中range和xrange的用法与区别