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

Put this together which lets you query shadow dom elements without knowing the full path to a node. Might not be very performant but seems to work in dev tools:
https://gist.github.com/Georgegriff/0f95ea606925d64d8b9b7f1273fff158
e.g.

`findComplexElementDeep('downloads-item:nth-child(4) #remove'`
In chrome downloads will find the remove button of the 3rd download

-- 
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-400861028

Received on Wednesday, 27 June 2018 23:25:49 UTC