Skip to content

Automate browser based workflows with AI

optimize hover style map (#1635)

LawyZheng3a1b6d185d3d
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js
index 50b17a754..a534a1c61 100644
--- a/skyvern/webeye/scraper/domUtils.js
+++ b/skyvern/webeye/scraper/domUtils.js
@@ -2017,12 +2017,10 @@ function getHoverStylesMap() {
}
// only need the style which includes the cursor attribute.
- for (const prop in styles) {
- if (prop.includes("cursor")) {
- hoverMap.set(baseSelector, styles);
- break;
- }
+ if (!("cursor" in styles)) {
+ continue;
}
+ hoverMap.set(baseSelector, styles);
}
}
}