首页
注册
登录
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
V2EX
›
Python
selenium 操作 ie 跟平时操作不同的一个奇怪问题
asus10tu
·
2019-08-15 16:16:54 +08:00
· 2127 次点击
这是一个创建于 1999 天前的主题,其中的信息可能已经有所发展或是发生改变。
正常用 ie 打开某个网站,点击 A 按钮,是打开一个新标签来浏览的。
但是用 selenium 打开网站后,点击 A 按钮,却是打开了一个其他的浏览器,开了一个新窗口来浏览。
这样子工作就没法完成了,搜了好多都没找到答案,求助!
Selenium
打开
按钮
浏览
6 条回复
•
2019-08-18 14:56:23 +08:00
1
arrow8899
2019-08-15 17:00:25 +08:00
IE 比较特殊,需要设置一下
https://github.com/SeleniumHQ/selenium/wiki/InternetExplorerDriver#required-configuration
2
asus10tu
OP
2019-08-15 17:51:49 +08:00
@
arrow8899
看了下,貌似里面没有相关的配置要素...
3
boat
2019-08-15 18:44:06 +08:00
是其他浏览器,就是说不是 IE ? 是不是系统的默认浏览器不是 IE ?
4
asus10tu
OP
2019-08-15 22:23:57 +08:00
@
boat
默认已经是 IE 了,但是还是会打开其他的一个浏览器,我把该浏览器删了,直接就点击没反应了
5
kingfalse
2019-08-16 16:09:35 +08:00
操作 ie 的话我还是觉得 swt 比较好用
6
asus10tu
OP
2019-08-18 14:56:23 +08:00
@
kingfalse
swt 好像是 java 才有?我只会用 python 搞 = =
关于
·
帮助文档
·
博客
·
API
·
FAQ
·
实用小工具
·
700 人在线
最高记录 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms ·
UTC 21:51
·
PVG 05:51
·
LAX 13:51
·
JFK 16:51
Developed with
CodeLauncher
♥ Do have faith in what you're doing.