MCPcopy Create free account
hub / github.com/webdriverio/webdriverio / flat

Method flat

packages/webdriverio/src/session/shadowRoot.ts:397–399  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

395 }
396
397 flat (): ShadowRootTree[] {
398 return [this, ...Array.from(this.children).map((tree) => tree.flat())].flat()
399 }
400
401 remove (element: string): boolean {
402 const childArray = Array.from(this.children)

Callers 15

getSpecsMethod · 0.80
uploadEventsDataMethod · 0.80
mapCapabilitiesFunction · 0.80
startWebDriverFunction · 0.80
parseParamsFunction · 0.80
index.test.tsFile · 0.80
optimizeForNuxtFunction · 0.80
testrunner.tsFile · 0.80
getElementsFunction · 0.80
switchFrameFunction · 0.80
mapContextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected