• Jobs
  • About Us
  • professionals
    • Home
    • Jobs
    • Courses and challenges
  • business
    • Home
    • Post vacancy
    • Our process
    • Pricing
    • Assessments
    • Payroll
    • Blog
    • Sales
    • Salary Calculator

0

378
Views
Iframe no se carga correctamente en titiritero

Estoy tratando de analizar un sitio web usando titiritero, todo funciona bien, pero el iframe no se carga correctamente. Así se carga

ingrese la descripción de la imagen aquí

Aquí está mi código

 args: [ "--no-sandbox", ], }); const page = await browser.newPage(); await page.setViewport({ width: 1440, height: 600 }) // await waitForFrame(page); await page.goto(url, { waitUntil: 'networkidle2', timeout: 0, }); await page.evaluate(({ applicationUrl}: any ) => { // Here i want to evaluate iframes })

Cuando intento registrar iframes, no obtengo el enlace de iframe real en mi sitio web analizado

ingrese la descripción de la imagen aquí

Además, no veo la etiqueta iframe en el sitio web analizado.

ingrese la descripción de la imagen aquí

Pero cuando miro en la página real, puedo ver el enlace iframe

ingrese la descripción de la imagen aquí

y también la etiqueta iframe

ingrese la descripción de la imagen aquí

Aquí está el enlace a la página real que estoy tratando de analizar https://leza.notion.site/Trade-log-721b1ebb4cc74175abb55408b6f2d0c3

Cualquier ayuda sería muy apreciada

almost 3 years ago · Juan Pablo Isaza
1 answers
Answer question

0

es perezoso cargado

intente desplazarse y luego espere un poco hasta que se cargue el iframe, y luego obtenga el iframe:

 await page.goto(url, { waitUntil: 'networkidle2', timeout: 0, }); await page.evaluate(async() => { const scroll = document.querySelector('.notion-scroller'); scroll.scrollBy(0, 900); document.querySelector('.notion-video-block').scrollIntoView(); }); // wait some for iframe to load.. await page.waitFor(5000); const iframeSelector = 'iframe'; const frameHandle = await page.$(iframeSelector); const src = await page.evaluate(el => el.src, frameHandle); console.log(src);
almost 3 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Our process Sales
Legal
Terms and conditions Privacy policy
© 2025 PeakU Inc. All Rights Reserved.

Andres GPT

Recommend me some offers
I have an error