Skip to content

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

@mgedmin

Description

@mgedmin

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    compatCompatibility issues due to mechanize -> webtest migration in 5.0.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions