mirror of
https://github.com/kou029w/_.git
synced 2025-01-30 22:08:02 +00:00
9 lines
255 B
TypeScript
9 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();
|