【问题标题】:How to handle "org.openqa.selenium.WebDriverException: ChromeDriver only supports characters in the BMP" exception?如何处理“org.openqa.selenium.WebDriverException:ChromeDriver 仅支持 BMP 中的字符”异常?
【发布时间】:2015-10-20 22:43:42
【问题描述】:

每当我尝试填充一些非 BMP 字符时,例如 '????'作为使用 selenium 对文本区域的输入,我的 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)

任何建议将不胜感激。

【问题讨论】:

标签: java google-chrome selenium


【解决方案1】:

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-04-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多