perf(APKPure): Key 2、3,匹配为可见时才执行点击 (#232)

Signed-off-by: gigibooom <171463165+gigibooom@users.noreply.github.com>
This commit is contained in:
gigibooom
2024-06-03 17:42:11 +08:00
committed by GitHub
parent 56405c6af6
commit a7b223c726

View File

@@ -29,7 +29,7 @@ export default defineGkdApp({
'com.apkpure.aegon.cms.activity.CommonActivity',
'com.apkpure.aegon.main.activity.AppMoreActivity',
],
matches: '@ViewGroup[clickable=true] > [text="查看更多"]',
matches: '@ViewGroup[clickable=true] > [text="查看更多"][visibleToUser=true]',
snapshotUrls: 'https://i.gkd.li/i/15469126',
},
],
@@ -48,13 +48,13 @@ export default defineGkdApp({
{
name: '点击三点图标',
key: 0,
matches: '@ImageView - RelativeLayout >3 [text="AD"]',
matches: '@ImageView - RelativeLayout >3 [text="AD"][visibleToUser=true]',
snapshotUrls: 'https://i.gkd.li/i/13466329',
},
{
name: '点击关闭',
preKeys: 0,
matches: '@LinearLayout[clickable=true] >2 [text="关闭"]',
matches: '@LinearLayout[clickable=true] >2 [text="关闭"][visibleToUser=true]',
snapshotUrls: 'https://i.gkd.li/i/13466610',
},
],