mirror of
https://gitee.com/g1879/DrissionPage.git
synced 2024-12-01 19:47:35 +08:00
3.2.2修复元素内查找元素时xpath内有单引号导致出错问题
This commit is contained in:
parent
a0ffd4707a
commit
29eb80b107
@ -1285,6 +1285,7 @@ else{a.push(e.snapshotItem(i));}}"""
|
||||
else:
|
||||
return_txt = 'return e.singleNodeValue;'
|
||||
|
||||
xpath = xpath.replace(r"'", r"\'")
|
||||
js = f'function(){{var e=document.evaluate(\'{xpath}\',{node_txt},null,{type_txt},null);\n{for_txt}\n{return_txt}}}'
|
||||
|
||||
return js
|
||||
|
10
README.md
10
README.md
@ -34,15 +34,11 @@ python 版本:3.6 及以上
|
||||
|
||||
---
|
||||
|
||||
# 🔥 新版预告
|
||||
# 🔥 新版介绍
|
||||
|
||||
即将发布 3.2.0 版本将有相当大变化。对底层逻辑进行了梳理,修复了许多问题,提高了稳定性,也对用户 api 进行了整合。
|
||||
3.2 版已经发布。对底层逻辑进行了梳理,修复了许多问题,提高了稳定性,也对用户 api 进行了调整。
|
||||
|
||||
功能开发已进入尾声,剩余一些细节问题须要调整。
|
||||
|
||||
作者正在进行一些测试,但难以面面俱到,欢迎有兴趣的大侠们 fork 过去体验,并提出宝贵的意见和建议。
|
||||
|
||||
详情查看:[新版预告](https://g1879.gitee.io/drissionpagedocs/next/)
|
||||
详情查看:[新版介绍](https://g1879.gitee.io/drissionpagedocs/new/)
|
||||
|
||||
---
|
||||
|
||||
|
2
setup.py
2
setup.py
@ -6,7 +6,7 @@ with open("README.md", "r", encoding='utf-8') as fh:
|
||||
|
||||
setup(
|
||||
name="DrissionPage",
|
||||
version="3.2.1",
|
||||
version="3.2.2",
|
||||
author="g1879",
|
||||
author_email="g1879@qq.com",
|
||||
description="Python based web automation tool. It can control the browser and send and receive data packets.",
|
||||
|
Loading…
Reference in New Issue
Block a user