简体   繁体   中英

Chrome driver crashes on unsupported non-bmp characters. How to bypass this

I am using selenium chrome driver to do some automation. Sometimes I encounter different types of unicode and non-bmp characters and it crashes my chrome. I was just wondering if there is a way to deal with this? Like removing them or doing something so my chrome driver doesn't crash.

I am using chrome driver 2.45.615291

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

Chrome Driver won't support characters with a Unicode after FFFF and in a future chrome releases this feature will be considered to add it.

This is a chrome driver bug, please refer: Relevant chromedriver bug report

You can use Firefox, IE or Edge to avoid this issue because these browser driver will support this feature.

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