Skip to main content

drag_to

Interaction

Drags an element onto another element.

Parameters

Parameter Type Required Default Description
source_selector string Yes Source element selector
target_selector string Yes Target element selector
iframe string No CSS selector for iframe context
timeout number No 5000 Maximum wait time in milliseconds
source_position object No Source element offset {x, y}
target_position object No Target element offset {x, y}

Usage Example

RTILA X PROJECT JSON

    {
  "command": "drag_to",
  "params": {
    "source_selector": "css=.draggable-card",
    "target_selector": "css=.drop-zone",
    "iframe": "",
    "timeout": 5000,
    "source_position": null,
    "target_position": null
  }
}
  

Related Scenarios

Related Learning Articles

Was this helpful?