title: Using selenium on existing browser session
body: <p>I am trying to connect selenium to an existing session by doing the following:</p>
  <pre><code>ce = 'some url'
  session_id = 'some value'
  
  driver = webdriver.Firefox()
  driver = webdriver.Remote(command_executor=ce,desired_capabilities={})
  driver.session_id = session_id
  </code></pre>
  <p>I get a long error message ending with:</p>
  <p>[WinError 10061] No connection could be made because the target machine actively refused it</p>
  <p>I took my code from the top answer in
  <a href="https://stackoverflow.com/questions/8344776/can-selenium-interact-with-an-existing-browser-session">Can Selenium interact with an existing browser session?</a>
  However, my execution of it seems to raise an error not discussed in the original question.</p>
  <p>EDIT: I solved my problem by saving and reusing browser cookies instead. While this does not answer the original question, it provided a solution to my particular problem. It was about not needing to log into websites.</p>