I haven't run into that, but if it is a bug in Selenium, the easiest workaround would be to surround it in a try/catch and retry a few times. I would follow up by asking (or searching for existing answers) whether it is a known issue on the Selenium users forum.
Sam Woods
- 8.6k
- 25
- 43