vendredi 2 septembre 2016

How can I click on link containing a particular span in behat

<h3>
<span class="label label-default">text1</span>
<a class="btn btn-xs btn-success btn-style" href="link1">
<span class="icon glyphicon glyphicon-plus" aria-hidden="true"></span>
text
</a>

Please help with the code to click on "text" by referring to "text1" in Behat. "text1" is a unique property name and I have to use this to click on link "text".

Aucun commentaire:

Enregistrer un commentaire