Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

page.waitForTimeout is removed #2335

Closed
1 task
KOCEAN33 opened this issue Feb 14, 2024 · 0 comments
Closed
1 task

page.waitForTimeout is removed #2335

KOCEAN33 opened this issue Feb 14, 2024 · 0 comments
Assignees
Labels
bug Something isn't working. t-tooling Issues with this label are in the ownership of the tooling team.

Comments

@KOCEAN33
Copy link

Which package is this bug report for? If unsure which one to select, leave blank

@crawlee/puppeteer (PuppeteerCrawler)

Issue description

due to update puppeteer-core update v22.0.0, page.waitForTimeout is removed
(https://github.com/puppeteer/puppeteer/releases/tag/puppeteer-core-v22.0.0)

and puppeteerUtils.infiniteScroll() function is not working anymore
with "TypeError: page.waitForTimeout is not a function" error

As a temporary measure, I downgrad puppeteer to "21.11.0"

Code sample

import {puppeteerUtils} from "crawlee";

export async function newChannelScrapeProcess( page, log) {
    await page.waitForSelector('ytd-rich-grid-renderer')

    await puppeteerUtils.infiniteScroll(page, {scrollDownAndUp: true})

    const channelId = await page.$eval('meta:nth-child(81)', el => el.getAttribute('content'))

}

Package version

3.7.3

Node.js version

20.11

Operating system

Windows 11

Apify platform

  • Tick me if you encountered this issue on the Apify platform

I have tested this on the next release

3.7.4-beta.17

Other context

No response

@KOCEAN33 KOCEAN33 added the bug Something isn't working. label Feb 14, 2024
@B4nan B4nan added the t-tooling Issues with this label are in the ownership of the tooling team. label Feb 14, 2024
@B4nan B4nan added this to the 83rd sprint - Tooling team milestone Feb 14, 2024
@B4nan B4nan self-assigned this Feb 14, 2024
@B4nan B4nan closed this as completed in 52d7219 Feb 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working. t-tooling Issues with this label are in the ownership of the tooling team.
Projects
None yet
Development

No branches or pull requests

2 participants