-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
actionsUser interaction actions (tap, drag, zoom, etc)User interaction actions (tap, drag, zoom, etc)enhancementNew feature or requestNew feature or request
Description
Description
Add support for drag and drop gestures to move UI elements.
Requirements
- Implement
DragActionclass - Support drag from (x1, y1) to (x2, y2)
- Support drag element to target element
- Add duration parameter (default 500ms)
- Integrate with ADB input swipe command
Files
smartmonkey/exploration/action.py(add DragAction)smartmonkey/device/event_manager.py(add drag method)
Usage example
# Drag from point to point
DragAction(from_x=100, from_y=200, to_x=500, to_y=800, duration=500)
# Drag element to target
DragAction(element=source_elem, target=target_elem)Acceptance Criteria
- DragAction class implemented
- ADB swipe command integration
- Duration parameter support
- Element-to-element drag support
- Unit tests added
Metadata
Metadata
Assignees
Labels
actionsUser interaction actions (tap, drag, zoom, etc)User interaction actions (tap, drag, zoom, etc)enhancementNew feature or requestNew feature or request