zope.testbrowser
zope.testbrowser copied to clipboard
getLink() used to see iframes, now it doesn't
The old mechanize-based zope.testbrowser allowed the following:
>>> print(browser.contents)
...
<iframe width="..." height="..." src="http://localhost/style_preview.html"></iframe>
...
>>> browser.getLink(url='preview')
<Link text=None url='http://localhost/pdr/style_preview.html'>
>>> browser.getLink(url='preview').click()
The new WebTest-based zope.testbrowser does not treat iframes as links.
(I'm not arguing that it should, but maybe we want to add a note about this to the documentation and WONTFIX this bug?)