Skip to content
CodeKruPro

Navigation methods in Selenium Python

QuizEasyPython onlyAsked in: Accenture, Infosys, TCS, Wipro

Which set of calls opens a page, goes back, goes forward and reloads in Selenium Python?

  • driver.get(url), driver.back(), driver.forward(), driver.refresh()
  • driver.navigate().to(url), driver.navigate().back(), and so on
  • driver.open(url), driver.previous(), driver.next(), driver.reload()
  • driver.url = url and driver.history(-1)

This question is part of Pro+

Pro+ opens every question in Interview Prep and the mock interview. Every article and the first 2 questions of each topic stay free. Hands-on Selenium and API tasks follow their course lesson's own lock.

See Pro+

Already have Pro+? Sign in