Skip to content

Commit

Permalink
undo
Browse files Browse the repository at this point in the history
  • Loading branch information
wintonzheng committed Dec 17, 2024
1 parent 48f1d62 commit 9b9edbb
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 9b9edbb

Please sign in to comment.