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

Oct 19, 2021 4:11:41 PM
报错: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");
    }
}


发表评论
最新评论
商务合作QQ:2231485359
Copyright © 2021-2022 杭州汇骋科技有限公司. All rights reserved. 浙ICP备15043866号-4