3.2.5修复传入driver时初始化不正确的问题

This commit is contained in:
g1879 2023-02-27 21:54:22 +08:00
parent 53165f0337
commit 66a840bfdd
2 changed files with 6 additions and 5 deletions

View File

@ -73,8 +73,8 @@ class ChromiumPage(ChromiumBase):
:param tab_id: 要控制的标签页id不指定默认为激活的 :param tab_id: 要控制的标签页id不指定默认为激活的
:return: None :return: None
""" """
self._chromium_init() # todo: 传递驱动器时是否须要 self._chromium_init()
if self._tab_obj: if self._tab_obj: # 传入driver的情况
self.process = None self.process = None
else: else:
@ -87,8 +87,9 @@ class ChromiumPage(ChromiumBase):
tab_id = tab_id[0] tab_id = tab_id[0]
self._driver_init(tab_id) self._driver_init(tab_id)
self._get_document()
self._first_run = False self._get_document()
self._first_run = False
def _chromium_init(self): def _chromium_init(self):
"""添加ChromiumPage独有的运行配置""" """添加ChromiumPage独有的运行配置"""

View File

@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
setup( setup(
name="DrissionPage", name="DrissionPage",
version="3.2.4", version="3.2.5",
author="g1879", author="g1879",
author_email="g1879@qq.com", author_email="g1879@qq.com",
description="Python based web automation tool. It can control the browser and send and receive data packets.", description="Python based web automation tool. It can control the browser and send and receive data packets.",