Skip to content
masterclass Buddy

Playwright · Class

FrameLocator

FrameLocator represents a view into an iframe. Use it to locate and interact with elements inside the frame without manually handling a Frame object.

Last updated

Since
v1.17

Syntax

page.frameLocator(selector)
locator.contentFrame()
locator.frameLocator(selector)
frameLocator.frameLocator(selector)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Locator.contentFrame()
  • Locator.frameLocator()
  • Page.frameLocator()
  • Frame.frameLocator()
  • Locator
  • getByRole()
  • getByText()
  • getByTestId()

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