Playwright · Method
locator.all
locator.all() returns an array of locators for the elements currently matched by a locator. It does not wait for elements to appear, so use it only after a dynamic list is stable.
Last updated
- Since
- v1.29
Syntax
await locator.all()In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Locatorlocator.countlocator.allInnerTextslocator.allTextContents