Sometimes, thread.sleep(SOME_TIME) can be helpful because the page might still reload. It has worked for me since the loading of the page was taking time.