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
woshichuanqilz
V2EX  ›  Python

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

  •  
  •   woshichuanqilz · 2017-10-14 18:28:39 +08:00 · 2368 次点击
    这是一个创建于 2384 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2017-10-16 00:10:12 +08:00
    woshichuanqilz
        1
    woshichuanqilz  
    OP
       2017-10-14 18:30:54 +08:00
    那个 driver 我搞了一个外链,
    http://7xpvdr.com1.z0.glb.clouddn.com/IEDriverServer.exe
    jugelizi
        2
    jugelizi  
       2017-10-14 18:44:40 +08:00
    woshichuanqilz
        3
    woshichuanqilz  
    OP
       2017-10-14 22:03:20 +08:00
    @jugelizi 修改了 但是还是启动不起来
    jugelizi
        4
    jugelizi  
       2017-10-14 22:05:47 +08:00
    本机 host 有没有 locahost 127.0.0.1
    mrdongzhijie
        5
    mrdongzhijie  
       2017-10-15 09:33:05 +08:00
    路径问题?
    iwishing
        6
    iwishing  
       2017-10-16 00:06:50 +08:00
    有报错吗?弹出了驱动程序的那个黑框吗?
    iwishing
        7
    iwishing  
       2017-10-16 00:10:12 +08:00
    可以把 IEDriverServer.exe 放在 c:\windows\system32 目录下,这样就不用改 Path 了
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5433 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 07:05 · PVG 15:05 · LAX 00:05 · JFK 03:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.