Home  >  Q&A  >  body text

How Python Selenium WebDriver refreshes the current page

The URL of the current page is:

driver.current_url

Is it necessary to refresh the current page like this? It’s so stupid:

driver.get(driver.current_url)
漂亮男人漂亮男人2640 days ago1253

reply all(1)I'll reply

  • 巴扎黑

    巴扎黑2017-06-28 09:27:11

    Reference article: A concise guide to Python Selenium WebDriver

    Refresh the page

    driver.refresh()

    reply
    0
  • Cancelreply