zoukankan      html  css  js  c++  java
  • 第五篇:selenium调用IE问题(Protected Mode settings are not the same for all zones)

    代码信息:

    driver = webdriver.Ie()
    driver.get('http://www.baidu.com')

    问题描述:

    raise exception_class(message, screen, stacktrace)
    selenium.common.exceptions.WebDriverException: Message: Unexpected error launching Internet Explorer. Protected Mode settings are not the same for all zones. Enable Protected Mode must be set to the same value (enabled or disabled) for all zones.

    解决方法(1):

    internet 选项,进入安全标签,分别点击internet ,本地intranet,受信任的站点,受限制的站点,四个设置,全部去掉勾选“启用保护模式”  或者全部勾选“启用保护模式”,即保持这四个设置一致,要么全部勾选,要么全部去掉勾选,就可以启动ie浏览器了

  • 相关阅读:
    3.1C#中的命名空间
    2章总结
    2.4冒泡排序
    2.3 C#中的数组
    2.2二重循环
    2.1c#中的循环语句
    1章总结
    docker内外数据拷贝
    搭建docker环境
    centos7 部署Apache的httpd服务器
  • 原文地址:https://www.cnblogs.com/apff/p/10209415.html
Copyright © 2011-2022 走看看