Skip to content

Commit

Permalink
hardcode a hover style parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng committed Sep 24, 2024
1 parent d67aaef commit 0e44b01
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions skyvern/webeye/scraper/domUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0e44b01

Please sign in to comment.