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

Function isElementPresent

integration/platform-server-zoneless/e2e/src/util.ts:77–80  ·  view source on GitHub ↗
(selector: string)

Source from the content-addressed store, hash-verified

75}
76
77export async function isElementPresent(selector: string): Promise<boolean> {
78 const elements = await getWebDriver().findElements(webdriver.By.css(selector));
79 return elements.length > 0;
80}

Callers 1

helloworld-spec.tsFile · 0.90

Calls 2

cssMethod · 0.80
getWebDriverFunction · 0.70

Tested by

no test coverage detected