splinter icon indicating copy to clipboard operation
splinter copied to clipboard

Find link by partial text does not match with nested element texts

Open juhamust opened this issue 14 years ago • 3 comments

Finding links by partial text has been broken since 0.4.5:

HTML:

<a href="#"><span>Click me</span></a>

Code:

>>> browser.find_link_by_partial_text('Click me')[0].click()
splinter.exceptions.ElementDoesNotExist: no elements could be find with partial text "Click me"

This works still in 0.4.4

juhamust avatar Nov 08 '12 14:11 juhamust

This should be fixed by a74fb727935724b3f3211a9d3089a4af77edfca0. See also #230.

kedder avatar Feb 03 '14 11:02 kedder

@andrewsmedina I can't reproduce this issue, can you?

javascript-error avatar Aug 13 '20 14:08 javascript-error

#992 Added tests which confirm this behaviour isn't occurring anymore.

javascript-error avatar Jan 22 '22 02:01 javascript-error