H
H
haniaman2020-12-21 20:21:55
selenium
haniaman, 2020-12-21 20:21:55

How to make if the browser freezes, selenium refreshes the page and continues to execute the script?

Hello, such a problem, after several hours of parser operation, the page in chrome becomes white and in order for everything to work further, you need to reload the page. How can this be implemented? Theoretically, the first thing that came to my mind was to catch this exception, and simply copy this script there with the addition to reload the page.
How can I implement this, I don’t know, more correctly?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel, 2020-12-24
@prafair

Here is an example how to catch a message from the console for the new Selenium-4-alpha:
https://github.com/sachinguptait/SeleniumAutomatio...
You can try to catch your message and reload the page if there is a message ;)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question