Skip to content

Commit 4d9b189

Browse files
committed
Add example png
1 parent b0e7465 commit 4d9b189

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

chromium.png

14 KB
Loading

index.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ const { chromium } = require("playwright-chromium");
44
const { webkit } = require("playwright-webkit");
55

66
(async () => {
7-
// const browser = await firefox.launch({ headless: false })
7+
const browser = await firefox.launch({ headless: false })
88
// const browser = await chromium.launch({ headless: false })
9-
const browser = await webkit.launch({ headless: false })
9+
// const browser = await webkit.launch({ headless: false })
1010
const context = await browser.newContext()
1111
context.setDefaultTimeout(9999999)
1212
const page = await context.newPage()
1313

14-
await page.goto(`file:${path.join(__dirname, "index.html")}`)
14+
await page.goto(`file:${path.join(__dirname, "index.html")}`) // 2. firefox not resolving page.goto file:
1515
console.log("FIREFOX not outputting this")
1616

1717
const question = await page.$("h6[id^='1']")
@@ -28,8 +28,9 @@ const { webkit } = require("playwright-webkit");
2828
x: xStart,
2929
y: yStart,
3030
width: widthStart,
31-
height: 1000,
31+
height: 1000, // 2. chromium and webkit not using the height here
3232
},
33+
// path: "./chromium.png",
3334
path: "./webkit.png",
3435
})
3536
console.log("FINISH")

webkit.png

14.7 KB
Loading

0 commit comments

Comments
 (0)