MCPcopy
hub / github.com/vercel/next.js / hasElementByCssSelector

Method hasElementByCssSelector

test/lib/browsers/playwright.ts:484–486  ·  view source on GitHub ↗
(selector: string)

Source from the content-addressed store, hash-verified

482 }
483
484 hasElementByCssSelector(selector: string) {
485 return this.eval<boolean>(`!!document.querySelector('${selector}')`)
486 }
487
488 keydown(key: string) {
489 return this.startOrPreserveChain(() => page.keyboard.down(key))

Callers 15

runTestsFunction · 0.80
runTestsFunction · 0.80
runTestsFunction · 0.80
index.test.tsFile · 0.80
runTestsFunction · 0.80
runTestsFunction · 0.80
index.test.tsFile · 0.80
app-action.test.tsFile · 0.80
navigation.test.tsFile · 0.80

Calls 1

evalMethod · 0.95

Tested by 5

runTestsFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64