Re: [GoogleChrome/puppeteer] Query nodes within shadow roots (#858)

> @aslushnikov what about page.waitForSelector() ? Any workaround? ::part is not accepted in querySelector

@josenobile you can use `page.waitForFunction` with jsPath:

```js
const handle = (await page.waitForFunction(() => document.querySelector('body > toolbar-component`))).asElement();
```

-- 
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
https://github.com/GoogleChrome/puppeteer/issues/858#issuecomment-516184316

Received on Monday, 29 July 2019 22:21:53 UTC