MCPcopy Create free account
hub / github.com/ACM-VIT/conclave / isGenericErrorPageProbe

Function isGenericErrorPageProbe

scripts/debug-video-effects-headless.mjs:763–769  ·  view source on GitHub ↗
(probe)

Source from the content-addressed store, hash-verified

761 cdp,
762 `(() => {
763 const normalize = (value) => (value || "").replace(/\\s+/g, " ").trim();
764 const button = Array.from(document.querySelectorAll("button")).find(
765 (candidate) =>
766 (normalize(candidate.getAttribute("aria-label")) === "Backgrounds and effects" ||
767 normalize(candidate.textContent) === "Backgrounds and effects" ||
768 normalize(candidate.textContent).startsWith("Backgrounds and effects")) &&
769 !candidate.disabled
770 );
771 if (!button) return false;
772 button.click();

Callers 1

waitForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected