为什么我的 OR 运算符在 XPATH 上不起作用?

问题描述 投票:0回答:1

我都试过了

//th[text()="Seller Finanacing Available"]/following-sibling::td[text()="Yes" OR text()=""]

//th[text()="Seller Finanacing Available"]/following-sibling::td[text()="Yes"|text()=""]

但是两者都不起作用。当我想在 XPATH 中使用 OR 运算符作为属性值时,我做错了什么?

xpath operators
1个回答
0
投票

OR 应该小写

//th[text()="Seller Finanacing Available"]/following-sibling::td[text()="Yes" or text()=""]
© www.soinside.com 2019 - 2024. All rights reserved.