import asyncio
from playwright.async_api import async_playwright

async def main():
    async with async_playwright() as p:
        br = await p.chromium.launch(headless=False)
        pg = await br.new_page()
        net_all = []
        pg.on('response', lambda r: net_all.append({'status':r.status,'url':r.url}))
        await pg.goto('http://localhost:8090/DOZIKWORKS_OS_v4_pathcreate.dc.html')
        await pg.wait_for_timeout(14000)
        print('=== 모든 네트워크 응답:')
        for n in net_all:
            mark = '❌' if n['status'] >= 400 else '  '
            print(f"  {mark} [{n['status']}] {n['url']}")
        await br.close()

asyncio.run(main())
