I have an interesting puppeteer problem that I'm not sure how to solve.
I have a webpage with an iframe on it. To get the iframe handle I do the following:
const iframeHandle = await page.$('iframe')
To get the contentFrame I simply run:
const frame = await iframeHandle.contentFrame()
However, this returns null.
I printed out the iframeHandle to make sure I got the correct element, and it does grab the correct iframe:
console.dir(iframeHandle)
 _remoteObject: {
    type: 'object',
    subtype: 'node',
    className: 'HTMLIFrameElement',
    description: 'iframe',
    objectId: '{"injectedScriptId":5,"id":6}'
  },
Does anyone know how I can get the content of the iframe?
 
     
     
     
     
     
    