-
Notifications
You must be signed in to change notification settings - Fork 119
Open
Labels
bugSomething isn't working.Something isn't working.t-academyIssues related to Web Scraping and Apify academies.Issues related to Web Scraping and Apify academies.
Description
The examples in Scraping iFrames do not work and IMDb doesn't use iframe anymore:
The code in the first block is missing an import. Moreover, after adding the import and running the code, I obtain the following warning and error:
Puppeteer old Headless deprecation warning: In the near future `headless: true` will default to the new Headless mode for Chrome instead of the old Headless implementation. For more information, please see https://developer.chrome.com/articles/new-headless/. Consider opting in early by passing `headless: "new"` to `puppeteer.launch()` If you encounter any bugs, please report them to https://github.com/puppeteer/puppeteer/issues/new/choose. ^[[Bfile:///Users/marco/Onboarding/puppeteer-playwright/iframe.js:8 await page.waitFor(5000); // we need to wait for Twitter widget to load ^ TypeError: page.waitFor is not a function at file:///Users/marco/Onboarding/puppeteer-playwright/iframe.js:8:12 at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
If I substitute the waitFor function with the deprecated waitForTimeout one, the code works. Anyway, the IMDb website seems not to use any frame anymore, so this example is obsolete.
Metadata
Metadata
Assignees
Labels
bugSomething isn't working.Something isn't working.t-academyIssues related to Web Scraping and Apify academies.Issues related to Web Scraping and Apify academies.