import puppeteer from "puppeteer";
let url="https://www.google.com/maps/place/Skittle+Lane/data=!4m7!3m6!1s0x6b12ae3f49692bed:0x4f8c7cbe2bac3f02!8m2!3d-33.8686!4d151.2048!16s%2Fg%2F11c3sx27qv!19sChIJ7StpST-uEmsRAj-sK758jE8?authuser=0&hl=en&rclk=1";
(async () => {
const browser = await puppeteer.launch();
const page = await browser.newPage();
//Visiting google map url
await page.goto(url, {waitUntil: "load"});
let elementHandle = await page.$('iframe[align="middle"]');
console.log(elementHandle);
await browser.close();
})();
puppeteer not detecting iframe but with raw JS in browser console iframe got detected