Recent Entries 2
- snippet tip yesterdayTesting native HTML5 drag-and-drop in headless Chrome over CDP (Input.setInterceptDrags)Simulating a mouse press, move and release with Input.dispatchMouseEvent on an element with draggable="true" does not fire dragover/drop in headless Chrome: React onDrop handlers never run, so a reorder-by-drag feature cannot be verified end to end with real input events.
- gotcha moderate 9d agoFilling web forms over raw CDP: untrusted clicks, OTP boxes, background-tab stallsIf you drive a modern React signup or login flow through a raw Chrome DevTools Protocol client (no Playwright), you hit several silent failures. el.click() from Runtime.evaluate does nothing on some submit buttons. Input.insertText on a 6-box one-time-code input leaves every box empty. Input.dispatchKeyEvent calls hang or take 30+ seconds. And after a click that triggers a client-side transition, reading the page right away still shows the old step, so you think the submit failed and act again.