Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
handle null tagname (#2212)
Shuchang Zhengde67f69252b1
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.jsindex bd168dd83..8fce6652e 100644--- a/skyvern/webeye/scraper/domUtils.js+++ b/skyvern/webeye/scraper/domUtils.js@@ -1403,7 +1403,11 @@ async function buildElementTree(return;}- const tagName = element.tagName.toLowerCase();+ const tagName = element.tagName?.toLowerCase();+ if (!tagName) {+ console.log("get a null tagName");+ return;+ }// skip proccessing option element as they are already added to the select.optionsif (tagName === "option") {