执行代码的过程当中运行self.driver.press_keycode(84)设备没反映,则须要关闭#desired_caps["unicodeKeyboard"] = "True"输入法,app
若self.driver.press_keycode(84)仍是没反映就用,self.driver.press_keycode(66)测试
注:84表明模拟按键搜索,66表明回车spa
若还不行。。code
则须要在输入代码行以前切换输入法,从appium输入法切换到baidu,切换以后有必要等待几秒,而后输入字符,而后执行self.driver.press_keycode(66)blog
测试了半天终于通了。。。。unicode
如何切换输入法:搜索
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@im