Quantcast
Channel: Active questions tagged selenium - Stack Overflow
Viewing all articles
Browse latest Browse all 98822

Firefox Crash in Selenium

$
0
0

I use Selenium to do the web-scrapping. However, my Firefox browser always crashes after a while (it is very intensive the task of scrapping).

The error message from Firefox:

Firefox had a problem and crashed. We’ll try to restore your tabs and windows when it restarts.

The error message from Python:

selenium.common.exceptions.WebDriverException: Message: Tried to run command without establishing a connection

I'd like to know if there's a way to deal with that. Ideally, I want something like after Firefox crashes, Selenium would open a new tab and continue from where it crashed. i tried try: except:pass this type of code and they didn't work out.


Viewing all articles
Browse latest Browse all 98822

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>