My goal is to find the xpath that will select the seat "12A" from a webpage containing a list of seats. Here's the source code:
<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>
After trying out various options, I ended up with this xpath which did not work as expected:
"//*[@class='seats']/ul[@class='row_12 leftOf`Aisle']/li[1]/a"