推荐学习书目
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
woshichuanqilz
V2EX  ›  Python

selenium 调用 ie 无效是为什么什么反应都没有?

  •  
  •   woshichuanqilz · Oct 14, 2017 · 3067 views
    This topic created in 3137 days ago, the information mentioned may be changed or developed.

    selenium 调用 ie 无效是为什么?

    代码是这样的

    驱动是这里的: http://download.csdn.net/download/u012720226/8253299

    #coding=utf-8
    from selenium import webdriver
    
    driver=webdriver.Ie()
    url='http://www.baidu.com'
    driver.get(url)
    driver.close()
    
    7 replies    2017-10-16 00:10:12 +08:00
    woshichuanqilz
        1
    woshichuanqilz  
    OP
       Oct 14, 2017
    那个 driver 我搞了一个外链,
    http://7xpvdr.com1.z0.glb.clouddn.com/IEDriverServer.exe
    jugelizi
        2
    jugelizi  
       Oct 14, 2017
    woshichuanqilz
        3
    woshichuanqilz  
    OP
       Oct 14, 2017
    @jugelizi 修改了 但是还是启动不起来
    jugelizi
        4
    jugelizi  
       Oct 14, 2017
    本机 host 有没有 locahost 127.0.0.1
    mrdongzhijie
        5
    mrdongzhijie  
       Oct 15, 2017
    路径问题?
    iwishing
        6
    iwishing  
       Oct 16, 2017
    有报错吗?弹出了驱动程序的那个黑框吗?
    iwishing
        7
    iwishing  
       Oct 16, 2017
    可以把 IEDriverServer.exe 放在 c:\windows\system32 目录下,这样就不用改 Path 了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   986 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:34 · PVG 02:34 · LAX 11:34 · JFK 14:34
    ♥ Do have faith in what you're doing.