On both simulator and real device, I cannot get a TouchAction to register. We require a touch via Pencil where force > 1 for certain actions. In python, I do
TouchAction(driver).press(None, 500, 500, pressure=2.0).perform()
It appears to work, but nothing happens on iPad (simulator or device). Looking at logs, all seems normal:
[HTTP] --> POST /wd/hub/session/91e35fab-d162-4ed6-847a-06c55d46668f/touch/perform
[HTTP] {“actions”:[{“action”:“press”,“options”:{“x”:500,“y”:500,“pressure”:2}}]}
[debug] [W3C (91e35fab)] Calling AppiumDriver.performTouch() with args: [[{“action”:“press”,“options”:{“x”:500,“y”:500,“pressure”:2}}],“91e35fab-d162-4ed6-847a-06c55d46668f”]
[debug] [XCUITest] Executing command ‘performTouch’
[debug] [XCUITest] Received the following touch action: press(options={“x”:500,“y”:500,“pressure”:2})
[debug] [WD Proxy] Proxying [POST /wda/touch/perform] to [POST http://127.0.0.1:8100/session/6465DD50-0431-4511-AE72-8F54D1C10910/wda/touch/perform] with body: {“actions”:[{“action”:“press”,“options”:{“x”:500,“y”:500,“pressure”:2}}]}
[debug] [WD Proxy] Got response with status 200: {“value”:null,“sessionId”:“6465DD50-0431-4511-AE72-8F54D1C10910”}
[debug] [W3C (91e35fab)] Responding to client with driver.performTouch() result: null
[HTTP] <-- POST /wd/hub/session/91e35fab-d162-4ed6-847a-06c55d46668f/touch/perform 200 150 ms - 14
Any ideas? 3D Touch in IOS did not provide clues, because iPads don’t do 3D Touch and it’s being phased out of phones and iOS in general, correct?