From 7e58ebca85290055c904f3772a883f6b1ef0f369 Mon Sep 17 00:00:00 2001 From: LawyZheng Date: Wed, 25 Sep 2024 02:01:26 +0800 Subject: [PATCH] hardcode a hover style parsing (#876) --- skyvern/webeye/scraper/domUtils.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js index e7cf969c..96fd00b7 100644 --- a/skyvern/webeye/scraper/domUtils.js +++ b/skyvern/webeye/scraper/domUtils.js @@ -457,8 +457,13 @@ function isInteractable(element) { tagName === "i" ) { const computedStyle = window.getComputedStyle(element); - const hasPointer = computedStyle.cursor === "pointer"; - return hasPointer; + if (computedStyle.cursor === "pointer") { + return true; + } + // FIXME: hardcode to fix the bug about hover style now + if (element.className.toString().includes("hover:cursor-pointer")) { + return true; + } } return false;