问题描述:
- 环境:Pycharm、Appium
- 移动端型号:Genymotion
- 移动端系统:android6.0
- 问题复述:使用press_keycode(66)在模拟器上实现,点击键盘的enter键:触发搜索,但没有生效
相关log文件
appium_0330.log (253.5 KB)
相关代码
def search(self, key: str):
self.find(MobileBy.ID, "search_input_text").send_keys(key)
self._driver.press_keycode(66)
return self