diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js index b55cf8fd..c34e4af0 100644 --- a/skyvern/webeye/scraper/domUtils.js +++ b/skyvern/webeye/scraper/domUtils.js @@ -257,7 +257,11 @@ function isElementStyleVisibilityVisible(element, style) { // TODO: support style.clipPath and style.clipRule? // if element is clipped with rect(0px, 0px, 0px, 0px), it means it's invisible on the page - if (style.clip === "rect(0px, 0px, 0px, 0px)") { + // FIXME: need a better algorithm to calculate the visible rect area, using (right-left)*(bottom-top) from rect(top, right, bottom, left) + if ( + style.clip === "rect(0px, 0px, 0px, 0px)" || + style.clip === "rect(1px, 1px, 1px, 1px)" + ) { return false; }