MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / toText

Function toText

javascript/atoms/typescript/testing/accessibility-text.ts:72–78  ·  view source on GitHub ↗
(node: AccessibilityNode, indent = '')

Source from the content-addressed store, hash-verified

70}
71
72export function toText(node: AccessibilityNode, indent = ''): string {
73 const lines = [indent + line(node)]
74 for (const child of node.children) {
75 lines.push(toText(child, indent + ' '))
76 }
77 return lines.join('\n')
78}

Callers 2

Calls 1

lineFunction · 0.85

Tested by

no test coverage detected