无法写入xpath以在flipkart中添加到购物车

时间:2015-12-23 10:21:58

标签: xpath flipkart-api

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

1 个答案:

答案 0 :(得分:0)

您忘记了XPath-Query-String

中的data-seller-id @
input[@value="Add to Cart" and @data-seller-id="0275741dba3346b8"]
                               ^