[求助] 各位大佬请问这个控件该如何定位 #1252
FlootingDream
started this conversation in
General
Replies: 2 comments 1 reply
-
|
快照捏? |
Beta Was this translation helpful? Give feedback.
0 replies
-
你说的规则,即选择器 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
定位的按钮:主界面右下角X(关闭)
主界面快照:https://i.gkd.li/i/24590682
自己写的规则
{
key: 1,
name: '关闭小窗播放器',
desc: '点击小窗播放器右侧的关闭按钮',
rules: [
{
matches: [
'ImageButton[desc="预览缩略图"] +2 LinearLayout > ImageButton + ImageButton[visibleToUser=true][clickable=true]',
],
activityIds: [
'by.green.tuber.MainActivity',
],
},
],
}
存在的问题:但是在关闭成功后,打开新的播放界面(播放界面快照)会匹配成功这个规则(会自动关闭播放界面)
Record_2026-01-13-21-05-53_c4f179f887af8b031b930fd7706925fb.mp4
Beta Was this translation helpful? Give feedback.
All reactions