title: Python Selenium: How to check whether the WebDriver did quit()?
body: <p>I want to control whether my <code>WebDriver</code> quit but I can't find a method for that. (<a href="https://stackoverflow.com/a/18622590/1707938">It seems that in Java there's a way to do it</a>)</p>
  
  <pre><code>from selenium import webdriver
  driver = webdriver.Firefox()
  driver.quit()
  driver # &lt;selenium.webdriver.firefox.webdriver.WebDriver object at 0x108424850&gt;
  driver is None # False
  </code></pre>
  
  <p>I also explored the attributes of <code>WebDriver</code> but I can't locate any specific method to get information on the driver status. Also checking the session id:</p>
  
  <pre><code>driver.session_id # u'7c171019-b24d-5a4d-84ef-9612856af71b'
  </code></pre>