title: Python selenium browser driver.back()
body: <p>I have created a little screen scraper and everything seems to be working great, the information is being pulled and saved in a db. The only problem I am having is sometimes Python doesn't use the <code>driver.back()</code> so it then trys to get the information on the wrong page and crashes. I have tried adding a <code>time.sleep(5)</code> but sometimes it still isn't working. I am trying to optimise it to take as little time as possible. So making it sleep for 30 seconds doesn't seem to be a good solution.</p>