How to handle frames in Playwright test sessions?

Let me know about frame handling in Playwright test sessions.

Hello Noah,

A page can have additional frames attached with the iframe HTML tag. These frames can be accessed for interactions inside the frame.

Code snip:

// Locate element inside frame
const username = await page.frameLocator('.frame-class').locator('#username-input');
await username.fill('mayank');