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.
SubscribeRelated
locator.filllocator.press_sequentiallypage.set_default_timeoutbrowser_context.set_default_timeout