Skip to content
masterclass Buddy

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.

Subscribe
  • Locator
  • locator.count
  • locator.allInnerTexts
  • locator.allTextContents

Source: Locator | Playwright. Checked 2026-11-03.