close_window
Closes a target top-level 1C TestClient window via captured navigation replay, verifying the window is gone and the window behind becomes active.
Instructions
Close a top-level window natively. close (and activate) are window-level commands:
…SecondaryFrame[<window>] 88 82 81 — the SAME family as the dialog close in answer_dialog, applied to any
top-level window. This faithfully replays the genuine navigation from capture (open form -> open the catalog
list -> drill a row -> the record card opens in a new window) then the window-level close on the active card;
GUID rebinder rebinds the list/card window GUIDs as they appear (first-appearance, same machinery as open_card /
answer_dialog), and the replay is truncated just before any subsequent close so ONLY the target window
(window_ref, default the card's record data ref) is closed. Confirmed by the closed window's (live, rebound)
SecondaryFrame being reported by the client BEFORE the close but gone AFTER it (closed), and the window
behind it becoming active (active_window_after). Returns {window_ref, window_sf, live_window_sf, accepted,
closed, active_window_after}. NOTE: replays the captured open-card->close flow, so it closes that card window; to
close a different window, capture that flow (the window-level close mechanism is identical).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 127.0.0.1 | |
| port | No | ||
| capture | No | genuine-card96-windows3-20260618/traffic | |
| window_ref | No | e1cib/data/Справочник.Контрагенты |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||