Skip to content
masterclass Buddy

Playwright · Function

page.fill

page.fill enters text into an input, textarea, or contenteditable element. It is discouraged for new code; use locator.fill instead.

Last updated

Since
before v1.9

Syntax

page.fill(selector, value, **kwargs)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • locator.fill
  • locator.press_sequentially
  • page.set_default_timeout
  • browser_context.set_default_timeout

Source: Page | Playwright Python. Checked 2026-11-03.