We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d9c788 commit 05b6f79Copy full SHA for 05b6f79
examples/playwright/custom-engine.js
@@ -1,4 +1,4 @@
1
-const { selectorEngine } = require("../../plugins/playwright");
+const { selectorEngine } = require("query-selector-shadow-dom/plugins/playwright");
2
const playwright = require('playwright')
3
4
const main = async () => {
@@ -10,9 +10,7 @@ const main = async () => {
10
11
await page.goto('chrome://downloads')
12
13
- const element = await page.waitForSelector('.//div', {timeout: 3000})
14
- const span = await element.$$("div > .illustration + span")
15
- console.log(span)
+ await page.waitForSelector('shadow=#no-downloads span', {timeout: 3000})
16
await new Promise(resolve => setTimeout(resolve, 3000))
17
18
await page.close()
0 commit comments