Playwright 1.17 introduces frame locators - a locator to the iframe on the page. Frame locators capture the logic sufficient to retrieve the iframe and then locate elements in that iframe. Frame locators are strict by default, will wait for iframe to appear and can be used in Web-First assertions.
The video is a tutorial on the new frame API locator from Playwright version 1.17. The tutorial demonstrates how to locate and interact with frames using the locator function. The video walks through an example where the frame locator is used to locate a parent frame and a child frame, and actions such as typing text and clicking buttons are performed within these frames. The tutorial also introduces additional methods for handling duplicate frames and navigating between frames. The video concludes by summarizing the advantages of the new frame API locator in terms of simplicity and ease of use compared to the previous version.
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].