如何处理"org.openqa.selenium.WebDriverException:ChromeDriver只支持BMP中的字符"异常?

Abh*_*hek 5 java selenium google-chrome

每当我尝试使用selenium填充某些非BMP字符(如''作为文本区域的输入)时,我的chrome驱动程序因以下异常而失败:

org.openqa.selenium.WebDriverException:未知错误:ChromeDriver仅支持BMP中的字符

下面的帖子说它已在谷歌浏览器中修复,但我不这么认为:https://code.google.com/p/chromedriver/issues/detail?id = 187

我正在使用chrome驱动程序(版本2.15.322448)和chrome浏览器(版本43.0.2357.65)

任何建议,将不胜感激.

Abh*_*hek 0

链接https://code.google.com/p/chromedriver/issues/detail?id=187提到 Firefox 浏览器也支持非 BMP 字符。

我尝试使用 Firefox 驱动程序和 Firefox 浏览器(版本 31)并且成功了。现在这是解决方法,而不是使用 chrome 驱动程序来使用 firefox 驱动程序。