mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-10 04:00:23 +08:00
微调
This commit is contained in:
parent
01b107154e
commit
d951dd84c9
@ -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参数初始化
|
||||
|
@ -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对象"""
|
||||
|
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user