I have a Python + Selenium script that helps me scrape information. However, the webpage encounters an error from time to time and then I need to refresh the page and scrape again. The problem is that the error is erratic and it might crash my scraper when I already clicked some buttons or filled some forms.
I need to find an elegant method to refresh the page exactly with the same buttons clicked (I mean, exactly to the same state). Any help?
if you build a robust scrapy system,you must think about exception handling . i have done some large scrape project .in these projects we will use a log system to record the  exception ,then retry when don't success scraping the message.
How to make Selenium refresh page to last state of its elements?