Playwright · Method
page.locator
A Playwright Locator describes how to find page elements. It supports actions and queries with auto-waiting and retrying.
Last updated
- Since
- v1.14
Syntax
page.locator(selector)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
page.locatorpage.get_by_rolepage.get_by_labelpage.get_by_placeholderlocator.alllocator.countlocator.clicklocator.check