Chrome驱动程序在不受支持的非bmp字符上崩溃。如何绕过这个

时间:2019-01-24 10:43:48

标签: python selenium google-chrome selenium-chromedriver

我正在使用Selenium chrome驱动程序来进行一些自动化。有时我会遇到不同类型的unicode和非bmp字符,这会使我的chrome崩溃。我只是想知道是否有办法解决这个问题?像删除它们或做一些事情一样,使我的chrome驱动程序不会崩溃。

我正在使用Chrome驱动程序2.45.615291

selenium.common.exceptions.WebDriverException: Message: unknown error: ChromeDriver only supports characters in the BMP

1 个答案:

答案 0 :(得分:0)

在FFFF之后,Chrome驱动程序将不支持Unicode字符,在以后的chrome版本中,该功能将被视为添加该功能。

这是Chrome驱动程序错误,请参阅:Relevant chromedriver bug report

您可以使用Firefox,IE或Edge来避免此问题,因为这些浏览器驱动程序将支持此功能。