Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix invisible svg bug (#525)
LawyZhengc44a3076c0e8
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.jsindex c23f5ba7b..74469c768 100644--- a/skyvern/webeye/scraper/domUtils.js+++ b/skyvern/webeye/scraper/domUtils.js@@ -863,11 +863,12 @@ async function buildTreeFromBody(frame = "main.frame", open_select = false) {!isScriptOrStyle(element)) {let elementObj = null;+ let isParentSVG = element.closest("svg");if (element.tagName.toLowerCase() === "svg") {// if element is <svg> we save all attributes and its childrenelementObj = await buildElementObject(element, false);- } else if (element.closest("svg")) {- // if elemnet is the children of <svg>+ } else if (isParentSVG && isParentSVG.getAttribute("unique_id")) {+ // if elemnet is the children of the <svg> with an unique_idelementObj = await buildElementObject(element, false);} else {// character length limit for non-interactable elements should be 5000