puppeteer/website/versioned_docs/version-20.8.3/api/puppeteer.page.locator.md
release-please[bot] 6be24edacc
chore: release main (#10570)
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
2023-07-18 12:40:13 +02:00

560 B

sidebar_label
Page.locator

Page.locator() method

Creates a locator for the provided selector. See Locator for details and supported actions.

Signature:

class Page {
  locator(selector: string): Locator;
}

Parameters

Parameter Type Description
selector string

Returns:

Locator

Remarks

Locators API is experimental and we will not follow semver for breaking change in the Locators API.