-
Notifications
You must be signed in to change notification settings - Fork 5.4k
[Feature] Define Page.click options typing #5821
Copy link
Copy link
Closed
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels