APPIUMsend_keys输入太慢?用adb可以提升很大速度

来源:互联网 发布:pp助手安装软件 编辑:程序博客网 时间:2024/04/29 17:45

appium输入过慢,采用adb方式

def fast_input(str,element):    '快速输入'    x = subprocess.check_output('adb devices', shell=True).split('\n')[1][:-7]    element.click()    time.sleep(0.3)    subprocess.Popen('adb -s %s shell input text %s'%(x,str), shell=True)    time.sleep(0.5)
阅读全文
0 0
原创粉丝点击