1

When I'm done with automating, the chrome webdriver stays running in the background, is there anyway to automatically close it without the need of doing it via task manager?

  • 1
    Does this answer your question? [how to close Python selenium webdriver window](https://stackoverflow.com/questions/42591175/how-to-close-python-selenium-webdriver-window) – Klaus D. Aug 10 '20 at 03:14

1 Answers1

0

driver.close() => It will shut the focused browser window.

driver.quit() => It will shut all opened browser window and terminates the WebDriver session.

Just for fun
  • 4,102
  • 1
  • 5
  • 11