tools: add offline chat window probe

This commit is contained in:
zhaoyilun
2026-07-11 20:21:41 +08:00
parent c2a1ca560f
commit a06fe60eb2
4 changed files with 573 additions and 0 deletions

View File

@@ -93,3 +93,23 @@
- [x] Run `powershell -NoProfile -ExecutionPolicy Bypass -File scripts\verify-win-helper.ps1`.
- [x] Run `powershell -NoProfile -ExecutionPolicy Bypass -File scripts\verify-go-mcp.ps1`.
- [x] Commit and push branch `codex/a-route-rpa-send`.
## Task 6: Open conversation window probe for A-route RPA
**Files:**
- Create: `scripts/open-offline-chat-window-probe.ps1`
- Create: `scripts/test-open-offline-chat-window-probe.ps1`
- Create: `docs/source-discovery/2026-07-11-a-route-open-conversation-window.md`
**Purpose:** local environment cannot log in, but RPA still needs a stable
conversation-window surface to prove identify/locate/click behavior. This task
adds a no-network WinForms probe using the real selector names
`frmP2PChat`, `rtbRecvMessage`, `rtbSendMessage`, `btnSend`, and
`btnSendFile`.
- [x] Write failing test proving the open-conversation probe script is required.
- [x] Implement the offline chat-window probe.
- [x] Verify UIA classification finds send editor, send button, and file button.
- [x] Verify `-ProbeClick` writes text and clicks `btnSend`.
- [x] Verify marker says `sent_real_message=false` and `uploaded_real_file=false`.
- [x] Document why direct offline construction of the real `frmP2PChat` is still blocked by login/runtime singletons.