selectFromGroup
Select one or more options from radio or checkbox groups by name. Radios pick a single value; checkboxes support set, add, remove, or toggle modes.
Instructions
Select option(s) from radio or checkbox group by name attribute. For radio groups: selects one option. For checkbox groups: supports multi-select with modes (set/add/remove/toggle). Use 'name' to identify the group, and 'value'/'text' to select by value or label. See groups in analyzePage output for available options.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| by | No | Match by value, label text, or auto-detect (default: 'auto') | |
| mode | No | For checkboxes: 'set' (replace all), 'add', 'remove', 'toggle' (default: 'set') | |
| name | Yes | Name attribute of the radio/checkbox group (e.g., 'size', 'topping') | |
| text | No | Label text to match (alternative to value) | |
| texts | No | Multiple label texts to match (for checkbox group) | |
| value | No | Single value to select (for radio or single checkbox) | |
| values | No | Multiple values to select (for checkbox group) |