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

Function states

javascript/atoms/typescript/testing/accessibility-text.ts:44–55  ·  view source on GitHub ↗
(map: Record<string, StateValue>)

Source from the content-addressed store, hash-verified

42}
43
44function states(map: Record<string, StateValue>): string {
45 let out = ''
46 for (const key of STATE_ORDER) {
47 const value = map[key]
48 if (value === true) {
49 out += ` [${key}]`
50 } else if (value !== undefined && value !== false) {
51 out += ` [${key}=${value}]`
52 }
53 }
54 return out
55}
56
57function line(node: AccessibilityNode): string {
58 if (node.role === 'text') {

Callers 1

lineFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected