WechatOnCloud/bridge/woc_bridge/ui/profiles/default.yaml
Kris 054c4676aa refactor: 重构发送校验逻辑,移除DB轮询与熔断器,改用SSE校验
主要变更:
1. 新增SSEVerifyBus实现基于推送的发送结果校验,替代原DB轮询方案
2. 移除FlowOrchestrator中的DB熔断器,避免雪崩风险
3. 重构SendTextFlow,改用SSE校验流程,删除原DB校验相关代码
4. 新增RoiSpec与ROI搜索支持,优化UI元素匹配精度
5. 更新所有分辨率配置文件,添加ROI配置与调整搜索框坐标
6. 新增WOC_DISABLE_OPENCV环境变量开关,支持纯几何定位模式
7. 清理FlowContext中废弃的before_msg_id字段
2026-07-17 23:50:03 +08:00

132 lines
3.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 微信 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
# 与 1435x876 共用比例标定:搜索框中心位于左上角约 (0.080,0.052)
x_ratio: 0.080
y_ratio: 0.052
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 左侧顶部搜索框
send_button:
by_geom:
relative_to: window
x_ratio: 0.972
y_ratio: 0.929
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 右下角发送按钮
input_box:
by_geom:
relative_to: window
x_ratio: 0.743
y_ratio: 0.914
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 聊天输入框
input_box_empty:
by_geom:
relative_to: window
x_ratio: 0.743
y_ratio: 0.914
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 空输入框灰色提示态(发送成功后校验用)
search_result_first:
by_geom:
relative_to: window
x_ratio: 0.078
y_ratio: 0.174
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 校验用)
# 好友申请通过 UI 元素定位experimental坐标为估算值需实测校准
contact_icon:
by_geom:
relative_to: window
x_ratio: 0.04
y_ratio: 0.171
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 左侧导航栏通讯录图标
new_friend_entry:
by_geom:
relative_to: window
x_ratio: 0.125
y_ratio: 0.138
x_offset: 0
y_offset: 0
threshold: 0.80
require_image: false
description: 通讯录页"新的朋友"入口
friend_request_item:
by_geom:
relative_to: window
x_ratio: 0.125
y_ratio: 0.178
x_offset: 0
y_offset: 0
threshold: 0.75
require_image: false
description: '"新的朋友"列表第一条申请项'
verify_button:
by_geom:
relative_to: window
x_ratio: 0.593
y_ratio: 0.394
x_offset: 0
y_offset: 0
threshold: 0.75
require_image: false
description: 好友详情页"前往验证"按钮OpenCV 实测标定)
confirm_button:
by_geom:
relative_to: window
x_ratio: 0.464
y_ratio: 0.830
x_offset: 0
y_offset: 0
threshold: 0.75
require_image: false
description: '"通过朋友验证"弹窗绿色确定按钮OpenCV 弹窗出现时实测 666/1435, 727/876'