我都试过了
//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 运算符作为属性值时,我做错了什么?
OR 应该小写
//th[text()="Seller Finanacing Available"]/following-sibling::td[text()="Yes" or text()=""]