Skip to content

Automate browser based workflows with AI

fix interactable detecting (#2941)

LawyZheng5363d33dccbf
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js
index e7401c40d..f0bc50764 100644
--- a/skyvern/webeye/scraper/domUtils.js
+++ b/skyvern/webeye/scraper/domUtils.js
@@ -617,7 +617,7 @@ function isHoverPointerElement(element, hoverStylesMap) {
// Check if element has hover styles that change cursor to pointer
// This is to handle the case where an element's cursor is "auto", but resolves to "pointer" on hover
- if (elementCursor === "auto") {
+ if (elementCursor === "auto" || elementCursor === "default") {
// TODO: we need a better algorithm to match the selector with better performance
for (const [selector, styles] of hoverStylesMap) {
let shouldMatch = false;