Get Interactive Elements
get_interactive_elementsIdentify interactive page elements like buttons and inputs, providing accessibility details and test selectors for automated testing and screen reader compatibility.
Instructions
Find all interactive elements on the page (buttons, inputs, links, etc.) and return their accessibility info plus multi-framework test selectors. Covers 20 interactive ARIA roles. Use roles[] to filter to specific roles.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| roles | No | Specific ARIA roles to include. Defaults to all 20 interactive roles: button, link, textbox, searchbox, combobox, listbox, option, checkbox, radio, switch, slider, spinbutton, menuitem, tab, treeitem, gridcell, rowheader, columnheader, progressbar, scrollbar | |
| includeDisabled | No | Include disabled elements. Default: false | |
| maxElements | No | Maximum number of elements to return. Default: 100 |