Fix Chrome v124+ not closing on Windows. resolves #1161 (#1193)

This commit is contained in:
ilike2burnthing
2024-05-20 00:52:55 +01:00
committed by GitHub
parent c304da2964
commit 5a2c61601e
8 changed files with 15 additions and 15 deletions

View File

@@ -314,6 +314,7 @@ def get_user_agent(driver=None) -> str:
raise Exception("Error getting browser User-Agent. " + str(e))
finally:
if driver is not None:
driver.close()
driver.quit()