AppiumTestDistribution / appium-gestures-plugin

Appium plugin designed to perform gestures using W3C Actions.
47 stars 13 forks source link

[Feature Request] Support for more gestures #88

Open itkhanz opened 1 year ago

itkhanz commented 1 year ago

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:

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.

saikrishna321 commented 1 year ago

@itkhanz What is the Rotate as gesture?

itkhanz commented 1 year ago

@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 commented 1 year ago

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

saikrishna321 commented 1 year ago

@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