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

Function waitForTextContent

test/e2e/sources/sourcemap.test.ts:44–47  ·  view source on GitHub ↗
(selector: string, devToolsPage: DevToolsPage)

Source from the content-addressed store, hash-verified

42import type {DevToolsPage} from '../shared/frontend-helper.js';
43
44async function waitForTextContent(selector: string, devToolsPage: DevToolsPage) {
45 const element = await devToolsPage.waitFor(selector);
46 return await element.evaluate(({textContent}) => textContent);
47}
48
49const DEVTOOLS_LINK = 'devtools-toolbar .devtools-link';
50const INFOBAR_TEXT = '.infobar-info-text';

Callers 1

sourcemap.test.tsFile · 0.85

Calls 2

evaluateMethod · 0.65
waitForMethod · 0.45

Tested by

no test coverage detected