2026-07-16 01:19:47 +08:00
|
|
|
|
# 微信 UI 自动化默认 Profile(兜底几何定位)
|
|
|
|
|
|
#
|
|
|
|
|
|
# 适用场景:无精确匹配 profile 时的最终兜底,覆盖 6 个核心元素。
|
|
|
|
|
|
# 几何参数参考 spec 4.2 节 YAML 示例与 xdotool_driver.py 现有硬编码常量。
|
|
|
|
|
|
#
|
|
|
|
|
|
# relative_to 字段仅作语义占位(window / window_bottom_right),
|
|
|
|
|
|
# 实际坐标计算统一用 x_ratio + x_offset / y_ratio + y_offset
|
|
|
|
|
|
# (offset 已含正负号区分方向,详见 Actions._geom_find)。
|
|
|
|
|
|
|
|
|
|
|
|
search_box:
|
|
|
|
|
|
by_geom:
|
|
|
|
|
|
relative_to: window
|
|
|
|
|
|
x_ratio: 0.08
|
|
|
|
|
|
y_ratio: 0.05
|
|
|
|
|
|
x_offset: 0
|
|
|
|
|
|
y_offset: 0
|
|
|
|
|
|
threshold: 0.80
|
|
|
|
|
|
require_image: false
|
|
|
|
|
|
description: 左侧顶部搜索框
|
|
|
|
|
|
|
|
|
|
|
|
send_button:
|
|
|
|
|
|
by_geom:
|
|
|
|
|
|
relative_to: window_bottom_right
|
|
|
|
|
|
x_ratio: 1.0
|
|
|
|
|
|
y_ratio: 1.0
|
|
|
|
|
|
x_offset: -60
|
|
|
|
|
|
y_offset: -30
|
|
|
|
|
|
threshold: 0.80
|
|
|
|
|
|
require_image: false
|
|
|
|
|
|
description: 右下角发送按钮
|
|
|
|
|
|
|
|
|
|
|
|
input_box:
|
|
|
|
|
|
by_geom:
|
|
|
|
|
|
relative_to: window
|
|
|
|
|
|
x_ratio: 0.65
|
|
|
|
|
|
y_ratio: 0.93
|
|
|
|
|
|
x_offset: 0
|
|
|
|
|
|
y_offset: 0
|
|
|
|
|
|
threshold: 0.80
|
|
|
|
|
|
require_image: false
|
|
|
|
|
|
description: 聊天输入框
|
|
|
|
|
|
|
|
|
|
|
|
input_box_empty:
|
|
|
|
|
|
by_geom:
|
|
|
|
|
|
relative_to: window
|
|
|
|
|
|
x_ratio: 0.65
|
|
|
|
|
|
y_ratio: 0.93
|
|
|
|
|
|
x_offset: 0
|
|
|
|
|
|
y_offset: 0
|
|
|
|
|
|
threshold: 0.80
|
|
|
|
|
|
require_image: false
|
|
|
|
|
|
description: 空输入框灰色提示态(发送成功后校验用)
|
|
|
|
|
|
|
|
|
|
|
|
search_result_first:
|
|
|
|
|
|
by_geom:
|
|
|
|
|
|
relative_to: window
|
|
|
|
|
|
x_ratio: 0.08
|
|
|
|
|
|
y_ratio: 0.11
|
|
|
|
|
|
x_offset: 0
|
|
|
|
|
|
y_offset: 0
|
|
|
|
|
|
threshold: 0.80
|
|
|
|
|
|
require_image: false
|
|
|
|
|
|
description: 搜索结果第一项
|
|
|
|
|
|
|
|
|
|
|
|
main_view:
|
|
|
|
|
|
by_geom:
|
|
|
|
|
|
relative_to: window
|
|
|
|
|
|
x_ratio: 0.65
|
|
|
|
|
|
y_ratio: 0.50
|
|
|
|
|
|
x_offset: 0
|
|
|
|
|
|
y_offset: 0
|
|
|
|
|
|
threshold: 0.80
|
|
|
|
|
|
require_image: false
|
|
|
|
|
|
description: 主聊天视图(post_verify 校验用)
|
2026-07-16 13:03:58 +08:00
|
|
|
|
|
|
|
|
|
|
# 好友申请通过 UI 元素定位(experimental,坐标为估算值需实测校准)
|
|
|
|
|
|
contact_icon:
|
|
|
|
|
|
by_geom:
|
|
|
|
|
|
relative_to: window
|
|
|
|
|
|
x_ratio: 0.04
|
|
|
|
|
|
y_ratio: 0.15
|
|
|
|
|
|
x_offset: 0
|
|
|
|
|
|
y_offset: 0
|
|
|
|
|
|
threshold: 0.80
|
|
|
|
|
|
require_image: false
|
|
|
|
|
|
description: 左侧导航栏通讯录图标
|
|
|
|
|
|
|
|
|
|
|
|
new_friend_entry:
|
|
|
|
|
|
by_geom:
|
|
|
|
|
|
relative_to: window
|
|
|
|
|
|
x_ratio: 0.04
|
|
|
|
|
|
y_ratio: 0.22
|
|
|
|
|
|
x_offset: 0
|
|
|
|
|
|
y_offset: 0
|
|
|
|
|
|
threshold: 0.80
|
|
|
|
|
|
require_image: false
|
|
|
|
|
|
description: 通讯录页"新的朋友"入口
|
|
|
|
|
|
|
|
|
|
|
|
verify_button:
|
|
|
|
|
|
by_geom:
|
|
|
|
|
|
relative_to: window_bottom_right
|
|
|
|
|
|
x_ratio: 1.0
|
|
|
|
|
|
y_ratio: 0.30
|
|
|
|
|
|
x_offset: -80
|
|
|
|
|
|
y_offset: 0
|
|
|
|
|
|
threshold: 0.75
|
|
|
|
|
|
require_image: false
|
|
|
|
|
|
description: 好友申请项"前往验证"按钮
|
|
|
|
|
|
|
|
|
|
|
|
confirm_button:
|
|
|
|
|
|
by_geom:
|
|
|
|
|
|
relative_to: window_bottom_right
|
|
|
|
|
|
x_ratio: 0.5
|
|
|
|
|
|
y_ratio: 1.0
|
|
|
|
|
|
x_offset: 0
|
|
|
|
|
|
y_offset: -60
|
|
|
|
|
|
threshold: 0.75
|
|
|
|
|
|
require_image: false
|
|
|
|
|
|
description: "通过朋友验证"弹窗确定按钮
|