python selenium go back to previous page
driver.execute_script("window.history.go(-1)")
python selenium go back to previous page
driver.execute_script("window.history.go(-1)")
can we navigate back and forth in selenium
We use navigate method
(navigate is an abstract method of Webdriver interface)
to navigate back and forth in a browser.
It has methods to move back, forward as
well as to refresh a page.
forward, to.. are abstract method
of Navigate interface
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us