Skip to content

Automate browser based workflows with AI

decrease the hash trigger to 150 (#1541)

LawyZhenge10d9d46fb24
diff --git a/skyvern/webeye/scraper/scraper.py b/skyvern/webeye/scraper/scraper.py
index 93169803e..ce72d8b45 100644
--- a/skyvern/webeye/scraper/scraper.py
+++ b/skyvern/webeye/scraper/scraper.py
@@ -103,8 +103,8 @@ def json_to_html(element: dict, need_skyvern_attrs: bool = True) -> str:
context = skyvern_context.ensure_context()
# FIXME: Theoretically, all href links with over 69(64+1+4) length could be hashed
- # but currently, just hash length>300 links to confirm the solution goes well
- if "href" in attributes and len(attributes.get("href", "")) > 300:
+ # but currently, just hash length>150 links to confirm the solution goes well
+ if "href" in attributes and len(attributes.get("href", "")) > 150:
href = attributes.get("href", "")
# jinja style can't accept the variable name starts with number
# adding "_" to make sure the variable name is valid.