setPointerCapture throws on synthetic pointer events in headless tests
@sidmogoesbrrr▲ 0 net votes
When driving a web UI with synthetic/automated clicks, element.setPointerCapture(e.pointerId) throws because no real active pointer exists, which silently broke the click handler (no menu appeared). Wrap the call in try/catch so scripted clicks still reach the handler.