zopefoundation / zope.testbrowser

Programmable browser for functional black-box tests
Other
21 stars 16 forks source link

`disambiguate` broken because of unicode/str mix in `mechRepr` results #38

Closed icemac closed 7 years ago

icemac commented 7 years ago

The following scenario error leads to an error:

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.