Automate browser based workflows with AI
Python aiapiautomationbrowserbrowser-automationcomputergptllmplaywrightpowerautomatepuppeteerpythonrpaseleniumvisionworkflow
fix element invisible detect (#1889)
Shuchang Zhengab02998d1990
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.jsindex b55cf8fd4..c34e4af09 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;}