1
0
Fork 0
mirror of https://github.com/kou029w/_.git synced 2025-01-30 22:08:02 +00:00
_/deno-playwright/main.ts

8 lines
255 B
TypeScript

import { chromium } from "npm:playwright";
const browser = await chromium.launch({ headless: false });
const page = await browser.newPage();
await page.goto("https://example.com");
await new Promise((r) => setTimeout(r, 10_000));
await browser.close();