Skip to content

Automate browser based workflows with AI

Revert "fix filter pick issue" (#1580)

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