If I have this DOM:
<div class="A others classes">
other elements
<div class="AB other classes"></div>
other elements
</div>
I want to select the div
with class A
.
I have tried with //div[contains(@class, 'A')]
, but also select the div
with class AB
.
How I can select just div
with class A
? I can't use other classes in xpath, because are dynamic added to element.