Skip to content

Automate browser based workflows with AI

Dom tree updates (#632)

Kerem Yilmaz24a571ac4949
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js
index 4211c3132..05e299939 100644
--- a/skyvern/webeye/scraper/domUtils.js
+++ b/skyvern/webeye/scraper/domUtils.js
@@ -386,11 +386,16 @@ function isInteractable(element) {
return true;
}
- if (tagName === "div" || tagName === "img" || tagName === "span") {
+ if (
+ tagName === "div" ||
+ tagName === "img" ||
+ tagName === "span" ||
+ tagName === "a" ||
+ tagName === "i"
+ ) {
const computedStyle = window.getComputedStyle(element);
const hasPointer = computedStyle.cursor === "pointer";
- const hasCursor = computedStyle.cursor === "cursor";
- return hasPointer || hasCursor;
+ return hasPointer;
}
// support listbox and options underneath it