I'm running a functional test with NightwatchJs and i got a html similar to this one.
<div>
<span class="ps-cls">value 1</span>
</div>
<div>
<span class="ps-cls">value 2</span>
</div>
What i need is to get the value of the second span (with value 2). I tried with pseudoclass but i couldn't get it.
How can i get that kind of element? (a nodeChild with duplicated class).
Aucun commentaire:
Enregistrer un commentaire