MCPcopy Index your code
hub / github.com/codeceptjs/CodeceptJS / isFilteredOut

Function isFilteredOut

lib/html.js:93–99  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

91 const removeElements = ['path', 'script']
92
93 function isFilteredOut(node) {
94 if (removeElements.includes(node.nodeName)) return true
95 if (node.attrs) {
96 if (node.attrs.find(attr => attr.name === 'role' && attr.value === 'tooltip')) return true
97 }
98 return false
99 }
100
101 // Function to check if an element is interactive
102 function isInteractive(element) {

Callers 1

removeNonInteractiveFunction · 0.85

Calls 2

includesMethod · 0.80
findMethod · 0.45

Tested by

no test coverage detected