`fill` reports "✓ Done" but leaves date/time inputs empty (date, datetime-local)
Version: agent-browser 0.38.1, headless Chrome attached over CDP.
fill on an <input type="date"> or <input type="datetime-local"> prints ✓ Done, but the input's value stays empty, so a form whose button waits for onChange stays disabled.
Repro
agent-browser open 'data:text/html,<input id=when type=datetime-local><input id=d type=date>'
agent-browser fill '#when' 2026-09-26T20:49 # ✓ Done
agent-browser get value '#when' # (empty)
agent-browser fill '#d' 2026-09-26 # ✓ Done
agent-browser get value '#d' # (empty)
Typing doesn't work either. keyboard type into the focused field did nothing. press on the digits spread them over the wrong segments (202608-09-26T16:09).
What works: setting the value with the native setter and firing input and change:
const e = document.querySelector('#when');
Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value').set.call(e, '2026-09-26T20:49');
e.dispatchEvent(new Event('input', { bubbles: true }));
e.dispatchEvent(new Event('change', { bubbles: true }));
Expected: fill sets the value of date, time, datetime-local, month and week inputs in the format the input takes (YYYY-MM-DD, HH:MM, YYYY-MM-DDTHH:MM, YYYY-MM, YYYY-Www), the way Playwright's fill does for these types. Failing that, it should report an error instead of ✓ Done when the value didn't take.
Root cause: fill clears the field with value = '' and then types through Input.insertText (interaction.rs#L161-L189). Chrome's date and time inputs ignore inserted text, and fill never reads the value back, so it reports success on an empty field.
Playwright's fill sets the value directly for color, date, time, datetime-local, month, range and week inputs, throws Malformed value when the browser rejects the format, then fires input and change (injectedScript.ts#L910-L919). The same branch would fit here before the insertText call.
#1921 adds a read-back after fill, which would turn this into a reported error, but on its own it wouldn't set the date.