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

关于 selenium 模块中的 send_keys 的问题

  •  
  •   18870715400 · Aug 21, 2020 · 1844 views
    This topic created in 2114 days ago, the information mentioned may be changed or developed.
    这几天使用 send_keys 的时候有时候会出现输入的值不全的问题, 比如 123456 只输入了 12345, 应该如何解决这类问题呢?
    4 replies    2020-08-21 15:19:22 +08:00
    musi
        1
    musi  
       Aug 21, 2020
    直接注入 js?用 js 操作 dom?
    chaogg
        2
    chaogg  
       Aug 21, 2020
    我也遇到过,应该是 bug 。直接使用执行 js 的方式写入吧
    18870715400
        3
    18870715400  
    OP
       Aug 21, 2020
    @musi 之前用的是 driver.find_element_by_id("xxx").send_keys("123456")这种有的时候会出现输入不全的问题, 现在正在使用 js 测试
    18870715400
        4
    18870715400  
    OP
       Aug 21, 2020
    @musi
    @chaogg 谢谢
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4942 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 09:41 · PVG 17:41 · LAX 02:41 · JFK 05:41
    ♥ Do have faith in what you're doing.