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!");
|
||||
|
||||
const { chromium } = require("playwright");
|
||||
(async () => {
|
||||
console.log("browser!");
|
||||
|
||||
const browser = await chromium.launch({
|
||||
headless: true,
|
||||
args: ["--no-sandbox", "--disable-setuid-sandbox"],
|
||||
});
|
||||
console.log("new page!");
|
||||
|
||||
const page = await browser.newPage();
|
||||
console.log("GOTO!");
|
||||
|
||||
await page.goto("https://example.com");
|
||||
console.log("Success!");
|
||||
await browser.close();
|
||||
})();
|
||||
console.log("START!");
|
||||
|
||||
const { chromium } = require("playwright");
|
||||
(async () => {
|
||||
console.log("browser!");
|
||||
|
||||
const browser = await chromium.launch({
|
||||
headless: true,
|
||||
args: ["--no-sandbox", "--disable-setuid-sandbox"],
|
||||
});
|
||||
console.log("new page!");
|
||||
|
||||
const page = await browser.newPage();
|
||||
console.log("GOTO!");
|
||||
|
||||
await page.goto("https://example.com");
|
||||
console.log("Success!");
|
||||
await browser.close();
|
||||
})();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user