报错:error JSObject get object failed value class:class java.lang.String t:class com.libra.sar.robot.jsengine.c.d.c.h key:failed value:exitPopup
代码:switchPage('id:com.ss.android.ugc.aweme:id/j6_', 'id:com.ss.android.ugc.aweme:id/cl4', {failed: exitPopup, beforeWait: 5000, afterWait: 3000});
function exitPopup() {
var ret = findView("txt:青少年模式", {maxSetp: 1});
if(ret.length > 0){
console.log("弹出了青少年模式");
clickByTag("id:com.ss.android.ugc.aweme:id/aft");
}
}