This commit is contained in:
g1879 2023-02-14 00:42:09 +08:00
parent 01b107154e
commit d951dd84c9
3 changed files with 3 additions and 2 deletions

View File

@ -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参数初始化

View File

@ -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对象"""

View File

@ -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()