Skip to content

Await Top Level #3

@furryalpacca

Description

@furryalpacca

Hey there, I have been trying to use your code for a while now. The JS seems perfectly fine (works without any issues in any browser).
The problem appears when using it with python. I always get this error:

selenium.common.exceptions.WebDriverException: Message: unknown error: Runtime.evaluate threw exception: SyntaxError: await is only valid in async functions and the top level bodies of modules

It appears there is some issue with either the chromedriver or selenium. I have made sure selenium is up to date and Chrome supports top level awaits since version 89 (I am running 96)! Any ideas on how I could fix this issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions