Skip to content

[Feature] Define Page.click options typing #5821

@dipasqualew

Description

@dipasqualew

Hi everyone,

Thanks for the fantastic library. Loving it.

I am working with the Page Object Model paradigm and I am creating a method to handle different combinations of mouse clicks. My method should accept an identifier (a string that will be used to identify what we are going to click) and an option object to specify what kind of click it will be (single? double? with CTRL? with SHIFT?).

I noticed that Page.click second parameter (options) is not typed as an interface that can be wrapped, as in Partial<MouseClickOptions>. Is there interest in adding similar types?

I am happy to create a PR in case.

Cheers

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