'Firefox has stopped working' when running Selenium script
<p>When I run my script on Firefox, my browser shows the dialog below that Firefox has stopped working. How can I fix this?</p>

<p><a href="https://i.stack.imgur.com/lUbsJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lUbsJ.png" alt="enter image description here"></a></p>