Skip to content
masterclass Buddy

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.

Subscribe
  • Locator
  • dragenter
  • dragover
  • drop
  • DataTransfer
  • file upload

Source: Release notes | Playwright Python. Checked 2026-11-03.