标签: xpath
我的网页上有一个居中的h3标记。是否可以通过使用like %needle%?
h3
like %needle%
HTML
<center><h3>hello folks</h3></center>
Xpath的
//center/h3[.="hello folks"]
以下是可能的吗?
//center/h3[Like("folks")]
答案 0 :(得分:1)
尝试类似
//center/h3[contains(.,'folks')]