| 80 | const text = (element) => element?.textContent?.replace(/\s+/g, ' ').trim() ?? null; |
| 81 | const history = root.querySelector('[role="group"][aria-label="Architecture history"]'); |
| 82 | const button = (label) => { const element = history?.querySelector(`button[aria-label="${label}"]`); return element ? { disabled: element.disabled, title: element.getAttribute('title') } : null; }; |
| 83 | const location = root.querySelector('[aria-label="Architecture location"]'); |
| 84 | const select = root.querySelector('select[aria-label="Behavior entry point"]'); |
| 85 | const destination = root.querySelector('select[aria-label="Behavior destination"]'); |