You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A page contains a submit control whose value contains a non-ASCII character.
There is also a select with options or a text input field on this page.
browser.getControl() is used to select a not existing control.
This leads to a UnicodeDecodeError when zope.testbrowser tries to render the list of possible controls using the mechRepr of the controls. The exception happens when joining the mechRepr values of the controls because to a single string. The ones of the select options and text fields are unicode while the one of the submit control is str but contains a non-ASCII char.
The text was updated successfully, but these errors were encountered:
Fixes#38
As the scenario described in the ticket requires the `mechRepr` to be of the same type for all controls I decided to adapt the two remaining control classes which returned unicode to the str approach used by of the majority of the controls.
Fixes#38
As the scenario described in the ticket requires the `mechRepr` to be of the same type for all controls I decided to adapt the two remaining control classes which returned unicode to the str approach used by of the majority of the controls.
The following scenario error leads to an error:
browser.getControl()
is used to select a not existing control.This leads to a UnicodeDecodeError when zope.testbrowser tries to render the list of possible controls using the
mechRepr
of the controls. The exception happens when joining themechRepr
values of the controls because to a single string. The ones of the select options and text fields areunicode
while the one of the submit control isstr
but contains a non-ASCII char.The text was updated successfully, but these errors were encountered: