【发布时间】:2020-06-05 20:16:07
【问题描述】:
我正在用 Python 3.7 编写代码来测试 Appium 中的应用程序。
我正在尝试在应用程序的输入字段中发送文本。文本为法语,带有特殊字符(é、è、à 等)。
我的代码设法逐个字符地键入,但是当它到达带有重音“é”的特殊字符时,它会出错!这是错误信息:
Encountered internal error running command: io.appium.uiautomator2.common.exceptions.InvalidArgumentException: KeyCharacterMap.getEvents is unable to synthesize KeyEvent sequence out of '233' key code. Consider applying a patch to UiAutomator2 server code or try to synthesize the necessary key event(s) for it manually
我阅读了文档和论坛,并添加了此功能:
desired_caps['unicodeKeyboard'] ='true'
但这并没有改变任何东西。我仍然有同样的问题。
【问题讨论】:
标签: python-3.x appium appium-android python-appium