Skip to content

Unicode characters are finding their way into Recorder-generated text asserts. (Eg: "\xa0") #1054

@mdmintz

Description

@mdmintz

Unicode characters are finding their way into Recorder-generated text asserts. (Eg: \xa0).

This unicode issue appears to be very common with websites. (https://stackoverflow.com/questions/10993612/how-to-remove-xa0-from-string-in-python has over 300 upvotes.)

The good news is that Stack Overflow already has the solution that's needed: https://stackoverflow.com/a/34669482

new_str = unicodedata.normalize("NFKD", unicode_str)

Using this should fix the text that's generated for text asserts by the SeleniumBase Recorder.

Metadata

Metadata

Assignees

Labels

bugUh oh... Something needs to be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions