From d951dd84c93d8aacedaa7878c17dc2c582f993e9 Mon Sep 17 00:00:00 2001 From: g1879 Date: Tue, 14 Feb 2023 00:42:09 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/chromium_base.py | 2 +- DrissionPage/session_page.py | 2 +- DrissionPage/web_page.py | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/DrissionPage/chromium_base.py b/DrissionPage/chromium_base.py index 4a4a05f..2768743 100644 --- a/DrissionPage/chromium_base.py +++ b/DrissionPage/chromium_base.py @@ -36,6 +36,7 @@ class ChromiumBase(BasePage): self._debug = False self._debug_recorder = None self._tab_obj = None + self._set = None self._set_start_options(address, None) self._set_runtime_settings() @@ -76,7 +77,6 @@ class ChromiumBase(BasePage): self._is_reading = False self._upload_list = None self._wait = None - self._set = None def _driver_init(self, tab_id): """新建页面、页面刷新、切换标签页后要进行的cdp参数初始化 diff --git a/DrissionPage/session_page.py b/DrissionPage/session_page.py index 1eac015..3dd3215 100644 --- a/DrissionPage/session_page.py +++ b/DrissionPage/session_page.py @@ -30,6 +30,7 @@ class SessionPage(BasePage): self._response = None self._download_set = None self._session = None + self._set = None self._set_start_options(session_or_options, None) self._set_runtime_settings() self._create_session() @@ -53,7 +54,6 @@ class SessionPage(BasePage): """设置运行时用到的属性""" self._timeout = self._session_options.timeout self._download_path = self._session_options.download_path - self._set = None def _create_session(self): """创建内建Session对象""" diff --git a/DrissionPage/web_page.py b/DrissionPage/web_page.py index 7d19711..a5824c1 100644 --- a/DrissionPage/web_page.py +++ b/DrissionPage/web_page.py @@ -45,6 +45,7 @@ class WebPage(SessionPage, ChromiumPage, BasePage): self._session_options = None self._response = None self._download_set = None + self._set = None self._set_start_options(driver_or_options, session_or_options) self._set_runtime_settings()