I want xpath to select the seat "12A" from the web page which has list of seats to select and its source code is as follows:
<div class="seats" style="top: 48px;">
<ul class="row_12 leftOfAisle">
<li><a class="" data-row="12" data-seat="A" data-code="SPST" data-amount="300.00" href="javascript:;">
<span>12A</span></a></li>
<li><a class="" data-row="12" data-seat="B" data-code="SPST" data-amount="300.00" href="javascript:;">
<span>12B</span></a></li>
<li><a class="" data-row="12" data-seat="C" data-code="SPST" data-amount="300.00" href="javascript:;">
<span>12C</span></a></li>
</ul>
</div>
I have tried with many option and it didn't worked. i was ended with this xpath:
"//*[@class='seats']/ul[@class='row_12 leftOf`Aisle']/li[1]/a"