MCPcopy Create free account
hub / github.com/angular/angular / click

Function click

adev/src/content/examples/elements/e2e/src/app.e2e-spec.ts:8–12  ·  view source on GitHub ↗
(elem: ElementFinder)

Source from the content-addressed store, hash-verified

6
7 // Helpers
8 const click = async (elem: ElementFinder) => {
9 // Waiting for the element to be clickable, makes the tests less flaky.
10 await browser.wait(EC.elementToBeClickable(elem), 5000);
11 await elem.click();
12 };
13 const waitForText = async (elem: ElementFinder) => {
14 // Waiting for the element to have some text, makes the tests less flaky.
15 await browser.wait(async () => /\S/.test(await elem.getText()), 5000);

Callers 1

app.e2e-spec.tsFile · 0.85

Calls 2

waitMethod · 0.80
clickMethod · 0.45

Tested by

no test coverage detected