title: Can`t attach to detached selenium window in python
body: <p>Cant send commands to selenium webdriver in detached session because link http://localhost:port died.</p>
  <p>But if i put breakpoint 1 link stay alive</p>
  <pre><code>import multiprocessing
  from selenium import webdriver
  from selenium.webdriver.chrome.options import Options
  
  def create_driver_pool(q):
      options = Options()
      driver = webdriver.Chrome(options=options)
      pass #breakpoint 1
      return driver.command_executor._url
  
  windows_pool = multiprocessing.Pool(processes=1)
  result = windows_pool.map(create_driver_pool, [1])
  print(result)
  pass # breakpoint 2 for testing link
  </code></pre>
  <p>why is this happening and what can i do about it?</p>