You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24-10
Original file line number
Diff line number
Diff line change
@@ -1044,20 +1044,34 @@ wifi | booolean | no | Either to enable or disable Wi-Fi. | false
1044
1044
data | booolean | no | Either to enable or disable mobile data. | false
1045
1045
airplaneMode | booolean | no | Either to enable or disable Airplane Mode. | false
1046
1046
1047
+
### mobile: getAppStrings
1048
+
1049
+
Retrieves string resources for the given app language. An error is thrown if strings cannot be fetched or no strings exist
1050
+
for the given language abbreviation. Available since driver version 2.15.0
1051
+
1052
+
#### Arguments
1053
+
1054
+
Name | Type | Required | Description | Example
1055
+
--- | --- | --- | --- | ---
1056
+
language | string | no | The language abbreviation to fetch app strings mapping for. If no language is provided then strings for the default language on the device under test would be returned | fr
1057
+
1058
+
#### Returned Result
1059
+
1060
+
App strings map, where keys are resource identifiers.
1047
1061
1048
1062
## Applications Management
1049
1063
1050
1064
UiAutomator2 driver supports Appium endpoints for applications management:
1051
-
- Check if app is installed (`POST /appium/device/app_installed`)
- Since UIAutomator2 driver v2.2.0, the server calls `am start`/`am start-activity` to start the application on devices with API level 24+. [monkey](https://developer.android.com/studio/test/other-testing-tools/monkey) tool is called on devices below API level 24.
1055
1069
- UIAutomator2 driver v2.1.2 and lower versions call the `monkey` tool on all devices.
1056
1070
- The `monkey` tool [turns on auto rotation](https://stackoverflow.com/questions/56684778/adb-shell-monkey-command-changing-device-orientation-lock), so please consider using [mobile: startActivity](#mobile-startactivity) if you would like to keep your current rotation preferences.
0 commit comments