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

selenium 操作 ie 跟平时操作不同的一个奇怪问题

  •  
  •   asus10tu · Aug 15, 2019 · 2971 views
    This topic created in 2600 days ago, the information mentioned may be changed or developed.
    正常用 ie 打开某个网站,点击 A 按钮,是打开一个新标签来浏览的。
    但是用 selenium 打开网站后,点击 A 按钮,却是打开了一个其他的浏览器,开了一个新窗口来浏览。

    这样子工作就没法完成了,搜了好多都没找到答案,求助!
    6 replies  •  2019-08-18 14:56:23 +08:00
    arrow8899
        1
    arrow8899  
       Aug 15, 2019
    asus10tu
        2
    asus10tu  
    OP
       Aug 15, 2019
    @arrow8899 看了下,貌似里面没有相关的配置要素...
    boat
        3
    boat  
       Aug 15, 2019
    是其他浏览器,就是说不是 IE ? 是不是系统的默认浏览器不是 IE ?
    asus10tu
        4
    asus10tu  
    OP
       Aug 15, 2019
    @boat 默认已经是 IE 了,但是还是会打开其他的一个浏览器,我把该浏览器删了,直接就点击没反应了
    kingfalse
        5
    kingfalse  
       Aug 16, 2019
    操作 ie 的话我还是觉得 swt 比较好用
    asus10tu
        6
    asus10tu  
    OP
       Aug 18, 2019
    @kingfalse swt 好像是 java 才有?我只会用 python 搞 = =
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2538 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 10:05 · PVG 18:05 · LAX 03:05 · JFK 06:05
    ♥ Do have faith in what you're doing.