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

Python Selenium WebDriver 如何刷新当前页面

  •  
  •   revotu · Jun 27, 2017 · 3896 views
    This topic created in 3242 days ago, the information mentioned may be changed or developed.
    当前页面的 URL 是:

    driver.current_url

    难道刷新当前页面非要这样,好笨啊:

    driver.get(driver.current_url)
    donglongtu
        1
    donglongtu  
       Jun 27, 2017
    Python Selenium WebDriver 简明指南 : http://www.revotu.com/python-selenium-webdriver-concise-guide.html

    刷新页面

    driver.refresh()
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   936 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 21:17 · PVG 05:17 · LAX 14:17 · JFK 17:17
    ♥ Do have faith in what you're doing.