I am trying to query text in within all option tags with data-store values labeled Book1. Below is the subject drop-down list.
<div class="form-group">
<label>Cards</label>
<select class="form-control giftcard-selector" name="giftcard">
<option data-store="Book1" data-number="110" data-pin="333" data-balance="93.92" value="81372" style="display: none;">Book1: 1110 ($93.92)</option>
<option data-store="Book2" data-number="111" data-pin="0619" data-balance="7.56" value="81371" style="display: none;">Book2: 112 ($7.56)</option>
<option data-store="Book1" data-number="113" data-pin="8229" data-balance="10.24" value="81369" style="display: none;">Book1: 113 ($10.24)</option>
<option data-store="Book2" data-number="114" data-pin="0984" data-balance="2.17" value="81373" style="display: none;">Book2: 115 ($2.17)</option>
</select>
</div>
I have tried the following xpath to query all text within option tags data-store values labeled "Book1" but it returns "Null".Any help would be appreciated.
//select[@class="form-control giftcard-selector"]/option@data-store="Book1"