appium 安卓无法点击搜索框解决办法
最近在弄python控制app做一些自动化的事情
碰到很多地方需要点击搜索按钮,搜了一堆,最终找到了完美的解决办法
之前的
1
2
3
4
5
6
7
8
9
10
def enter(self):
# 参考 http://www.lemfix.com/topics/277
# 切换成搜狗输入法
os.system("adb shell ime set com.sohu.inputmethod.sogou/.SogouIME")
sleep(5)
self.driver.press_keycode(66) # 按回车
sleep(3)