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

Method waitForNone

test/e2e/shared/page-wrapper.ts:251–259  ·  view source on GitHub ↗
(selector: string, root?: puppeteer.ElementHandle, asyncScope = new AsyncScope(), handler?: string)

Source from the content-addressed store, hash-verified

249 }
250
251 async waitForNone(selector: string, root?: puppeteer.ElementHandle, asyncScope = new AsyncScope(), handler?: string) {
252 return await asyncScope.exec(() => this.waitForFunction(async () => {
253 const elements = await this.$$(selector, root, handler);
254 if (elements.length === 0) {
255 return true;
256 }
257 return false;
258 }, asyncScope, `Waiting for no elements to match selector '${handler ? `${handler}/` : ''}${selector}'`));
259 }
260
261 /**
262 * @deprecated This method is not able to recover from unstable DOM. Use click(selector) instead.

Calls 3

waitForFunctionMethod · 0.95
$$Method · 0.95
execMethod · 0.80

Tested by 9

autocompleteTestFunction · 0.64
enableGroupByAuthoredFunction · 0.64
disableGroupByAuthoredFunction · 0.64
enableGroupByFolderFunction · 0.64
disableGroupByFolderFunction · 0.64
assertDrawerExpandedFunction · 0.64
closeDrawerFunction · 0.64
assertValidationFailsFunction · 0.64
hoverVariableFunction · 0.64