mirror of
https://github.com/browser-use/browser-use.git
synced 2026-09-14 19:59:47 +08:00
5ffd3090ad
DOM attributes only carry the static value=... written in the HTML. When JavaScript, autofill, or a framework fills a field, the value lives in the element property, which DOMSnapshot exposes as inputValue/textValue. The agent saw such fields as empty and retyped or skipped them (#5647). Read inputValue, textValue, and inputChecked from the snapshot, keep them on EnhancedSnapshotNode, and surface the live value as the value attribute for input and textarea nodes. Password, file, and hidden inputs are left alone. Fixes #5647
33 KiB
33 KiB