Skip to content

Automate browser based workflows with AI

An element is interactable if it has a click event listener (#311)

Kerem Yilmaz4f814f5aeccd
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js
index 6a332aec3..d78c888f5 100644
--- a/skyvern/webeye/scraper/domUtils.js
+++ b/skyvern/webeye/scraper/domUtils.js
@@ -358,7 +358,8 @@ function isInteractable(element) {
if (
element.hasAttribute("onclick") ||
element.isContentEditable ||
- element.hasAttribute("jsaction")
+ element.hasAttribute("jsaction") ||
+ getEventListeners(element).click !== undefined
) {
return true;
}