python selenium return to previous page code example
Example 1: python selenium go back
driver.execute_script("window.history.go(-1)")
Example 2: python selenium go back to previous page
driver.execute_script("window.history.go(-1)")
driver.execute_script("window.history.go(-1)")
driver.execute_script("window.history.go(-1)")