Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
645 views
in Technique[技术] by (71.8m points)

java - How to handle "org.openqa.selenium.WebDriverException: ChromeDriver only supports characters in the BMP" exception?

Whenever I try to fill some non BMP character like '??' as input to a text area using selenium, my chrome driver fails due to following exception:

org.openqa.selenium.WebDriverException: unknown error: ChromeDriver only supports characters in the BMP

The below thread says it has been fixed in google chrome, but I don't think so: https://code.google.com/p/chromedriver/issues/detail?id=187

I am using chrome driver (version 2.15.322448) and chrome browser (version 43.0.2357.65)

Any suggestions would be appreciated.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

The link https://code.google.com/p/chromedriver/issues/detail?id=187 mentions that firefox browser has support for non-BMP characters as well.

I tried using firefox driver and Firefox browser (version 31) and it worked. Right now this is the workaround, instead of using chrome driver to use firefox driver.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...