add test file
This commit is contained in:
parent
8bcb537265
commit
ae22315c59
38
test.js
38
test.js
@ -1,19 +1,19 @@
|
|||||||
console.log("START!");
|
console.log("START!");
|
||||||
|
|
||||||
const { chromium } = require("playwright");
|
const { chromium } = require("playwright");
|
||||||
(async () => {
|
(async () => {
|
||||||
console.log("browser!");
|
console.log("browser!");
|
||||||
|
|
||||||
const browser = await chromium.launch({
|
const browser = await chromium.launch({
|
||||||
headless: true,
|
headless: true,
|
||||||
args: ["--no-sandbox", "--disable-setuid-sandbox"],
|
args: ["--no-sandbox", "--disable-setuid-sandbox"],
|
||||||
});
|
});
|
||||||
console.log("new page!");
|
console.log("new page!");
|
||||||
|
|
||||||
const page = await browser.newPage();
|
const page = await browser.newPage();
|
||||||
console.log("GOTO!");
|
console.log("GOTO!");
|
||||||
|
|
||||||
await page.goto("https://example.com");
|
await page.goto("https://example.com");
|
||||||
console.log("Success!");
|
console.log("Success!");
|
||||||
await browser.close();
|
await browser.close();
|
||||||
})();
|
})();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user