I am using visualcode and when I am trying to import ConnectionRefusedError from selenium library I am getting an error. Below is my code snippet
from selenium.common.exceptions import ConnectionRefusedError
Error
ConnectionRefusedError: [Errno 61] Connection refused
in addition to
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=50166): Max retries exceeded with url: /session/2a50424f26d5dbcb77096e2ed2a0cfc6/url (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x15d878e60>: Failed to establish a new connection: [Errno 61] Connection refused'))
Can’t import ConnectionRefusedError from selenium library
How can I solve this?
I have already tried restarting my ide, uninstalling selenium, installing selenium, clearing my cache and unistalling pylance as well.