MCPcopy
hub / github.com/ampproject/amphtml / click

Method click

testing/helpers/service.js:339–344  ·  view source on GitHub ↗
(selectorOrElement)

Source from the content-addressed store, hash-verified

337 }
338
339 click(selectorOrElement) {
340 const element = this.querySelectorOrElement(selectorOrElement);
341 if (element) {
342 element.dispatchEvent(new /*OK*/ CustomEvent('click', {bubbles: true}));
343 }
344 }
345
346 scrollTo(px) {
347 this.win_.scrollTo(0, px);

Callers 15

submitFormFunction · 0.45
test-amp-bind.jsFile · 0.45
listTestsFunction · 0.45
test-actions.jsFile · 0.45

Calls 1

Tested by

no test coverage detected