Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix bug on HTML tree (#561)
LawyZheng7a75bb3741cb
diff --git a/skyvern/webeye/scraper/scraper.py b/skyvern/webeye/scraper/scraper.pyindex 6b2c6f86c..d0357621d 100644--- a/skyvern/webeye/scraper/scraper.py+++ b/skyvern/webeye/scraper/scraper.py@@ -96,7 +96,7 @@ def json_to_html(element: dict) -> str:)# Check if the element is self-closing- if tag in ["img", "input", "br", "hr", "meta", "link"]:+ if tag in ["img", "input", "br", "hr", "meta", "link"] and not option_html and not children_html:return f'<{tag}{attributes_html if not attributes_html else " "+attributes_html}>'else:return f'<{tag}{attributes_html if not attributes_html else " "+attributes_html}>{text}{children_html+option_html}</{tag}>'