Skip to content

Commit 05b6f79

Browse files
author
George Griffiths
committed
remove changes to playwright example
1 parent 1d9c788 commit 05b6f79

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

examples/playwright/custom-engine.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
const { selectorEngine } = require("../../plugins/playwright");
1+
const { selectorEngine } = require("query-selector-shadow-dom/plugins/playwright");
22
const playwright = require('playwright')
33

44
const main = async () => {
@@ -10,9 +10,7 @@ const main = async () => {
1010

1111
await page.goto('chrome://downloads')
1212

13-
const element = await page.waitForSelector('.//div', {timeout: 3000})
14-
const span = await element.$$("div > .illustration + span")
15-
console.log(span)
13+
await page.waitForSelector('shadow=#no-downloads span', {timeout: 3000})
1614
await new Promise(resolve => setTimeout(resolve, 3000))
1715

1816
await page.close()

0 commit comments

Comments
 (0)