group-icon
Software Testing Squad
All About Software Testing In One Place!
128 Members
Join this group to post and comment.
Aswini Vi
Aswini Vi
Computer Science
13 Feb 2019

Is there a way to refresh browser using selenium?

There a multiple ways to refresh a page in selenium-

  1. Using driver.navigate().refresh() command
  2. Using sendKeys(Keys.F5) on any textbox on the webpage
  3. Using driver.get("URL") on the current URL or using dirver.getCurrentUrl()
  4. Using driver.navigate().to("URL") on the current URL or driver.navigate().to(driver.getCurrentUrl());