From 49c6ec562f5d2fc5cbed7fa64bbac7266de22831 Mon Sep 17 00:00:00 2001 From: lawyzheng Date: Fri, 15 Nov 2024 22:59:23 +0800 Subject: [PATCH] force checkbox input to be visible --- skyvern/webeye/scraper/domUtils.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js index 9948880d02..7d7725bb0f 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);