Playwright enables us to access and interact with iframes.

Locate an iframe and its elements

To access iframe elements, locate the iframe and query the DOM elements as if you’re in the page context.
iframe-access.spec.ts
// Example code - see original file for details

Further reading

  1. Playwright’s “Frames documentation”