Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix shadown DOM parsing (#2295)
Shuchang Zheng59711082370b
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.jsindex 9e1c913f3..536d65b18 100644--- a/skyvern/webeye/scraper/domUtils.js+++ b/skyvern/webeye/scraper/domUtils.js@@ -1446,14 +1446,15 @@ async function buildElementTree(}let children = [];+ // sometimes the shadowRoot is not visible, but the elemnets in the shadowRoot are visible+ if (element.shadowRoot) {+ children = getChildElements(element.shadowRoot);+ }const isVisible = isElementVisible(element);if (isVisible && !isHidden(element) && !isScriptOrStyle(element)) {const interactable = isInteractable(element, hoverStylesMap);let elementObj = null;let isParentSVG = null;- if (element.shadowRoot) {- children = getChildElements(element.shadowRoot);- }if (interactable) {elementObj = await buildElementObject(frame, element, interactable);} else if (