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

How to fix it

  1. Target the actual form control directly, e.g. `page.getByLabel(...)`, or a more specific selector for the `<input>`
  2. 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