Problem
/action uses document.querySelector('[data-browdie-ref="e0"]') but browdie never injects data-browdie-ref attributes into the DOM. The @eN refs exist only in the a11y tree response, so all actions fail on real pages.
Fix Options
- Inject ref attributes via
Runtime.evaluate after each snapshot
- Resolve refs via
DOM.resolveNode using backend_node_id from the a11y tree, then use CDP DOM.focus / Input.dispatchMouseEvent directly
Option 2 is more robust (no DOM mutation side effects).
Acceptance Criteria
/action?tab_id=&action=click&ref=e0 successfully clicks the element
- Works for click, type, fill, hover, press, select, scroll
- Verified with live Chrome on example.com
Co-authored-by: blackfloofie 265516171+blackfloofie@users.noreply.github.com
Problem
/actionusesdocument.querySelector('[data-browdie-ref="e0"]')but browdie never injectsdata-browdie-refattributes into the DOM. The@eNrefs exist only in the a11y tree response, so all actions fail on real pages.Fix Options
Runtime.evaluateafter each snapshotDOM.resolveNodeusingbackend_node_idfrom the a11y tree, then use CDPDOM.focus/Input.dispatchMouseEventdirectlyOption 2 is more robust (no DOM mutation side effects).
Acceptance Criteria
/action?tab_id=&action=click&ref=e0successfully clicks the elementCo-authored-by: blackfloofie 265516171+blackfloofie@users.noreply.github.com