cobrateam / cobrateam/splinter

find_link_by_text doesn't like nested tags

Open
#219 3 comments 0 reactions 0 assignees View on GitHub
brainstorm on hold
Dominant language
Python
Stars
2.7k
Forks
511
PR merge metrics
No merged PRs in 30d

Description

Nested tags within link tags cause find_link_by_text and find_link_by_partial_text to fail even when they should. For example, save https://gist.github.com/medwards/8ccbbe698a46ec21e48a to `/tmp`

```
from splinter import Browser
foo = Browser()
foo.visit('file:///tmp/nested-stuff.html')
print foo.find_link_by_text("split")
print foo.find_link_by_text("sp")
print foo.find_link_by_text("sp l it") # this is the output given by foo.find_by_css('table')[1].text
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.