From 24a571ac4949f2a94b63a551a3c9418b8dbd1671 Mon Sep 17 00:00:00 2001 From: Kerem Yilmaz Date: Tue, 23 Jul 2024 04:02:21 -0700 Subject: [PATCH] Dom tree updates (#632) --- skyvern/webeye/scraper/domUtils.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js index 4211c313..05e29993 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