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

Python Chrome驱动程序在不支持的非bmp字符上崩溃。如何绕过这个问题,python,selenium,google-chrome,selenium-chromedriver,Python,Selenium,Google Chrome,Selenium Chromedriver,我正在使用SeleniumChrome驱动程序来实现一些自动化。有时我会遇到不同类型的unicode和非bmp字符,这会使我的chrome崩溃。我只是想知道有没有办法解决这个问题?比如移除它们或者做一些事情,这样我的chrome驱动程序就不会崩溃 我使用的是chrome驱动程序2.45.615291 selenium.common.exceptions.WebDriverException: Message: unknown error: ChromeDriver only supports c

我正在使用SeleniumChrome驱动程序来实现一些自动化。有时我会遇到不同类型的unicode和非bmp字符,这会使我的chrome崩溃。我只是想知道有没有办法解决这个问题?比如移除它们或者做一些事情,这样我的chrome驱动程序就不会崩溃

我使用的是chrome驱动程序2.45.615291

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

Chrome驱动程序将不支持FFFF后带有Unicode的字符,在未来的Chrome版本中,将考虑添加此功能

这是一个chrome驱动程序错误,请参阅:


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

使用Firefox浏览器而不是Chrome,检查这是否有帮助如果我切换到Firefox,这是否意味着我必须重新编码所有与驱动程序相关的代码?不是所有代码,只是初始设置,如驱动程序初始化和Firefox的一些启动设置。您将使用Firefox,而不是在chrome中运行测试。就这样!无需更改web元素和所有内容。