Skip to content

NullReferenceException in Page.QuerySelectorAsync when page loses connection/becomes unresponsive #3068

@lofti198

Description

@lofti198

Sometimes getting NullReferenceException when calling page.QuerySelectorAsync() on a page that appears to be open but has lost its connection. The page tab remains visible in the browser but enters an infinite loading state.

PuppeteerSharp Version: 20.0.2
OS: Windows Server 2022 Standard 21H2
Browser: Chromium (downloaded via BrowserFetcher)
Headless: false

Noticed that it happens more often in Debug mode

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions