maestro icon indicating copy to clipboard operation
maestro copied to clipboard

Command to scroll horizontally

Open ragunathjawahar opened this issue 3 years ago • 3 comments

The existing scroll command supports vertical scrolling, do we need to parameterise this command/use the SwipeCommand to imitate horizontal scrolling?

ragunathjawahar avatar Sep 11 '22 00:09 ragunathjawahar

Hello, You can use the swipe command : https://maestro.mobile.dev/reference/scroll-and-swipe

- swipe: # This command swipes from point (x:100, y:500) to point (x: 300, y:500). Units are in pixels
start: 100, 500 end: 300, 500`

Or, what you ask for, is a simpler command "swipe" without parameter, like scroll ?

(but it could be nice to specify direction, "scroll down", "scroll up", "swipe left", "swipe right")

Colorofbest avatar Sep 11 '22 10:09 Colorofbest

Agree that having a DSL-like command for swiping makes sense

dmitry-zaitsev avatar Sep 12 '22 11:09 dmitry-zaitsev

Agree that having a DSL-like command for swiping makes sense

Some other gestures we need : onDoubleTap dragging zoomIn/Out

ghasemdev avatar Sep 15 '22 04:09 ghasemdev

It is now possible to swipe left and right: https://maestro.mobile.dev/reference/scroll-and-swipe

dmitry-zaitsev avatar Nov 15 '22 10:11 dmitry-zaitsev

This issue has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar problem, please file a new issue. Make sure to follow the template and provide all the information necessary to reproduce the issue. Thank you for helping keep us our issue tracker clean!

github-actions[bot] avatar Jul 11 '24 17:07 github-actions[bot]