oscarxie / android-test-kit

Automatically exported from code.google.com/p/android-test-kit
0 stars 0 forks source link

Unable to type non-English words with typeText() #49

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Do ViewActions.typeText() with other languages.

What is the expected output? What do you see instead?
Expected: The text is typed at the right view
Actual: NullPointerException is thrown

What version of the product are you using? On what operating system?
Espresso 1.1

Please provide any additional information below.
It may be hard for Espresso to switch IME keyboard and do the type, so maybe 
the fix for this is to use view.setText() when it sees non-English text.

Original issue reported on code.google.com by K76...@gmail.com on 18 Jan 2014 at 7:34

GoogleCodeExporter commented 9 years ago
Switching IME is outside the scope of Espresso (requires system permissions).

As a workaround, you could write an action to setText directly on the TextView.

Original comment by vale...@google.com on 7 May 2014 at 6:51