calabash-android can not drag or swipe a slider button

243 Views Asked by At

i can swipe the Floating layer -> green area

using perform_action('drag_coordinates',0,1030,800,1030) or

%x{#{default_device.adb_command} shell input swipe 0 1030 800 1030}

but can not drag or swipe the slider using perform_action('drag_coordinates',252,1030,800,1030) and adb shell command

even hide the Floating layer

drag action does not work neither, i am sure the coordinates is correct.

enter image description here

**enter image description here**

1

There are 1 best solutions below

1
Mesut GUNES On

Have you tried pan command:

pan("* id:'yoda_slider_window_green_block'", :right)
pan("* id:'yoda_slider_window_green_block'", :left)