MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / hiddenByOverflow

Function hiddenByOverflow

javascript/atoms/typescript/is-displayed.ts:455–468  ·  view source on GitHub ↗
(element: Element)

Source from the content-addressed store, hash-verified

453 }
454
455 function hiddenByOverflow(element: Element): boolean {
456 if (getOverflowState(element) !== 'hidden') {
457 return false;
458 }
459
460 for (var index = 0; index < element.childNodes.length; index += 1) {
461 var child = element.childNodes[index];
462 if (isElement(child) && !hiddenByOverflow(child) && positiveSize(child)) {
463 return false;
464 }
465 }
466
467 return true;
468 }
469
470 return !hiddenByOverflow(elem);
471 }

Callers 1

isShownInternalFunction · 0.70

Calls 3

getOverflowStateFunction · 0.85
isElementFunction · 0.70
positiveSizeFunction · 0.70

Tested by

no test coverage detected