title: With Puppeteer: How can I get an iframe from its parent element selector?
body: <p>I want to get an iframe as frame and click an element in the frame, but the iframe does not have a name and the website has many frames (<code>page.frames()</code> returns 14).  </p>
  
  <p>And I don't have permission to edit html. I can only edit the JavaScript.  </p>
  
  <p>I think the best way to identify the iframe in this case is from its parent element.  </p>
  
  <p>How can I do this with puppeteer?  </p>
  
  <pre class="lang-html prettyprint-override"><code>&lt;div id="foo"&gt;
    &lt;iframe&gt;
      #document
    &lt;/iframe&gt;
  &lt;/div&gt;
  </code></pre>