MCPcopy Index your code
hub / github.com/bugy/script-server / triggerSingleClick

Function triggerSingleClick

web-src/tests/unit/test_utils.js:60–63  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

58}
59
60export function triggerSingleClick(element) {
61 const event = new MouseEvent('click', {'relatedTarget': element});
62 element.dispatchEvent(event);
63}
64
65export function triggerKeyEvent(element, type, code) {
66 const event = new KeyboardEvent(type, {key: code, keyCode: code, which: code});

Callers 7

closeDropdownFunction · 0.90
combobox_test.jsFile · 0.90
clickOnGroupFunction · 0.90
clickParamActionFunction · 0.90
clickAddButtonFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected