findview(),方法使用报错
代码:
function main() {
var ret = smartFindView('id:com.tencent.gallerymanager:id/enter_btn', {failed: exitPopup, maxStep:50});
if (ret.length <= 0) {
console.error('找不到容器');
return result;
}
console.log("+++++++++++++++++");
console.log(ret);
console.log("+++++++++++++++++");
if(ret.length>0){
console.log("1111111111111111");
console.log(ret);
console.log("1111111111111111");
}
}
报错信息:
157 17:27:54.513 +++++++++++++++++
158 17:27:54.515 error FunctionExpr NoSuchMethodException-- obj:com.libra.sar.robot.jsengine.var.object.Console@d518b05 item:log
159 17:27:54.516 +++++++++++++++++