@felixfbecker this doesn't simplify the life though - getting this "array" of selectors is quite cumbersome.
What I like about "Cope JSpath" is that it makes it easy to generate selectors for shadow DOM.
I'd rather support jsPaths first-hand in Puppeteer API somehow.
```js
await page.click(`document.querySelector('body > toolbar-component > toolbar-section.left')`);
```
Filed #4171 to discuss this further.
--
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-473470454