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

> @AndreasGalster the following works quite fine for me:
> 
> ```js
> const puppeteer = require('puppeteer');
> 
> (async () => {
>   const browser = await puppeteer.launch({
>     headless: false
>   });
>   const page = await browser.newPage();
>   await page.goto('https://npm-demos.appspot.com/@polymer/paper-input@3.0.1/demo/index.html', {waitUntil: 'networkidle2'});
>   const input = await page.evaluateHandle(`document.querySelector('body > div > demo-snippet:nth-child(2) > paper-input:nth-child(2)').shadowRoot.querySelector('#input-2 > input')`);
>   await input.focus();
>   await input.type('.foo', 'woof woof!');
> //  await browser.close();
> })();
> ```

@aslushnikov How are you calling the type method on a JSHandle object? 

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

Received on Friday, 14 June 2019 00:49:41 UTC