1、在尝试换了多种输入法后均未起作用
2、最终换Appium输入法
- 安装Appium输入法
npm i android-unicode --save
- 切换手机输入法
在手机设置中切换
- 在代码中添加下面的代码
desired_caps['resetKeyboard'] = 'true'
desired_caps['unicodeKeyboard'] = 'true'
搞定~
解决Appium输入法问题
本文介绍了当使用Appium进行自动化测试时遇到输入法问题的解决办法。通过更换多种输入法无效后,最终采用Appium输入法并配置相关参数来解决问题。
1、在尝试换了多种输入法后均未起作用
2、最终换Appium输入法
npm i android-unicode --save
在手机设置中切换
desired_caps['resetKeyboard'] = 'true'
desired_caps['unicodeKeyboard'] = 'true'
搞定~

被折叠的 条评论
为什么被折叠?