Playwright error Error: locator.fill: Element is not an <input>, <textarea> or [contenteditable] element
fill() only works on real form controls, and the locator resolved to a wrapper element instead of the actual input.
Why this happens
- The locator matched a wrapper div/label around the real input, not the input itself
- You're targeting a custom widget (e.g. a design-system Select) that renders a hidden real input alongside a fake visual one
How to fix it
- Target the actual form control directly, e.g. `page.getByLabel(...)`, or a more specific selector for the `<input>`
- For custom widgets, click to open the widget, then type via `locator.pressSequentially()` on the real input, or interact through the widget's exposed controls