Mobile JSON Wire Protocol
The following is a list of legacy Mobile JSON Wire Protocol (MJSONWP) endpoints supported in Appium.
getRotation¶
MJSONWP documentation: Device Rotation
Retrieves the current spatial orientation of the device under test.
Deprecated
Please use getAppiumRotation instead
Response¶
Rotation - an object with the following properties:
| Name | Description | Type |
|---|---|---|
x |
Degrees by which the device is rotated on its X axis | number |
y |
Degrees by which the device is rotated on its Y axis | number |
z |
Degrees by which the device is rotated on its Z axis | number |
setRotation¶
MJSONWP documentation: Device Rotation
Sets the spatial orientation of the device under test.
Deprecated
Please use setAppiumRotation instead
Parameters¶
| Name | Description | Type |
|---|---|---|
x |
Degrees by which the device is rotated on its X axis | number |
y |
Degrees by which the device is rotated on its Y axis | number |
z |
Degrees by which the device is rotated on its Z axis | number |
Response¶
null
getCurrentContext¶
MJSONWP documentation: Webviews and Other Contexts
Retrieves the active application context.
Deprecated
Please use getCurrentAppiumContext instead
Response¶
string - the name of the active context
setContext¶
MJSONWP documentation: Webviews and Other Contexts
Sets an application context as the active context.
Deprecated
Please use setAppiumContext instead
Parameters¶
| Name | Description | Type |
|---|---|---|
name |
Name of the context to set as the active one | string |
Response¶
null
getContexts¶
MJSONWP documentation: Webviews and Other Contexts
Retrieves all available application contexts.
Deprecated
Please use getAppiumContexts instead
Response¶
string[] - the names of available contexts