推荐学习书目
› 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 · Apr 5, 2016 · 5511 views
    This topic created in 3831 days ago, the information mentioned may be changed or developed.

    今天开始解决 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 replies  •  2016-04-06 16:38:13 +08:00
    alphadog619
        1
    alphadog619  
       Apr 5, 2016
    测试攻城狮路过,谢谢分享,做测试的人越来越少了。今天刚入职一家新公司,公司还不错。呵呵,就是惯例--每次办公室工位不够的时候,测试总是搬到会议室去办公
    hahastudio
        2
    hahastudio  
       Apr 5, 2016   ❤️ 1
    luyg
        3
    luyg  
    OP
       Apr 6, 2016
    @hahastudio 这个试过,没成功。
    luyg
        4
    luyg  
    OP
       Apr 6, 2016
    @alphadog619 哈哈,能干活儿就行。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2368 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:12 · PVG 19:12 · LAX 04:12 · JFK 07:12
    ♥ Do have faith in what you're doing.