title: Pyppeteer and itmes in shadowroot
body: <p>I'm trying to run a python script with Pyppeteer. I'm at the point in which I need to input some text in two text boxes and then click a button. Problem is, those text boxes + button are in a kind of popup box that happens to be in a shadowroot.</p>
  <p>I had no idea what a shadowroot was until a couple of days ago, so I'm kind of trying a lot of options to get this to work. None worked so far. Most often than not I get the error <em>&quot;Evaluation failed: DOMException: Failed to execute 'querySelector' on 'Document': &lt;long text box's JS path&gt; is not a valid selector.&quot;</em></p>
  <p>My current strategy is to get the JSPath of the textboxes (and button) and then use these two lines (which, incidentally, work perfectly fine for items not in a shadowroot):</p>
  <pre><code>await page.focus('&lt;long text box's JS path')
  await page.keyboard.type(startd, delay=100)
  </code></pre>
  <p>I saw there are a lot of similar questions going on, but most of them focus on iFrames, which (based on my limited knowledge) are not the same as a shadowroot(?).</p>
  <p>Any suggestion on what i might do wrong?</p>