V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
luyg
V2EX  ›  Python

python selenium 自动化解决 ie ssl 证书不信任问题

  •  
  •   luyg · 2016-04-05 19:09:26 +08:00 · 4369 次点击
    这是一个创建于 2934 天前的主题,其中的信息可能已经有所发展或是发生改变。

    今天开始解决 selenium ,主要是想偷懒把一些固话的东西自动化起来,期间遇到了 ssl 证书的问题,弹出证书不信任,需要点击下信任继续访问才行,搜索了一下午 baidu google ,最后的解决方法: #coding=utf-8

    from selenium import webdriver

    driver=webdriver.Ie()

    firsturl='https://10.12.1.22/aim'

    driver.get(firsturl)

    driver.get("javascript:document.getElementById('overridelink').click();")

    driver.close()

    一直在 V2EX 求助,今天也回馈一把~

    4 条回复    2016-04-06 16:38:13 +08:00
    alphadog619
        1
    alphadog619  
       2016-04-05 22:26:52 +08:00
    测试攻城狮路过,谢谢分享,做测试的人越来越少了。今天刚入职一家新公司,公司还不错。呵呵,就是惯例--每次办公室工位不够的时候,测试总是搬到会议室去办公
    hahastudio
        2
    hahastudio  
       2016-04-05 22:40:32 +08:00   ❤️ 1
    luyg
        3
    luyg  
    OP
       2016-04-06 16:37:34 +08:00
    @hahastudio 这个试过,没成功。
    luyg
        4
    luyg  
    OP
       2016-04-06 16:38:13 +08:00
    @alphadog619 哈哈,能干活儿就行。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5321 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 08:49 · PVG 16:49 · LAX 01:49 · JFK 04:49
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.