File size: 421 Bytes
4a58e48
 
 
 
 
 
1
2
3
4
5
6
7
import { chromium } from '@playwright/test';
const b = await chromium.connectOverCDP('http://localhost:9333');
const p = b.contexts()[0].pages().find((x) => x.url().startsWith('http://localhost:4175'));
await p.reload(); await p.waitForTimeout(2000);
console.log(await p.evaluate(() => performance.getEntriesByType('resource').map((r) => r.name).filter((n) => /worker|index-/.test(n))));
await b.close().catch(() => {});