简体   繁体   中英

Selenium error: UnicodeEncodeError

I am getting the following error when i execute the following command:

text = idobi Radio: New. Music. Unfiltered. idobi.com - a SHOUTcast.com member station    
self.se.is_element_present("css=a[href]:contains('idobi Radio: New. Music. Unfiltered. idobi.com - a SHOUTcast.com member station')")

The title I am searching for on the website, is as follows:

idobi Radio: New. Music. Unfiltered. idobi.com - a SHOUTcast.com member station

The whole error i get is :

 UnicodeEncodeError: 'ascii' codec can't encode character u'\u2026' in position 91: ordinal not in range(128)

could someone please help me with this issue?

thanks.

Selenium itself is Unicode-safe. It's probably a pure-Python problem, not a Selenium problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM