我无法为以下代码编写xpath。
我试过了input[@value="Add to Cart" and data-seller-id="0275741dba3346b8"]
,但它没有用。
<input class="btn-buy-now btn-big disabled current active" type="submit" value="Add to Cart" data-is-listing-buyable="true" data-is-pin-available="false" data-is-pin-serviceable="true" data-is-in-cart="true" data-is-large="false" data-disable-cart="true" data-vertical="carabiner" data-pid="CBRE7GW7PSCGX3VD" data-seller-id="0275741dba3346b8" data-listing-metrics="TO_BE_IMPLEMENTED" data-buy-listing-id="LSTCBRE7GW7PSCGX3VD2BFSP7"/>
答案 0 :(得分:0)
您忘记了XPath-Query-String
中的data-seller-id@
input[@value="Add to Cart" and @data-seller-id="0275741dba3346b8"]
^