Skip to content
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

Drag & drop action #227

Closed
angrykoala opened this issue Oct 19, 2018 · 2 comments
Closed

Drag & drop action #227

angrykoala opened this issue Oct 19, 2018 · 2 comments
Labels
blocked Block by external issue or cause, defined in the description feature Adds a new feature

Comments

@angrykoala
Copy link
Owner

An action to drag & drop

It should accept both coordinates (x,y) and elements

browser.dragAndDrop(from, to)
@angrykoala angrykoala added the feature Adds a new feature label Oct 19, 2018
@angrykoala angrykoala added this to the 1.6 milestone Oct 19, 2018
@angrykoala
Copy link
Owner Author

const e = await page.$('#searchResultsSidebar');
const box = await e.boundingBox();
await page.mouse.move(box.x + box.width / 2, box.y + boy.height / 2);
await page.mouse.down();
await page.mouse.move(100, 200); // move to (100, 200) coordinates
await page.mouse.up();

@angrykoala
Copy link
Owner Author

angrykoala commented Oct 26, 2018

Not working, may be blocked by puppeteer/puppeteer#2085

@angrykoala angrykoala added the blocked Block by external issue or cause, defined in the description label Oct 26, 2018
@angrykoala angrykoala modified the milestones: 1.6, 1.7 Dec 14, 2018
@angrykoala angrykoala modified the milestones: 1.7, 1.8 Jan 9, 2019
@angrykoala angrykoala modified the milestones: 1.8, 1.9 Feb 6, 2019
@angrykoala angrykoala modified the milestones: 1.9, 1.10 Feb 17, 2019
@angrykoala angrykoala modified the milestones: 1.10, 2.0 Mar 20, 2019
@angrykoala angrykoala changed the title Drag action Drag & drop action Mar 25, 2019
@angrykoala angrykoala modified the milestones: 2.0, 2.1 Mar 29, 2019
@angrykoala angrykoala modified the milestones: 2.1, 2.2 May 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Block by external issue or cause, defined in the description feature Adds a new feature
Projects
None yet
Development

No branches or pull requests

1 participant