简体   繁体   English

硒错误:UnicodeEncodeError

[英]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. Selenium本身是Unicode安全的。 It's probably a pure-Python problem, not a Selenium problem. 这可能是纯Python问题,而不是Selenium问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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