Update CDP Mode

This commit is contained in:
Michael Mintz 2025-03-28 23:18:39 -04:00
parent b701e2087d
commit ca84cdddc0
1 changed files with 8 additions and 4 deletions

View File

@ -460,8 +460,10 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
"chrome-extension://" "chrome-extension://"
): ):
# https://issues.chromium.org/issues/396611138 # https://issues.chromium.org/issues/396611138
# (Uncomment below when resolved) # (Remove the Linux conditional when resolved)
# self.close() # (So that close() is always called)
if "linux" in sys.platform:
self.close()
if self.service.is_connectable(): if self.service.is_connectable():
self.stop_client() self.stop_client()
self.service.stop() self.service.stop()
@ -499,8 +501,10 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
"chrome-extension://" "chrome-extension://"
): ):
# https://issues.chromium.org/issues/396611138 # https://issues.chromium.org/issues/396611138
# (Uncomment below when resolved) # (Remove the Linux conditional when resolved)
# self.close() # (So that close() is always called)
if "linux" in sys.platform:
self.close()
if self.service.is_connectable(): if self.service.is_connectable():
self.stop_client() self.stop_client()
self.service.stop() self.service.stop()