Skip to content

page.waitForSelector timeout  #38

Closed

Description

@Biogasbottle

For privacy reasons, I cannot post the code. But I have found how to reproduce it. When the page completes the navigation ‘load’, the page has not been fully rendered by js. At this time, calling waitForSelector to wait for an element to be rendered will time out, even if the element has been rendered before the timeout.

Activity

  1. halvaenjoyer commented on Oct 18, 2024

    @halvaenjoyer

    How come is this a patch issue?

  2. nwebson commented on Oct 18, 2024

    @nwebson
    Contributor

    Do you use it with the latest patch version using addBinding method?

  3. Biogasbottle commented on Oct 19, 2024

    @Biogasbottle
    Author

    definitely..

    PS D:************> npm i --save-dev puppeteer puppeteer-core
    Debugger listening on ws://127.0.0.1:10061/da63e08e-be17-42d8-ace8-3794139d5d51
    For help, see: https://nodejs.org/en/docs/inspector
    Debugger attached.

    added 2 packages, and audited 549 packages in 1s

    150 packages are looking for funding
    run npm fund for details

    found 0 vulnerabilities
    Waiting for the debugger to disconnect...
    PS D:**********> npx rebrowser-patches@latest patch --packageName puppeteer-core
    Debugger listening on ws://127.0.0.1:10070/2f00998d-31f9-482b-ad07-c7e375ea9f96
    For help, see: https://nodejs.org/en/docs/inspector
    Debugger attached.
    Need to install the following packages:
    [email protected]
    Ok to proceed? (y) y

    Debugger listening on ws://127.0.0.1:10083/addf472d-35d4-4a55-9b2e-4d32c6086e4f
    For help, see: https://nodejs.org/en/docs/inspector
    Debugger attached.
    Config:
    command = patch, packageName = puppeteer-core
    packagePath = D:***********/node_modules/puppeteer-core

    Found package "puppeteer-core", version 23.6.0
    Current patch status = 🟧 unpatched
    Result: 🟢 success
    Waiting for the debugger to disconnect...
    Waiting for the debugger to disconnect...

  4. nwebson commented on Oct 23, 2024

    @nwebson
    Contributor

    Please share some code showing this issue so I can debug it locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions