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

Method getAttribute

test/lib/browsers/playwright.ts:480–482  ·  view source on GitHub ↗
(this: Playwright<ElementHandleExt>, attr: string)

Source from the content-addressed store, hash-verified

478 }
479
480 async getAttribute(this: Playwright<ElementHandleExt>, attr: string) {
481 return this.continueChain((el) => el.getAttribute(attr))
482 }
483
484 hasElementByCssSelector(selector: string) {
485 return this.eval<boolean>(`!!document.querySelector('${selector}')`)

Callers 15

isModifiedEventFunction · 0.80
handleLoadingFunction · 0.80
onFormSubmitFunction · 0.80
callbackFunction · 0.80
isEqualNodeFunction · 0.80
updateElementsFunction · 0.80
onStartFunction · 0.80
onHeadCommitFunction · 0.80

Calls 1

continueChainMethod · 0.95

Tested by 15

runTestsFunction · 0.64
hasAnotherScriptFunction · 0.64
hasSsgScriptFunction · 0.64
runTestsFunction · 0.64
getImageUrlsFunction · 0.64
getSrcFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64
runTestsFunction · 0.64
lazyLoadingTestsFunction · 0.64