KasperskyLab / Kaspresso

Android UI test framework
https://kasperskylab.github.io/Kaspresso/
Apache License 2.0
1.81k stars 153 forks source link

device.keyboard.typeText for russian characters #50

Closed qwert2603 closed 4 years ago

qwert2603 commented 4 years ago

device.keyboard.typeText("йцуке") throws com.kaspersky.kaspresso.internal.exceptions.AdbServerException: command=input text й was performed with failed result=CommandResult(status=FAILED, description=exitCode=137, message=)

tested with:

RuslanMingaliev commented 4 years ago

Hi there! device.keyboard.typeText(...) uses adb commands for typing char by char. Unfortunately, it does not support cyrillic characters.

Please, consider to use ViewActions#typeText with Espresso or UiObject#setTextwith UiAutomator. Also, you can use Kautomator's UiViewActions for the same purpose.

RuslanMingaliev commented 4 years ago

@qwert2603 I'm closing the issue. Please, reopen it if the issue is still actual.

qwert2603 commented 4 years ago

@RuslanMingaliev Hi! OK, thank you for response.