feat(OMOFUN): 规则优化 (#1708)

This commit is contained in:
shjdgwj
2023-11-02 05:58:07 -07:00
committed by GitHub
parent 28a435e99f
commit feb677ccca

View File

@@ -92,20 +92,18 @@ export default defineAppConfig({
'https://gkd-kit.gitee.io/import/12776903', 'https://gkd-kit.gitee.io/import/12776903',
], ],
}, },
// 该规则暂时不会遇到
// {
// action: 'clickCenter',
// matches:
// 'TextView[text="查看详情"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout > FrameLayout > ImageView',
// snapshotUrls: 'https://gkd-kit.gitee.io/import/12789196',
// },
{ {
action: 'clickCenter', action: 'clickCenter',
matches: matches:
'TextView[text="查看详情"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout > FrameLayout > ImageView', 'TextView[text="立即下载"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout[childCount=1] > ImageView',
snapshotUrls: 'https://gkd-kit.gitee.io/import/12789196', snapshotUrls: ['https://gkd-kit.gitee.io/import/12789928'],
},
{
action: 'clickCenter',
matches:
'TextView[text="立即下载" || text="查看详情"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout[childCount=1] > ImageView',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/12789928',
'https://gkd-kit.gitee.io/import/13071595',
],
}, },
{ {
action: 'click', action: 'click',
@@ -113,6 +111,15 @@ export default defineAppConfig({
'TextView[text^="摇动"||text^="点击"] <2 LinearLayout < LinearLayout < FrameLayout -n FrameLayout[childCount=1] > ImageView', 'TextView[text^="摇动"||text^="点击"] <2 LinearLayout < LinearLayout < FrameLayout -n FrameLayout[childCount=1] > ImageView',
snapshotUrls: 'https://gkd-kit.gitee.io/import/13063249', snapshotUrls: 'https://gkd-kit.gitee.io/import/13063249',
}, },
{
action: 'click',
matches:
'TextView[text="查看详情"] < FrameLayout <2 FrameLayout[childCount=2] -n FrameLayout > ImageView',
snapshotUrls: [
'https://gkd-kit.gitee.io/import/13215476',
'https://gkd-kit.gitee.io/import/13071595',
],
},
], ],
}, },
], ],