Playwright · Method
page.getByPlaceholder
getByPlaceholder() finds an input by its placeholder text and returns a Locator. Use the Locator for actions such as filling the input.
Last updated
- Since
- v1.27
Syntax
page.getByPlaceholder(text, options?) : LocatorIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Locatorpage.locator()getByLabelgetByRolegetByTextgetByTitle