title: How can I close the browser window without closing the browser?
body: <p>How can I close the browser window without closing the browser in webdriver? I have something like</p>
  
  <pre><code>from selenium import webdriver
  driver = webdriver.Firefox()
  driver.get("http://www.google.com")
  # so far so good
  
  driver.close()
  # quits the app altogether :(
  
  driver.get("http://www.google.com")
  # doesn't do anything
  </code></pre>
  
  <p>Of course I can do <code>driver = webdriver.Firefox()</code> again at this point, but is there a way to just close the window without quitting the browser? Thanks!</p>