playwright 1.0.0

Download zip

class: locator

[26:14] (extern: com.lehman.aussom.ALocator) extends: object

The locator class is the primary element interaction surface in Playwright. It represents a lazy, auto-retrying reference to DOM elements. Instances are obtained by calling page.locator(), page.getByRole(), page.getByText(), and similar factory methods on page or locator objects. Locator methods auto-retry until the element is actionable or a timeout is exceeded.

Methods