From fa3116bf0d870217671dddf093b60bee5452a789 Mon Sep 17 00:00:00 2001 From: lawyzheng Date: Tue, 17 Dec 2024 17:35:41 +0800 Subject: [PATCH] mask value for password input --- skyvern/webeye/scraper/domUtils.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/skyvern/webeye/scraper/domUtils.js b/skyvern/webeye/scraper/domUtils.js index f94e8900a..57ad903bd 100644 --- a/skyvern/webeye/scraper/domUtils.js +++ b/skyvern/webeye/scraper/domUtils.js @@ -1134,7 +1134,11 @@ function buildElementObject(frame, element, interactable, purgeable = false) { } if (elementTagNameLower === "input" || elementTagNameLower === "textarea") { - attrs["value"] = element.value; + if (element.type === "password") { + attrs["value"] = element.value ? "*".repeat(element.value.length) : ""; + } else { + attrs["value"] = element.value; + } } let elementObj = {