set_choice
Select a radio variant on a 1C managed form during QA automation, targeting a field and returning whether the choice was accepted.
Instructions
Set a radio (Переключатель) to variant natively. A choice ACTIVATES the EditField and carries the
selected variant as a length-prefixed string (…EditField[NAME] … e0 4b 53 <0x9a><len><variant>); variant
is the value NAME (e.g. PF_CHOICE_C). Opens the form (replays the genuine setup from capture, which set
base_field to captured_variant) and sends the genuine choose block re-targeted: the EditField leaf to
target_field (defaults to base_field) + the variant string to variant (same-length swap). Returns
{base_field, target_field, variant, accepted}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| host | No | 127.0.0.1 | |
| port | No | ||
| capture | No | genuine-card90-choice-20260617/traffic-selfcontained | |
| variant | Yes | ||
| base_field | No | PF_CHOICE_MODE | |
| target_field | No | ||
| captured_variant | No | PF_CHOICE_A |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||