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

Function lines

javascript/selenium-webdriver/lib/accessibility_snapshot.js:124–129  ·  view source on GitHub ↗
(node, indent)

Source from the content-addressed store, hash-verified

122}
123
124function* lines(node, indent) {
125 yield indent + lineFor(node)
126 for (const child of node.children) {
127 yield* lines(child, indent + ' ')
128 }
129}
130
131function lineFor(node) {
132 if (node.role === 'text') {

Callers 1

toTextMethod · 0.85

Calls 1

lineForFunction · 0.85

Tested by

no test coverage detected