From 8209785a4faf5d272ed97eb675c6050f6e7e061c Mon Sep 17 00:00:00 2001 From: g1879 Date: Tue, 22 Nov 2022 23:39:39 +0800 Subject: [PATCH] =?UTF-8?q?3.0.8=E4=BF=AE=E6=94=B9=E5=B0=8Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DrissionPage/chromium_element.py | 2 +- DrissionPage/common.py | 2 +- docs/版本历史.md | 2 +- setup.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/DrissionPage/chromium_element.py b/DrissionPage/chromium_element.py index 4af9f98..395622b 100644 --- a/DrissionPage/chromium_element.py +++ b/DrissionPage/chromium_element.py @@ -837,7 +837,7 @@ class ChromiumElement(DrissionElement): js = 'return document.documentElement.scrollLeft+" "+document.documentElement.scrollTop;' xy = self.run_script(js) sx, sy = xy.split(' ') - return {'x': x + int(sx), 'y': y + int(sy)} + return {'x': x + int(float(sx)), 'y': y + int(float(sy))} class ChromiumShadowRootElement(BaseElement): diff --git a/DrissionPage/common.py b/DrissionPage/common.py index 4350da3..74d00be 100644 --- a/DrissionPage/common.py +++ b/DrissionPage/common.py @@ -599,7 +599,7 @@ def _get_running_args(opt: DriverOptions) -> list: result.append(arg) # ----------处理extensions------------- - ext = opt.extensions + ext = opt._extension_files if ext: ext = set(ext) if sys == 'windows': diff --git a/docs/版本历史.md b/docs/版本历史.md index 1261106..2639e57 100644 --- a/docs/版本历史.md +++ b/docs/版本历史.md @@ -1,4 +1,4 @@ -# v3.0.2 +# v3.0.8 重大更新。推出`WebPage`,重新开发底层逻辑,摆脱对 selenium 的依赖,增强了功能,提升了运行效率。支持 chromium 内核的浏览器(如 chrome 和 edge)。比`MixPage`有以下优点: diff --git a/setup.py b/setup.py index 1002260..1bea2b3 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.0.7", + version="3.0.8", author="g1879", author_email="g1879@qq.com", description="A module that integrates selenium and requests session, encapsulates common page operations.",