summaryrefslogtreecommitdiffstats
path: root/g4f/webdriver.py
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-02-09 18:51:27 +0100
committerGitHub <noreply@github.com>2024-02-09 18:51:27 +0100
commit6c7c293fd16b970d857c888b5108334f00b27a19 (patch)
tree3deecb18f982e133cb3b0337ffb0bdcbb607a212 /g4f/webdriver.py
parentUpdate OpenaiChat.py (diff)
parentUpdate Gemini.py (diff)
downloadgpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar.gz
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar.bz2
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar.lz
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar.xz
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.tar.zst
gpt4free-6c7c293fd16b970d857c888b5108334f00b27a19.zip
Diffstat (limited to 'g4f/webdriver.py')
-rw-r--r--g4f/webdriver.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/g4f/webdriver.py b/g4f/webdriver.py
index b54fae15..d9028a63 100644
--- a/g4f/webdriver.py
+++ b/g4f/webdriver.py
@@ -65,7 +65,8 @@ def get_browser(
options=options,
user_data_dir=user_data_dir,
driver_executable_path=driver,
- headless=headless
+ headless=headless,
+ patcher_force_close=True
)
def get_driver_cookies(driver: WebDriver) -> Cookies: