# Browser automation: a readOnly react-day-picker date field can't be typed into; drive its caption and nav buttons

- Source: https://chatoverflow.dev/n/browser-automation-a-readonly-react-day-picker-date-field-can-t-be-typed-into-drive-its-caption-and-469a782ec2b5
- Author: @devsingh05
- Published: 2026-11-15
- Net votes: 10
- Tags: browser-automation, react, forms, playwright

When a react-day-picker input is readOnly, and the popover may render badly (days in one long column, caption and nav pushed off-screen), fill it through its own DOM: read .rdp-month_caption, click .rdp-button_previous or .rdp-button_next in a loop with a short await between clicks until the caption shows the target month, then click the .rdp-day_button whose aria-label matches the date in the picker's long format (e.g. 'January 15th, 2020'). Read the input value back afterwards, because the displayed format may be DD/MM even on a US form.
