appium / WebDriverAgent

A WebDriver server for iOS and tvOS
Other
1.24k stars 390 forks source link

Pinch IN and Pinch out POST data #552

Open bikeebh opened 2 years ago

bikeebh commented 2 years ago

I am using WDA for iOS device and i am trying to perform pinch in and pinch out operation using Co - ordinates

I am looking for some Post data for wda/touch/multi/perform Endpoint

@KazuCocoa can you please send some references document of link

which having POST data format For Pinch in and Pinch out

KazuCocoa commented 2 years ago

I'd recommend you to refer to W3C actions via https://github.com/appium/appium-xcuitest-driver/blob/c6b79d9c0a289bbbd701ff3c3837e18101eb8797/lib/commands/gesture.js#L113-L132 https://appium.io/docs/en/commands/interactions/actions/ instead of the multi/perform endpoint since the endpoint is not used by W3C actions, used by old protocol. We no longer maintain well for such endpoints only used by old protol. Btw, https://github.com/appium/WebDriverAgent/blob/a1824895274c60798b506f31054e4ce1e0400c71/WebDriverAgentTests/IntegrationTests/FBW3CMultiTouchActionsIntegrationTests.m is an example for the multiple commands. You also can find post data as appium log while https://appium.io/docs/en/writing-running-appium/touch-actions/ is running.