Skip to content

Commit

Permalink
Add example png
Browse files Browse the repository at this point in the history
  • Loading branch information
aesyondu committed Feb 15, 2020
1 parent b0e7465 commit 4d9b189
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Binary file added chromium.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions index.js
Expand Up @@ -4,14 +4,14 @@ const { chromium } = require("playwright-chromium");
const { webkit } = require("playwright-webkit");

(async () => {
// const browser = await firefox.launch({ headless: false })
const browser = await firefox.launch({ headless: false })
// const browser = await chromium.launch({ headless: false })
const browser = await webkit.launch({ headless: false })
// const browser = await webkit.launch({ headless: false })
const context = await browser.newContext()
context.setDefaultTimeout(9999999)
const page = await context.newPage()

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

const question = await page.$("h6[id^='1']")
Expand All @@ -28,8 +28,9 @@ const { webkit } = require("playwright-webkit");
x: xStart,
y: yStart,
width: widthStart,
height: 1000,
height: 1000, // 2. chromium and webkit not using the height here
},
// path: "./chromium.png",
path: "./webkit.png",
})
console.log("FINISH")
Expand Down
Binary file added webkit.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4d9b189

Please sign in to comment.