Skip to content
CodeKruPro

Drag and Drop

57/70

Drag and Drop

locator.dragTo(target) drags one element to another.

On the Drag and Drop page, you can drag boxes into drop zones. A dropped box moves inside the drop zone element, so its parent changes.

Task:

  1. Navigate to https://testkru.com/Interactions/DragAndDrop
  2. Drag #box1 to #dropZone1
  3. Print the id of #box1's parent element after the drop

Expected output:

Box 1 parent: dropZone1