From 66a840bfdd21fa99b4e1a5bf5c103f6d53130e5f Mon Sep 17 00:00:00 2001 From: g1879 Date: Mon, 27 Feb 2023 21:54:22 +0800 Subject: [PATCH] =?UTF-8?q?3.2.5=E4=BF=AE=E5=A4=8D=E4=BC=A0=E5=85=A5driver?= =?UTF-8?q?=E6=97=B6=E5=88=9D=E5=A7=8B=E5=8C=96=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/chromium_page.py | 9 +++++---- setup.py | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/DrissionPage/chromium_page.py b/DrissionPage/chromium_page.py index 084fe1e..cd40e97 100644 --- a/DrissionPage/chromium_page.py +++ b/DrissionPage/chromium_page.py @@ -73,8 +73,8 @@ class ChromiumPage(ChromiumBase): :param tab_id: 要控制的标签页id,不指定默认为激活的 :return: None """ - self._chromium_init() # todo: 传递驱动器时是否须要 - if self._tab_obj: + self._chromium_init() + if self._tab_obj: # 传入driver的情况 self.process = None else: @@ -87,8 +87,9 @@ class ChromiumPage(ChromiumBase): tab_id = tab_id[0] self._driver_init(tab_id) - self._get_document() - self._first_run = False + + self._get_document() + self._first_run = False def _chromium_init(self): """添加ChromiumPage独有的运行配置""" diff --git a/setup.py b/setup.py index 56c9ef6..129b987 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="3.2.4", + version="3.2.5", author="g1879", author_email="g1879@qq.com", description="Python based web automation tool. It can control the browser and send and receive data packets.",