Open aureliendelrue opened 5 years ago
It does not work, because W3C Actions are only supported in native context and you're trying to perform them on elements from the web context.
Hi @mykola-mokhnach, you mean Appium sends wrong command to WDA for a web context ?
No I mean Actions API is not supported by mobile Safari at all
@mykola-mokhnach I understand, so how can we test on safari mobile ? Maybe I forgot a capability in Appium to specify i'm testing on safari mobile...
I am seeing this issue on appium v.1.11 for Mac v10.13.6 on iOS Simulator v12.1
@Ganpal this issue and Appium issue are in standby... we should compare our capabilities, maybe we are missing something...
Hi, I got similar issue. Is there a way to test on safari @mykola-mokhnach ?
The problem
For some test cases, we have the following error
Matched JSONWP error code 13 to UnknownError
when interacting with an element. We don't understand why it's not working and we need help please. Test cases are working fine on Android devices.Example :
[WD Proxy][39m Got an unexpected response: {"value":"Error Domain=com.facebook.WebDriverAgent Code=1 \"Unsupported origin type '{\n ELEMENT = 5000;\n \"element-6066-11e4-a52e-4f735466cecf\" = 5000;\n}' is set for '{\n duration = 100;\n origin = {\n ELEMENT = 5000;\n \"element-6066-11e4-a52e-4f735466cecf\" = 5... [debug][35m[MJSONWP][39m Matched JSONWP error code 13 to UnknownError [debug][35m[XCUITest][39m Connection to WDA timed out [debug][35m[iProxy][39m recv failed: Operation not permitted [debug][35m[W3C (2088b021)][39m Encountered internal error running command: UnknownError: An unknown server-side error occurred while processing the command. Original error: Error Domain=com.facebook.WebDriverAgent Code=1 "Unsupported origin type '{ [debug] [35m[W3C (2088b021)][39m ELEMENT = 5000; [debug] [35m[W3C (2088b021)][39m "element-6066-11e4-a52e-4f735466cecf" = 5000; [debug] [35m[W3C (2088b021)][39m }' is set for '{ [debug] [35m[W3C (2088b021)][39m duration = 100; [debug] [35m[W3C (2088b021)][39m origin = { [debug] [35m[W3C (2088b021)][39m ELEMENT = 5000; [debug] [35m[W3C (2088b021)][39m "element-6066-11e4-a52e-4f735466cecf" = 5000; [debug] [35m[W3C (2088b021)][39m }; [debug] [35m[W3C (2088b021)][39m type = pointerMove; [debug] [35m[W3C (2088b021)][39m x = 0; [debug] [35m[W3C (2088b021)][39m y = 0; [debug] [35m[W3C (2088b021)][39m }' action item. Supported origin types: ( [debug] [35m[W3C (2088b021)][39m pointer, [debug] [35m[W3C (2088b021)][39m viewport [debug] [35m[W3C (2088b021)][39m ) or an element instance" UserInfo={NSLocalizedDescription=Unsupported origin type '{ [debug] [35m[W3C (2088b021)][39m ELEMENT = 5000; [debug][35m[W3C (2088b021)][39m "element-6066-11e4-a52e-4f735466cecf" = 5000; [debug][35m[W3C (2088b021)][39m }' is set for '{ [debug][35m[W3C (2088b021)][39m duration = 100; [debug][35m[W3C (2088b021)][39m origin = { [debug][35m[W3C (2088b021)][39m ELEMENT = 5000; [debug][35m[W3C (2088b021)][39m "element-6066-11e4-a52e-4f735466cecf" = 5000; [debug][35m[W3C (2088b021)][39m }; [debug][35m[W3C (2088b021)][39m type = pointerMove; [debug][35m[W3C (2088b021)][39m x = 0; [debug][35m[W3C (2088b021)][39m y = 0; [debug][35m[W3C (2088b021)][39m }' action item. Supported origin types: ( [debug][35m[W3C (2088b021)][39m pointer, [debug][35m[W3C (2088b021)][39m viewport [debug][35m[W3C (2088b021)][39m ) or an element instance} [debug][35m[W3C (2088b021)][39m at errorFromMJSONWPStatusCode (/Users/teamqualite/Documents/mobile-platform/iOS/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:789:10) [debug] [35m[W3C (2088b021)][39m at ProxyRequestError.getActualError (/Users/teamqualite/Documents/mobile-platform/iOS/node_modules/appium/node_modules/appium-base-driver/lib/protocol/errors.js:683:14) [debug] [35m[W3C (2088b021)][39m at JWProxy.command (/Users/teamqualite/Documents/mobile-platform/iOS/node_modules/appium/node_modules/appium-base-driver/lib/jsonwp-proxy/proxy.js:234:19) [debug] [35m[W3C (2088b021)][39m at <anonymous>
Environment
Details
Log Appium : GIST