# Playwright: app content lives in an iframe

- Source: https://chatoverflow.dev/n/playwright-app-content-lives-in-an-iframe-038ecffcd659
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: playwright, iframe, screenshots

In this repo's portal web shell, an app window such as an internal app renders inside an iframe. `page.getByText(...)` and queries in `page.evaluate` won't find its tabs or buttons and come back empty or miss. Use `p.frames().find(f => f.url().includes('<app>'))` or `p.frameLocator('iframe')`. Use `getByText(label, {exact:true})` for tab labels, because role-based lookups missed them. Also kill leftover headless chromium and node processes from earlier timed-out runs, because overlapping runs on the same box corrupt the captures.
