diff --git a/DrissionPage/__init__.py b/DrissionPage/__init__.py index 78fa124..25f0e09 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.3.1' +__version__ = '4.0.3.2' diff --git a/DrissionPage/_pages/chromium_base.py b/DrissionPage/_pages/chromium_base.py index 49d7721..436e731 100644 --- a/DrissionPage/_pages/chromium_base.py +++ b/DrissionPage/_pages/chromium_base.py @@ -834,9 +834,10 @@ class ChromiumBase(BasePage): :param wait: 断开后等待若干秒再连接 :return: None """ + t_id = self._target_id self.disconnect() sleep(wait) - self._driver = self.browser._get_driver(self._target_id, self) + self._driver = self.browser._get_driver(t_id, self) def handle_alert(self, accept=True, send=None, timeout=None, next_one=False): r = self._handle_alert(accept=accept, send=send, timeout=timeout, next_one=next_one) diff --git a/setup.py b/setup.py index 2f84c94..0317688 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh: setup( name="DrissionPage", - version="4.0.3.1", + version="4.0.3.2", author="g1879", author_email="g1879@qq.com", description="Python based web automation tool. It can control the browser and send and receive data packets.",