From 5acdddf67e61a5472cd66b711a7a82eb47739e67 Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Mon, 20 May 2024 15:05:45 +0800 Subject: [PATCH] deep copy the attribute to avoid duplicated (#345) --- skyvern/webeye/scraper/scraper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skyvern/webeye/scraper/scraper.py b/skyvern/webeye/scraper/scraper.py index a18d03e4..ab5ced34 100644 --- a/skyvern/webeye/scraper/scraper.py +++ b/skyvern/webeye/scraper/scraper.py @@ -75,7 +75,7 @@ def build_attribute(key: str, value: Any) -> str: def json_to_html(element: dict) -> str: - attributes: dict[str, Any] = element.get("attributes", {}) + attributes: dict[str, Any] = copy.deepcopy(element.get("attributes", {})) # adding the node attribute to attributes for attr in ELEMENT_NODE_ATTRIBUTES: