title: ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host error with ChromeDriver Chrome Selenium Django
body: <p>I am learning TDD by the "Obey the testing goat book", but I am trying to do it with Django 3.</p>
  
  <p>If anyone knows it, I am at Chapter 6.</p>
  
  <p>My code is:</p>
  
  <pre><code>class VisitorTest(LiveServerTestCase):
  
      def setUp(self):
          self.browser = webdriver.Chrome()
          self.browser.implicitly_wait(2)
  
      def tearDown(self):
          self.browser.quit()
  
      def test_starting(self):
          print(self.live_server_url) 
  
          self.browser.get(self.live_server_url)
  </code></pre>
  
  <p>and in console I am getting</p>
  
  <pre><code>
  Creating test database for alias 'default'...
  System check identified no issues (0 silenced).
  
  DevTools listening on ws://127.0.0.1:52187/devtools/browser/e9a03a04-819e-40a3-a0e4-bd4133d8f6cb
  http://localhost:52180
  ----------------------------------------
  Exception happened during processing of request from ('127.0.0.1', 52204)
  ----------------------------------------
  ----------------------------------------
  Exception happened during processing of request from ('127.0.0.1', 52202)
  Exception happened during processing of request from ('127.0.0.1', 52203)
  Traceback (most recent call last):
  Traceback (most recent call last):
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socketserver.py", line 654, in process_request_thread
      self.finish_request(request, client_address)
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socketserver.py", line 654, in process_request_thread
      self.finish_request(request, client_address)
  Traceback (most recent call last):
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socketserver.py", line 364, in finish_request
      self.RequestHandlerClass(request, client_address, self)
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socketserver.py", line 364, in finish_request
      self.RequestHandlerClass(request, client_address, self)
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socketserver.py", line 724, in __init__
      self.handle()
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socketserver.py", line 724, in __init__
      self.handle()
    File "C:\Users\Alex\PycharmProjects\goat\lib\site-packages\django\core\servers\basehttp.py", line 172, in handle
      self.handle_one_request()
    File "C:\Users\Alex\PycharmProjects\goat\lib\site-packages\django\core\servers\basehttp.py", line 172, in handle
      self.handle_one_request()
    File "C:\Users\Alex\PycharmProjects\goat\lib\site-packages\django\core\servers\basehttp.py", line 182, in handle_one_request
      self.raw_requestline = self.rfile.readline(65537)
    File "C:\Users\Alex\PycharmProjects\goat\lib\site-packages\django\core\servers\basehttp.py", line 182, in handle_one_request
      self.raw_requestline = self.rfile.readline(65537)
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socket.py", line 586, in readinto
      return self._sock.recv_into(b)
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socket.py", line 586, in readinto
      return self._sock.recv_into(b)
  ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
  ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
  ----------------------------------------
  ----------------------------------------
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socketserver.py", line 654, in process_request_thread
      self.finish_request(request, client_address)
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socketserver.py", line 364, in finish_request
      self.RequestHandlerClass(request, client_address, self)
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socketserver.py", line 724, in __init__
      self.handle()
    File "C:\Users\Alex\PycharmProjects\goat\lib\site-packages\django\core\servers\basehttp.py", line 174, in handle
      self.handle_one_request()
    File "C:\Users\Alex\PycharmProjects\goat\lib\site-packages\django\core\servers\basehttp.py", line 182, in handle_one_request
      self.raw_requestline = self.rfile.readline(65537)
    File "C:\Users\Alex\AppData\Local\Programs\Python\Python36\lib\socket.py", line 586, in readinto
      return self._sock.recv_into(b)
  ConnectionResetError: [WinError 10054] An existing connection was forcibly closed by the remote host
  ----------------------------------------
  .
  ----------------------------------------------------------------------
  Ran 1 test in 8.779s
  
  OK
  Destroying test database for alias 'default'...
  
  </code></pre>
  
  <p>However tests are running well (I didn`t displayed them here).</p>
  
  <p>I made a research but didn`t found anything conclusive</p>
  
  <p>Any idea why is displaying those and how to fix them?</p>