microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
67.02k stars 3.68k forks source link

[Feature] Add drag'n drop support to codegen #19892

Open hanshs opened 1 year ago

hanshs commented 1 year ago

Context:

Describe the bug

Step to reproduce

  1. Run ´npx playwright codegen´
  2. In the automated browser window, go to https://www.w3schools.com/html/html5_draganddrop.asp
  3. Try to drag the logo in the first box to the second box

The inspector window only registers click event on the selector where the mouse was released. No dragTo event was registered Is there any way to achieve this?

chrome_JGgqMjXdUt

mxschmitt commented 1 year ago

Drag and drop is not yet implemented in the codegen, marking as a feature request.

chenshuichao commented 1 year ago

any plan about this feature?thank you!

chensce commented 1 year ago

recording mouse intertion, maybe we can reference the rrweb project: https://github.com/rrweb-io/rrweb

sushruth commented 1 year ago

This feature is crucial for projects that use a drag-able canvas, or custom scrolling apparatus, or file drag and drop UIs - like Outlook. I hope this gets picked up soon.

Anirudhv19 commented 1 year ago

The drag and drop feature isn't working on Codegen, in Playwright Version 1.38.0

JGJP commented 1 year ago

Bummer that this doesn't work. I expected something like this to be the main value proposition of codegen

AnshPatel15 commented 1 year ago

@mxschmitt Could i please get a timeline or something for drag and drop?

StuartAtmosi commented 8 months ago

I am new to Playwright & Codegen, but loving the software, however, when trying to drag a map with a pipeline on it to click on a station, I am unable to do this.

I notice there are a lot of closed tickets on this page. Does that mean it is supposed to be fixed or added as a new feature?

I am using the very latest versions, so judging by the dates of these other posts, if there is a fix/new feature, then I should have it and if so, it isn't working.

JGJP commented 7 months ago

@StuartAtmosi you can check this reply

It seems like it will not get implemented any time soon

AndiBMGitHub commented 7 months ago

Would be very nice to have this implemented/fixed, any plans to do it soon?

marcusNumminen commented 7 months ago

I would also like to see this

karunqa commented 3 months ago

I would also like to see this feature implemented.

fasatrix commented 3 months ago