Open BastienTLC opened 2 months ago
@BastienTLC @Jitu1888 The "tap & swipe" won't work because now with the WebDriverAgent version over 7.0.0, the old actions are removed: https://github.com/appium/appium-xcuitest-driver/releases/tag/v7.0.0
We must update the script in coordinator/wda.go
> function swipe
to:
func ( self *WDAType ) swipe( sid string, x1 int, y1 int, x2 int, y2 int ) ( string ) {
log.Info( "Swiping:", x1, y1, x2, y2 )
json := fmt.Sprintf( `{
"actions": [
{
"type": "pointer",
"id": "finger1",
"parameters": {"pointerType": "touch"},
"actions": [
{"type": "pointerMove", "duration": 0, "x": %d, "y": %d},
{"type": "pointerDown", "button": 0},
{"type": "pause", "duration": 500},
{"type": "pointerMove", "duration": 0, "origin": "pointer", "x": %d, "y": %d},
{"type": "pointerUp", "button": 0}
]
}
]
}`, x1, y1, x2, y2 )
resp, _ := http.Post( self.base + "/session/" + sid + "/actions", "application/json", strings.NewReader( json ) )
res := resp_to_str( resp )
log.Info( "response " + res )
return res
}
When i try to tap or swipe on the screen nothing is happening when i consult the logs after tap on screen : ./view_log -proc wdaproxy
./view_log -proc wda
./view_log -proc stf_ios_device
These errors seem to show that the endpoint does not exist When i check in WDA documentation : https://w3c.github.io/webdriver/ i can't find somethings related to /touch/perform endpoint. So to ensure me that working i forked this repository : https://github.com/BastienTLC/stf-ios-provider to adapt the endpoints
Did you manage to get control working without forking this repository ?