zope.testbrowser icon indicating copy to clipboard operation
zope.testbrowser copied to clipboard

getLink() used to see iframes, now it doesn't

Open mgedmin opened this issue 5 years ago • 0 comments

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?)

mgedmin avatar Jun 25 '19 14:06 mgedmin