Skip to content

Commit

Permalink
try to fix radio button check (#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
LawyZheng authored Oct 8, 2024
1 parent 157628d commit 47f2c59
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions skyvern/webeye/scraper/domUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -843,11 +843,7 @@ function buildElementObject(frame, element, interactable, purgeable = false) {
}

if (elementTagNameLower === "input" || elementTagNameLower === "textarea") {
if (element.type === "radio") {
attrs["value"] = "" + element.checked + "";
} else {
attrs["value"] = element.value;
}
attrs["value"] = element.value;
}

let elementObj = {
Expand Down

0 comments on commit 47f2c59

Please sign in to comment.