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.
SubscribeRelated
Locator.contentFrame()Locator.frameLocator()Page.frameLocator()Frame.frameLocator()LocatorgetByRole()getByText()getByTestId()