Re: [puppeteer/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();
> ```

thanks a lot, it works like a clock!

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

Received on Friday, 4 September 2020 22:55:46 UTC