diff options
| author | Timothy Elliott <tle@holymonkey.com> | 2013-03-06 16:01:06 -0800 |
|---|---|---|
| committer | Timothy Elliott <tle@holymonkey.com> | 2013-03-06 17:09:52 -0800 |
| commit | 9b8e805afbb5a3321bbe6633e7f1051f665cd30d (patch) | |
| tree | d2c607c315dab1ed3a6120ae5c7462226fd0c639 /webtest/response.py | |
| parent | ab572376e3aa17dcc4b928a3040449336991f33d (diff) | |
| download | webtest-9b8e805afbb5a3321bbe6633e7f1051f665cd30d.tar.gz | |
Allow TestResponse.click() to match HTML content as well as text content.
This brings TestResponse.click() in alignment with the documentation,
which states that description will match "HTML and all".
Diffstat (limited to 'webtest/response.py')
| -rw-r--r-- | webtest/response.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/webtest/response.py b/webtest/response.py index 94cc209..275bd00 100644 --- a/webtest/response.py +++ b/webtest/response.py @@ -193,7 +193,7 @@ class TestResponse(webob.Response): total_links = 0 for element in self.html.find_all(tag): el_html = str(element) - el_content = element.get_text() + el_content = element.decode_contents() attrs = element if verbose: printlog('Element: %r' % el_html) |
