Ftw.testbrowser

Latest version: v2.1.2

Safety actively analyzes 642295 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 12 of 15

1.11.0

-------------------

- New browser.base_url property, respecting the <base> tag.
[jone]

- New browser.debug method, opening the current page in your real browser.
[jone]

- New browser.on method, a lazy variant of browser.open.
[jone]

- New browser.reload method, reloading the current page.
[jone]

- Improve requests library support:

- Support choosing requests library, make Zope app setup optional.
When no Zope app is set up, the ``requests`` library is set as default,
otherwise ``mechanize``.
- Support form submitting with requests library.
- Improve login and header support for equests library requests.
- Add browser.cookies support for requests library requests.
- Use requests library sessions, so that cookies and headers persist.
- Automatically use "POST" when data is submitted.

[jone]

- Login improvements:

- Support passing member objects to browser.login().
The users / members are still expected to hav TEST_USER_PASSWORD as password.

- Refactor login to use the new request header methods.

[jone]

- Add request header methods for managing permanent request headers:

- browser.append_request_header
- browser.replace_request_header
- browser.clear_request_header

[jone]

- Refactor Form: eliminate class methods and do not use the global browser.
This improves form support when running multiple browser instances concurrently.

- Form.field_labels (class method) is now a instance property and public API.
- Form.find_widget_in_form (class method) is removed and replaced with
Form.find_widget (instance method).
- Form.find_field_in_form (class method) is removed and replaced
Form.get_field (instance method).
- Form.find_form_element_by_label_or_name (class method) is removed and replaced
with browser.find_form_by_field.
- Form.find_form_by_labels_or_names (class method) is removed and replaced with
browser.find_form_by_fields.
- New Form.action_url property with the full qualified action URL.
- Fix form action URL bug when using relative paths in combination with
document-style base url.

[jone]

- Fix wrapping input.label - this did only work for a part of field types.
[jone]

- Fix UnicodeDecodeError in node string representation.
[mathias.leimgruber]

1.10.0

-------------------

- Add NodeWrapper-properties:

- innerHTML
- normalized_innerHTML
- outerHTML
- normalized_outerHTML

[jone, elioschmutz]

1.9.0

------------------

- Add support for filling AT MultiSelectionWidget.
[jone]

1.8.0

------------------

- Add a ``context`` property to the browser with the current
context (Plone object) of the currently viewed page.
[jone]

1.7.3

------------------

- Fix encoding problem in factories menu page object.
The problem occured when having a "Restrictions..." entry in the menu.
[jone]

1.7.2

------------------

- Form: Support checking checkboxes without a value.
Checkboxes without a value attribute are invalid but common.
The default browser behavior is to fallback to the value "on".
[jone]

Page 12 of 15

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.