Playwright · Method
page.type
Locator.drop() tests external drag-and-drop without a real mouse drag. It can send files or clipboard-like data to an element, making it useful for upload zones.
Last updated
- Since
- 1.60
Syntax
locator.drop(*, files=None, data=None)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
LocatordragenterdragoverdropDataTransferfile upload