title: how to close Python selenium webdriver window
body: <p>I have a python script that scraps data off from a website on an hourly basis. It is stored on the server at the moment and is working well as I am using task scheduler to schedule it to execute the script on an hourly basis.</p>
  
  <p>I am using this code</p>
  
  <pre><code>driver.quit()
  </code></pre>
  
  <p>to quit the browser window</p>
  
  <p>My problem to this that whenever I am not logging in to the server, it will start stacking up the webdriver window as somehow the driver.quit() function does not work when I am logging into the server. every morning when I came to work, I have tons of window to close from the server.</p>
  
  <p>I tried to quit, close, dispose, but it doesn't help. What else I can try?</p>