Skip to content

Automate browser based workflows with AI

force checkbox input to be visible (#1203)

LawyZhengb678ec3a8004
diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js
index 9948880d0..7d7725bb0 100644
--- a/skyvern/webeye/scraper/domUtils.js
+++ b/skyvern/webeye/scraper/domUtils.js
@@ -246,7 +246,8 @@ function isElementVisible(element) {
// because they are not visible by default. We check their parent instead for visibility.
if (
element.tagName.toLowerCase() === "option" ||
- (element.tagName.toLowerCase() === "input" && element.type === "radio")
+ (element.tagName.toLowerCase() === "input" &&
+ (element.type === "radio" || element.type === "checkbox"))
)
return element.parentElement && isElementVisible(element.parentElement);