-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
feat(dragAndDrop): page.dragAndDrop #6910
Conversation
@JoelEinbinder whats the status on this? |
Needs a discussion of the api. |
types/types.d.ts
Outdated
* @param selector2 | ||
* @param options | ||
*/ | ||
dragAndDrop(selector1: string, selector2: string, options?: { |
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.
Let's call it maybe source and target everywhere? So it also reflects nicer in auto completion. Some editors show the parameter name in the parameter list and selector1 and selector2 might be not idiomatic.
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.
Waiting for the chromium specific changes to land.
Proposed api:
page.dragAndDrop(selector1, selector2, options)
Also exists on the frame.
Assuming people like the api I will go write some docs.
#7562