Skip to content

press_builder() seems broken. Missing 3 default values on the builder #47

@randall-coding

Description

@randall-coding

When I use press_builder() on my script I get this error at runtime.

Error "delay: expected number, got object"

Then I update my code to be page.press_builder().delay(30.0).press()

and then I get an error

Error "noWaitAfter: expected boolean, got object"

so then I add no_wait_after() function like so page.press_builder().no_wait_after(false).delay(30.0).press()

after that I see see this error

Error "timeout: expected number, got object"

and manually adding the timeout() to the chain makes it work.

So those three default values are not being set on my press_builder() for some reason. I'm not having this issue with any other builder so far.

DISCLAIMER: I'm not 100% sure this is true on your version. I modified my playwright slightly, but I don't think I changed anything that would effect default values for press_builder().

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