xpath条件下怎么提取

新手上路,请多包涵

<input class="a-input-text a-width-small a-spacing-mini sc-quantity-textfield sc-update-quantity-input" maxlength="3" value="16" autocomplete="off" name="quantityBox" data-feature-id="sc-update-quantity-input" aria-label="Quantity" type="text"/>

<input class="a-input-text a-width-small a-spacing-mini sc-quantity-textfield sc-update-quantity-input" maxlength="3" value="15" autocomplete="off" name="quantityBox" data-feature-id="sc-update-quantity-input" aria-label="Quantity" type="text"/>

怎么提取这些段里面value='16'里面16的这个值或者15

阅读 2.2k
2 个回答

xpath("//input/@value")