Closed zhanghao921 closed 2 years ago
[ { "prob": 1, "activity":"com.xueqiu.android.main.view.MainActivity", "times": 1, "actions": [ { "xpath":'//_[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[7]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[6]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[5]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[4]', "action": "CLICK", "throttle": 500 } ] } ]
一般都是配置的不对,这个脚本是可以正常执行的
[ { "prob": 1, "activity":"com.xueqiu.android.main.view.MainActivity", "times": 1, "actions": [ { "xpath":'//_[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[7]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[6]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[5]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[4]', "action": "CLICK", "throttle": 500 } ] } ]
使用 json.cn 等 format 工具检测配置, 你这个配置是错的。
[ { "prob": 1, "activity":"com.xueqiu.android.main.view.MainActivity", "times": 1, "actions": [ { "xpath":'//_[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[7]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[6]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tabrv"]/android.widget.RelativeLayout[5]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[4]', "action": "CLICK", "throttle": 500 } ] } ]
使用 json.cn 等 format 工具检测配置, 你这个配置是错的。
使用Jason.cn检查无问题的配置,也无法正常执行,请问是什么原因呢@geron-cn
[ { "prob": 1, "activity":"com.xueqiu.android.main.view.MainActivity", "times": 1, "actions": [ { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[7]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[6]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[5]', "action": "CLICK", "throttle": 500 }, { "xpath":'//[@resource-id="com.dangbei.TVHomeLauncher:id/activity_main_header_tab_rv"]/android.widget.RelativeLayout[4]', "action": "CLICK", "throttle": 500 } ] } ]