10/02/2026
Drag and drop in Playwright with Python: locate the item and destination, start with drag_to(), and verify the result.
If the page accepts drops only inside a small region, target_position selects a point relative to the target padding box. If the page depends on intermediate mouse movement, steps controls the number of mousemove events. steps requires Playwright Python 1.57 or later.
The carousel uses a simplified job board with example HTML IDs. Browser setup is assumed. The 48-pixel drop position belongs to the illustrated strip, not every website. Keep the layout stable before measuring and remeasure after layout changes. The drag examples are alternatives; reset the card between attempts.
HTML5 drag data is a separate thing to inspect if the normal action fails. Direct event dispatch is a different test path from a full mouse gesture.
Finish by checking the same card is in Applied and absent from Considering.
Practice choosing the action based on the page behavior.