Skip to content

Automate browser based workflows with AI

fix filter pick issue (#1577)

Shuchang Zheng32f9c1938560
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js
index 2a1a5febd..482ed723d 100644
--- a/skyvern/webeye/scraper/domUtils.js
+++ b/skyvern/webeye/scraper/domUtils.js
@@ -804,12 +804,7 @@ const isDropdownButton = (element) => {
const haspopup = element.getAttribute("aria-haspopup")
? element.getAttribute("aria-haspopup").toLowerCase()
: "";
- const hasExpanded = element.hasAttribute("aria-expanded");
- return (
- tagName === "button" &&
- type === "button" &&
- (hasExpanded || haspopup === "listbox")
- );
+ return tagName === "button" && type === "button" && haspopup === "listbox";
};
const isSelect2Dropdown = (element) => {