1

我无法为以下代码编写 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"/>
4

1 回答 1

0

您忘记了@XPath-Query-String 中的 at data-seller-id

input[@value="Add to Cart" and @data-seller-id="0275741dba3346b8"]
                               ^
于 2015-12-23T10:36:45.457 回答