appium-gestures-plugin icon indicating copy to clipboard operation
appium-gestures-plugin copied to clipboard

[Feature Request] Support for more gestures

Open itkhanz opened this issue 2 years ago • 4 comments

This plugin has really done a great job in easing the usage of gestures. It would be nice to see an upcoming release with the added support for common gestures such as:

  • [ ] Pinch/Spread (Zoom in and Zoom out)

  • [ ] Multi Finger Swipe

  • [ ] Rotate

  • [x] Double Tap -> Implemented in v3.0.0

This would enable the users to solely rely on gestures-plugin for all the common gestures. I believe these addition will make the plugin even more better.

itkhanz avatar Jun 16 '23 08:06 itkhanz

@itkhanz What is the Rotate as gesture?

saikrishna321 avatar Jun 18 '23 03:06 saikrishna321

@itkhanz What is the Rotate as gesture? It is basically a multitouch gesture with two fingers to move them in a clockwise/anti-clockwise direction to rotate the object in view. For example, an image orientation may be changed with this gesture from portrait to landscape and vice-versa.

Apple's SwiftUI and XCUITest has a support for rotation gesture. I am mentioning some links below for reference:

XCUIElement Actions and Gestures XCUIElement rotate gesture Handling rotation gestures

I could not find anything in Espresso or UIAutomator2 to test this gesture in Android. Though there is a documentation to implement this gesture in android as well: Multitouch: Panning, zooming, rotating

In my opinion, it is not as common gesture as some of the others.

itkhanz avatar Jun 18 '23 07:06 itkhanz

This Touch Gesture Reference Guide by Luke Wroblewski demonstrates various gestures in concise manner with illustrations. Touch Gesture Reference Guide

itkhanz avatar Jun 18 '23 07:06 itkhanz

@itkhanz For rotate you can use native mobile: commands

https://appium.github.io/appium-xcuitest-driver/4.32/reference/commands/appium-xcuitest-driver/#mobile-rotateelement

saikrishna321 avatar Jul 25 '23 07:07 saikrishna321