Auto.js常用控件

时间:2020-05-29 21:57:05   收藏:0   阅读:383

launchApp()

launch()

sleep(random(1000,2000))

toastLog()

text().waitFor()

descContains()

.findOne()

.findOnce()

.find()

back()

press(x,y,time)

click(x,y)

a.bounds().centerX() a.bounds().centerY()

setClip()

getClip()

a.setText()

a.input()

swipe(x1,y1,x2,y2,duringTime)

gesture(duringTime,[x1,y1],[x2,y2])

text("属性值").findOne().parent().click()

text("属性值").findOne().childCount()

text("属性值").findOne().childen().forEach(function(child){log(child.id()}

原文:https://www.cnblogs.com/Kuris101/p/12989594.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!