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

Method hasElementByCss

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

Source from the content-addressed store, hash-verified

444 }
445
446 hasElementByCss(selector: string) {
447 return this.startChain(() => page.locator(selector).isVisible())
448 }
449
450 elementById(id: string) {
451 return this.elementByCss(`#${id}`)

Calls 2

startChainMethod · 0.95
locatorMethod · 0.80

Tested by 1

isAccordionClosedFunction · 0.64