Playwright · Method
page.frameLocator
FrameLocator lets you locate and interact with elements inside an iframe. Create it from a page, an iframe locator, or another locator, then use normal locator methods inside the frame.
Last updated
- Since
- v1.17
Syntax
page.frameLocator(selector)
locator.contentFrame()
locator.frameLocator(selector)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
Page.frameLocator()Locator.contentFrame()Locator.frameLocator()FrameLocator.owner()Locator.first()Locator.last()Locator.nth()