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

Method waitForClass

test/e2e/shared/page-wrapper.ts:487–491  ·  view source on GitHub ↗
(element: puppeteer.ElementHandle<Element>, classname: string)

Source from the content-addressed store, hash-verified

485 }
486
487 async waitForClass(element: puppeteer.ElementHandle<Element>, classname: string) {
488 await this.waitForFunction(async () => {
489 return await this.hasClass(element, classname);
490 }, undefined, `Waiting for element to have class '${classname}'`);
491 }
492
493 waitForTextNotMatching(element: puppeteer.ElementHandle<Element>, regex: RegExp): Promise<string> {
494 return this.waitForFunction(async () => {

Calls 2

waitForFunctionMethod · 0.95
hasClassMethod · 0.95

Tested by

no test coverage detected