如果子元素包含文本,XPath 查找元素

问题描述 投票:0回答:1
html xpath xpath-2.0
1个回答
0
投票
//div[//*[contains(text(), "1") or contains(text(), "3")]]
© www.soinside.com 2019 - 2024. All rights reserved.