Skip to content
This repository has been archived by the owner on Dec 26, 2019. It is now read-only.

Matched JSONWP error code 13 to UnknownError #1080

Open
aureliendelrue opened this issue Mar 7, 2019 · 7 comments
Open

Matched JSONWP error code 13 to UnknownError #1080

aureliendelrue opened this issue Mar 7, 2019 · 7 comments

Comments

@aureliendelrue
Copy link

aureliendelrue commented Mar 7, 2019

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

  • Appium version (or git revision) that exhibits the issue: 1.11.1
  • Desktop OS/version used to run Appium: Mac OS 10.14.1
  • Node.js version (unless using Appium.app|exe): v8.12.0
  • Mobile platform/version under test: iOS12.1
  • Real device or emulator/simulator: iPhone 7
  • Appium CLI or Appium.app|exe: Appium CLI installed with npm
  • Others : Appium node connected to Selenium Hub (3.14)

Details

Log Appium : GIST

@mykola-mokhnach
Copy link
Contributor

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.

@aureliendelrue
Copy link
Author

Hi @mykola-mokhnach, you mean Appium sends wrong command to WDA for a web context ?

@mykola-mokhnach
Copy link
Contributor

No I mean Actions API is not supported by mobile Safari at all

@aureliendelrue
Copy link
Author

aureliendelrue commented Mar 11, 2019

@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...

@Ganpal
Copy link

Ganpal commented Mar 19, 2019

I am seeing this issue on appium v.1.11 for Mac v10.13.6 on iOS Simulator v12.1

@aureliendelrue
Copy link
Author

@Ganpal this issue and Appium issue are in standby... we should compare our capabilities, maybe we are missing something...

@paulinedess
Copy link

Hi, I got similar issue. Is there a way to test on safari @mykola-mokhnach ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants