How to use unicode inside an xpath string? (UnicodeEncodeError)
- by Gj
I'm using xpath in Selenium RC via the Python api.
I need to click an a element who's text is "Submit »"
Here's the error that I'm getting:
In [18]: sel.click(u"xpath=//a[text()='Submit \xbb')]")
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in…