2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00

add playwright

This commit is contained in:
kev
2021-08-04 13:32:37 +08:00
parent 13cc78afb6
commit 2dec76638f
4 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1,9 @@
const { webkit } = require('playwright');
(async () => {
const browser = await webkit.launch();
const page = await browser.newPage();
await page.goto('http://whatsmyuseragent.org/');
await page.screenshot({ path: `example.png` });
await browser.close();
})();