ios automation ios的自动化UI测试
var target = UIATarget.localTarget();
var app = target.frontMostApp();
var window = app.mainWindow();
target.logElementTree();
for (var i = 0; i < 10; i++) {
UIATarget.localTarget().tap({x:10, y:460});
target.logElementTree();
UIATarget.localTarget().tap({x:70, y:460});
target.logElementTree();
UIATarget.localTarget().tap({x:200, y:460});
target.logElementTree();
UIATarget.localTarget().tap({x:280, y:460});
//打印除当前界面的控件数信息
target.logElementTree();
}http://blog.manbolo.com/2012/04/08/ios-automated-tests-with-uiautomation
相关推荐
leitingdulante 2020-10-21
leitingdulante 2020-11-03
硬币0 2020-10-15
moses 2020-09-22
ZuoYanDeHuangHun 2020-09-18
chsoft 2020-09-17
fanxiaoxuan 2020-09-17
惠秀宝 2020-09-08
zhousanzhou 2020-08-26
MatrixHero 2020-08-20
xjp 2020-08-17
定格 2020-08-15
Mryiyi 2020-08-07
好好学习天天 2020-07-28
好好学习天天 2020-07-21
Mryiyi 2020-07-08
RocketJ 2020-07-03