Skip to content

Automate browser based workflows with AI

reduce hover style map (#1634)

Shuchang Zheng1c2425171f73
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js
index 08978f9a9..50b17a754 100644
--- a/skyvern/webeye/scraper/domUtils.js
+++ b/skyvern/webeye/scraper/domUtils.js
@@ -2016,7 +2016,13 @@ function getHoverStylesMap() {
});
}
- hoverMap.set(baseSelector, styles);
+ // only need the style which includes the cursor attribute.
+ for (const prop in styles) {
+ if (prop.includes("cursor")) {
+ hoverMap.set(baseSelector, styles);
+ break;
+ }
+ }
}
}
}