MCPcopy Create free account
hub / github.com/ChromeDevTools/devtools-frontend / dispatchMouseMoveEvent

Function dispatchMouseMoveEvent

front_end/testing/DOMHelpers.ts:204–207  ·  view source on GitHub ↗
(element: T, options: MouseEventInit = {})

Source from the content-addressed store, hash-verified

202 * Dispatches a mouse move event.
203 */
204export function dispatchMouseMoveEvent<T extends Element>(element: T, options: MouseEventInit = {}) {
205 const moveEvent = new MouseEvent('mousemove', options);
206 element.dispatchEvent(moveEvent);
207}
208
209/**
210 * Dispatches a mouse leave event.

Callers 1

renderHoveredElementFunction · 0.85

Calls 1

dispatchEventMethod · 0.80

Tested by 1

renderHoveredElementFunction · 0.68