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

Function nameMany

javascript/atoms/typescript/find-elements.ts:87–89  ·  view source on GitHub ↗
(target: string, root: Root)

Source from the content-addressed store, hash-verified

85 }
86
87 function nameMany(target: string, root: Root): Element[] {
88 return Array.from(root.querySelectorAll('[name="' + target.replace(/\\/g, '\\\\').replace(/"/g, '\\"') + '"]'))
89 }
90
91 function tagNameMany(target: string, root: Root): Element[] {
92 if (target === '') {

Callers 1

find-elements.tsFile · 0.85

Calls 1

fromMethod · 0.45

Tested by

no test coverage detected