appium / WebDriverAgent

A WebDriver server for iOS and tvOS
Other
1.18k stars 370 forks source link

pause Action Not Working in Pointer Action Sequence #936

Open myungkyojung opened 2 weeks ago

myungkyojung commented 2 weeks ago

I wrote a W3C action to perform a double-tap gesture, but I've encountered an issue where the action {"type":"pause", "duration": 200} doesn't seem to work as expected. The rest of the sequence executes correctly, but this specific pause doesn't have any effect. Could you help me understand why this is happening and how to fix it?

{ "actions":[ { "type":"pointer", "id":"finger1", "parameters":{"pointerType":"touch"}, "actions":[ {"type":"pointerMove", "x":100,"y":100}, {"type":"pointerDown"}, {"type":"pause", "duration": 50}, {"type":"pointerUp"}, {"type":"pause", "duration": 200}, {"type":"pointerDown"}, {"type":"pause", "duration": 50}, {"type":"pointerUp"} ] } ]

KazuCocoa commented 2 weeks ago

https://github.com/appium/appium/issues/16583 could be duplicated. In sort, it might be difficult to fix with low-level XCTest APIs. https://appium.github.io/appium-xcuitest-driver/latest/guides/gestures/ also would help.