3.0.8修改小bug

This commit is contained in:
g1879 2022-11-22 23:39:39 +08:00
parent 1c212b21b4
commit 8209785a4f
4 changed files with 4 additions and 4 deletions

View File

@ -837,7 +837,7 @@ class ChromiumElement(DrissionElement):
js = 'return document.documentElement.scrollLeft+" "+document.documentElement.scrollTop;' js = 'return document.documentElement.scrollLeft+" "+document.documentElement.scrollTop;'
xy = self.run_script(js) xy = self.run_script(js)
sx, sy = xy.split(' ') 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): class ChromiumShadowRootElement(BaseElement):

View File

@ -599,7 +599,7 @@ def _get_running_args(opt: DriverOptions) -> list:
result.append(arg) result.append(arg)
# ----------处理extensions------------- # ----------处理extensions-------------
ext = opt.extensions ext = opt._extension_files
if ext: if ext:
ext = set(ext) ext = set(ext)
if sys == 'windows': if sys == 'windows':

View File

@ -1,4 +1,4 @@
# v3.0.2 # v3.0.8
重大更新。推出`WebPage`,重新开发底层逻辑,摆脱对 selenium 的依赖,增强了功能,提升了运行效率。支持 chromium 内核的浏览器(如 chrome 和 edge。比`MixPage`有以下优点: 重大更新。推出`WebPage`,重新开发底层逻辑,摆脱对 selenium 的依赖,增强了功能,提升了运行效率。支持 chromium 内核的浏览器(如 chrome 和 edge。比`MixPage`有以下优点:

View File

@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
setup( setup(
name="DrissionPage", name="DrissionPage",
version="3.0.7", version="3.0.8",
author="g1879", author="g1879",
author_email="g1879@qq.com", author_email="g1879@qq.com",
description="A module that integrates selenium and requests session, encapsulates common page operations.", description="A module that integrates selenium and requests session, encapsulates common page operations.",