吾爱破解 - LCG - LSG |安卓破解|病毒分析|www.52pojie.cn

 找回密码
 注册[Register]

QQ登录

只需一步,快速开始

查看: 850|回复: 4
收起左侧

[求助] python+selenium定位元素

[复制链接]
xield 发表于 2022-1-15 21:05
<ul class="ivu-tree-children" visible="visible">下面有好多<ul class="ivu-tree-children">
我需要定位没有 visible="visible"属性的元素该怎么做?
ul = wd.find_elements(By.XPATH, '//ul[@class="ivu-tree-children" and not @visible="visible"]')和ul = wd.find_elements(By.XPATH, '//ul[not(@visible="visible")]')这么写都好像不太对

发帖前要善用论坛搜索功能,那里可能会有你要找的答案或者已经有人发布过相同内容了,请勿重复发帖。

hipda987 发表于 2022-1-16 08:25
最好把网址或是其它信息也贴一下,好方便调试
ying656 发表于 2022-1-16 08:59
helloworld2022 发表于 2022-1-16 09:21
mahosho 发表于 2022-1-17 00:50
ul = wd.find_elements(By.XPATH, '//ul[@class="ivu-tree-children" and @visible!="visible"]')
试试这个
您需要登录后才可以回帖 登录 | 注册[Register]

本版积分规则 警告:本版块禁止回复与主题无关非技术内容,违者重罚!

快速回复 收藏帖子 返回列表 搜索

RSS订阅|小黑屋|处罚记录|联系我们|吾爱破解 - LCG - LSG ( 京ICP备16042023号 | 京公网安备 11010502030087号 )

GMT+8, 2024-5-6 19:16

Powered by Discuz!

Copyright © 2001-2020, Tencent Cloud.

快速回复 返回顶部 返回列表