-
Notifications
You must be signed in to change notification settings - Fork 4.9k
api(dispatchEvent): page, frame and handle versions added #1932
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
6fefc87 to
2dfcf7b
Compare
2dfcf7b to
c37ad2e
Compare
docs/api.md
Outdated
|
|
||
|
|
||
| #### page.dispatchEvent(selector, type[, eventInit, options]) | ||
| - `selector` <[string]> A selector to search for element to double click. If there are multiple elements satisfying the selector, the first will be double clicked. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double click?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
docs/api.md
Outdated
| - `selector` <[string]> A selector to search for element to double click. If there are multiple elements satisfying the selector, the first will be double clicked. | ||
| - `type` <[string]> DOM event type: `"click"`, `"dragstart"`, etc. | ||
| - `eventInit` <[Object]> event-specific initialization properties. | ||
| - returns: <[Promise]> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
returns is in the wrong place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
docs/api.md
Outdated
|
|
||
| Under the hood, it creates an instance of an event based on the given `type`, initializes it with `eventInit` properties and dispatches it on the element. Events are `composed`, `cancelable` and bubble by default. | ||
|
|
||
| Since `eventInit` is event-specific, please refer to the events documentation for the lists of initi properties: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: initi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
abc18aa to
2be5080
Compare
2be5080 to
06bcf95
Compare
No description provided.