From 646ff6867887a48ffc806964286412d860d848fd Mon Sep 17 00:00:00 2001 From: Kun Jinkao <45487685+Snoopy1866@users.noreply.github.com> Date: Sat, 21 Oct 2023 23:22:50 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E5=BA=94=E7=94=A8=E5=AE=89=E8=A3=85?= =?UTF-8?q?=E5=99=A8):=20=E8=87=AA=E5=8A=A8=E5=AE=89=E8=A3=85=E5=BA=94?= =?UTF-8?q?=E7=94=A8-=E8=A7=84=E5=88=99=E4=BC=98=E5=8C=96=20(#1264)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: 自动安装应用(完善规则) * feat: 自动安装应用(完善规则) --- src/apps/com.oplus.appdetail.ts | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/apps/com.oplus.appdetail.ts b/src/apps/com.oplus.appdetail.ts index a4b63ef4..e895cd31 100644 --- a/src/apps/com.oplus.appdetail.ts +++ b/src/apps/com.oplus.appdetail.ts @@ -17,9 +17,10 @@ export default defineAppConfig({ matches: '[id="com.oplus.appdetail:id/view_bottom_guide_continue_install_btn"]', excludeMatches: - '[id="com.oplus.appdetail:id/view_scanning_and_tip_view_tv_title"]', + '[id="com.oplus.appdetail:id/view_scanning_and_tip_view_tv_title"][text^="正在扫描"]', snapshotUrls: [ 'https://gkd-kit.songe.li/import/13038560', // 使用 excludeMatches,扫描病毒阶段不进行点击 + 'https://gkd-kit.songe.li/import/13054204', 'https://gkd-kit.songe.li/import/13038570', ], }, @@ -27,9 +28,16 @@ export default defineAppConfig({ key: 1, desc: '点击【完成】', activityIds: 'com.oplus.appdetail.model.finish.InstallFinishActivity', - matches: '[id="com.oplus.appdetail:id/launch_button"]', + matches: '[id="com.oplus.appdetail:id/launch_button"][text="完成"]', snapshotUrls: 'https://gkd-kit.songe.li/import/13038664', }, + { + key: 2, + desc: '点击【完成】', + activityIds: 'com.oplus.appdetail.model.finish.InstallFinishActivity', + matches: '[id="com.oplus.appdetail:id/done_button"][text="完成"]', + snapshotUrls: 'https://gkd-kit.songe.li/import/13054849', + }, ], }, ],