From e68b415eddbec33f110ef684fc66aa443517c68c Mon Sep 17 00:00:00 2001 From: g1879 Date: Sun, 3 Mar 2024 16:28:27 +0800 Subject: [PATCH] =?UTF-8?q?4.0.4.8=E4=BF=AE=E5=A4=8Dreconnect()=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/__init__.py | 2 +- DrissionPage/_pages/chromium_base.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/DrissionPage/__init__.py b/DrissionPage/__init__.py index 40056cf..917271d 100644 --- a/DrissionPage/__init__.py +++ b/DrissionPage/__init__.py @@ -14,4 +14,4 @@ from ._configs.chromium_options import ChromiumOptions from ._configs.session_options import SessionOptions __all__ = ['ChromiumPage', 'ChromiumOptions', 'SessionOptions', 'SessionPage', 'WebPage', '__version__'] -__version__ = '4.0.4.7' +__version__ = '4.0.4.8' diff --git a/DrissionPage/_pages/chromium_base.py b/DrissionPage/_pages/chromium_base.py index 9354e22..9c671a3 100644 --- a/DrissionPage/_pages/chromium_base.py +++ b/DrissionPage/_pages/chromium_base.py @@ -867,6 +867,8 @@ class ChromiumBase(BasePage): sleep(wait) self.browser.reconnect() self._driver = self.browser._get_driver(t_id, self) + self._driver_init(t_id) + self._get_document() def handle_alert(self, accept=True, send=None, timeout=None, next_one=False): """处理提示框,可以自动等待提示框出现