-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
[Feature] Drag and Drop for uploading folders #9823
Comments
@Vanish404 I am not sure I understand the exact question. Do you have a page that accepts dropped files/folders and you'd like to test that? Perhaps you'd like some kind of API for external drag&drop? Here is a proposal (does not exist today): await page.drop('/path/to/folder'); |
@dgozman I built an example, so you can play around https://codesandbox.io/s/dreamy-frost-3eziz. I also add
I suppose yes, because page.dragAndDrop method works only with css selectors on the same page as I understood. In my case, I just want to drag and drop some folders from file manager (like finder) using playwright. My test-case looks like that:
|
@Vanish404 This makes sense. Let me change the title to a feature request, because we don't have such API right now. |
Hey @dgozman, any updates? or mb some workaround? |
@Vanish404 No updates on this one, sorry. |
Why was this issue closed?Thank you for your involvement. This issue was closed due to limited engagement (upvotes/activity), lack of recent activity, and insufficient actionability. To maintain a manageable database, we prioritize issues based on these factors. If you disagree with this closure, please open a new issue and reference this one. More support or clarity on its necessity may prompt a review. Your understanding and cooperation are appreciated. |
I wondering, is it possible to simulate drag and drop from file manger? For example Finder. I just want to drag and drop multiple folders and files and upload them directly to the S3. The problem is that File class has
path
field that read only. So if I drop a folder I will getDo you have some workaround to set this
path
field?The text was updated successfully, but these errors were encountered: