获取view绝对位置失败
var thumbView = smartFindView('id:com.tencent.gallerymanager:id/photo_thumb_iv', {flag: 'find_all'});
if(thumbView.length <= 0){
console.log("没有照片退出");
return ;
}
var view = ret.thumbView[0];
console.log("lllllllllllllllllllllll" + (view.left+10.5));
console.log("ttttttttttttttttttttttt" + (view.top+10.5));
gestureClick(thumbView[0].left+10.5, humbView[0].top+10.5, {unit:'px',duration:500,afterWait:1500});
日志信息:
1603 15:47:30.693 lllllllllllllllllllllllundefined10.5
1608 15:47:30.696 tttttttttttttttttttttttundefined10.5