您的位置:首页 > 编程语言 > Python开发

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

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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: