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

Method elementByCss

test/lib/browsers/playwright.ts:430–435  ·  view source on GitHub ↗
(selector: string, opts?: ElementByCssOpts)

Source from the content-addressed store, hash-verified

428 }
429
430 elementByCss(selector: string, opts?: ElementByCssOpts) {
431 return this.waitForElementByCss(selector, {
432 timeout: 5_000,
433 ...opts,
434 })
435 }
436
437 /** A replacement for the default `browser.elementByCss` that doesn't wait for the page to fire "load". */
438 elementByCssInstant(selector: string, opts?: ElementByCssOpts) {

Callers 15

elementByIdMethod · 0.95
index.test.tsFile · 0.80
navigateTestFunction · 0.80
goFromHomeToAnotherFunction · 0.80
goFromAnotherToHomeFunction · 0.80
runTestsFunction · 0.80
index.test.tsFile · 0.80
runTestsFunction · 0.80
index.test.tsFile · 0.80
runTestsFunction · 0.80
index.test.tsFile · 0.80
runTestsFunction · 0.80

Calls 1

waitForElementByCssMethod · 0.95

Tested by 15

navigateTestFunction · 0.64
goFromHomeToAnotherFunction · 0.64
goFromAnotherToHomeFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64
getMainHeadingTitleFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64