Skip to content

Commit

Permalink
mask value for password input (#1403)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored Dec 17, 2024
1 parent 5024655 commit b8e12f8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion skyvern/webeye/scraper/domUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit b8e12f8

Please sign in to comment.