mercredi 27 juillet 2016

Watir - Find elements using partial text

Is there a way to find an element by just text it contains?

Given:

<div>foobar</div> `browser.div(text: contains('foo')).present?
# => true'

Aucun commentaire:

Enregistrer un commentaire