Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit 677e3b1

Browse files
committed
debugging
1 parent bfdc5f6 commit 677e3b1

File tree

1 file changed

+6
-0
lines changed
  • examples/browser-service-worker/tests

1 file changed

+6
-0
lines changed

examples/browser-service-worker/tests/test.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ play.describe('browser service worker:', () => {
3838

3939
const frameText2 = page.frameLocator('#viewer').locator(textDOM)
4040

41+
// loop over all of the frames and log their content
42+
const frames = await page.frames();
43+
for (const frame of frames) {
44+
console.log('page.frames textContent: ', await frame.textContent(textDOM));
45+
}
46+
4147
expect(await frameText2.textContent()).toContain("hello world")
4248

4349
// const elementFrame = await page.waitForSelector("iframe")

0 commit comments

Comments
 (0)