appium-espresso-driver 2.9.1 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -721,6 +721,45 @@ Name | Type | Required | Description | Example
|
|
|
721
721
|
--- | --- | --- | --- | ---
|
|
722
722
|
timeoutMs | number | no | The maximum number of milliseconds to block until GPS cache is refreshed. If the API call does not receive a confirmation about successful cache refresh within this timeout then an error is thrown. Providing zero or a negative value to it skips waiting completely and does not check for any errors. 20000 ms by default. | 60000
|
|
723
723
|
|
|
724
|
+
### mobile: pullFile
|
|
725
|
+
|
|
726
|
+
Pulls a remote file from the device.
|
|
727
|
+
|
|
728
|
+
#### Arguments
|
|
729
|
+
|
|
730
|
+
Name | Type | Required | Description | Example
|
|
731
|
+
--- | --- | --- | --- | ---
|
|
732
|
+
remotePath | string | yes | The full path to the remote file or a specially formatted path, which points to an item inside an app bundle, for example `@my.app.id/my/path`. It is mandatory for the app bundle to have [debugging enabled](https://developer.android.com/studio/debug) in order to use the latter remotePath format. If the file with the given name does not exist then an exception will be thrown. | /sdcard/foo.bar
|
|
733
|
+
|
|
734
|
+
#### Returned Result
|
|
735
|
+
|
|
736
|
+
Base64-encoded string, which represents the content of the remote file.
|
|
737
|
+
|
|
738
|
+
### mobile: pushFile
|
|
739
|
+
|
|
740
|
+
Pushes a local file to the device.
|
|
741
|
+
|
|
742
|
+
#### Arguments
|
|
743
|
+
|
|
744
|
+
Name | Type | Required | Description | Example
|
|
745
|
+
--- | --- | --- | --- | ---
|
|
746
|
+
remotePath | string | yes | The path on the device to where the payload should be written. The value format is similar to the one used in [pullFile](#mobile-pullfile) extension. If the file with the same name already exists then it will be silently overridden. | /sdcard/foo.bar
|
|
747
|
+
payload | string | yes | Base64-encoded content of the file to be pushed. | QXBwaXVt
|
|
748
|
+
|
|
749
|
+
### mobile: pullFolder
|
|
750
|
+
|
|
751
|
+
Pulls a remote folder from the device.
|
|
752
|
+
|
|
753
|
+
#### Arguments
|
|
754
|
+
|
|
755
|
+
Name | Type | Required | Description | Example
|
|
756
|
+
--- | --- | --- | --- | ---
|
|
757
|
+
remotePath | string | yes | Same as for [pullFile](#mobile-pullfile) extension, but should be pointing to a remote folder | /sdcard/yolo/
|
|
758
|
+
|
|
759
|
+
#### Returned Result
|
|
760
|
+
|
|
761
|
+
Base64-encoded string, which represents the zipped content of the remote folder.
|
|
762
|
+
|
|
724
763
|
### mobile: deleteFile
|
|
725
764
|
|
|
726
765
|
Deletes a file on the remote device.
|
|
@@ -731,6 +770,111 @@ Name | Type | Required | Description | Example
|
|
|
731
770
|
--- | --- | --- | --- | ---
|
|
732
771
|
remotePath | string | yes | The full path to the remote file or a file inside an application bundle | `/sdcard/myfile.txt` or `@my.app.id/path/in/bundle`
|
|
733
772
|
|
|
773
|
+
### mobile: isAppInstalled
|
|
774
|
+
|
|
775
|
+
Verify whether an application is installed on the device under test.
|
|
776
|
+
|
|
777
|
+
#### Arguments
|
|
778
|
+
|
|
779
|
+
Name | Type | Required | Description | Example
|
|
780
|
+
--- | --- | --- | --- | ---
|
|
781
|
+
appId | string | yes | The identifier of the application package to be checked | `my.app.id`
|
|
782
|
+
|
|
783
|
+
#### Returned Result
|
|
784
|
+
|
|
785
|
+
True or false
|
|
786
|
+
|
|
787
|
+
### mobile: queryAppState
|
|
788
|
+
|
|
789
|
+
Queries the current state of the app.
|
|
790
|
+
|
|
791
|
+
#### Arguments
|
|
792
|
+
|
|
793
|
+
Name | Type | Required | Description | Example
|
|
794
|
+
--- | --- | --- | --- | ---
|
|
795
|
+
appId | string | yes | The identifier of the application package to be checked | `my.app.id`
|
|
796
|
+
|
|
797
|
+
#### Returned Result
|
|
798
|
+
|
|
799
|
+
The following numbers could returned:
|
|
800
|
+
- The app is not installed: `0`
|
|
801
|
+
- The app is installed and is not running: `1`
|
|
802
|
+
- The app is running in background: `3`
|
|
803
|
+
- The app is running in foreground: `4`
|
|
804
|
+
|
|
805
|
+
### mobile: activateApp
|
|
806
|
+
|
|
807
|
+
Activates the given application or launches it if necessary.
|
|
808
|
+
The action literally simulates
|
|
809
|
+
clicking the corresponding application icon on the dashboard.
|
|
810
|
+
|
|
811
|
+
#### Arguments
|
|
812
|
+
|
|
813
|
+
Name | Type | Required | Description | Example
|
|
814
|
+
--- | --- | --- | --- | ---
|
|
815
|
+
appId | string | yes | The identifier of the application package to be activated | `my.app.id`
|
|
816
|
+
|
|
817
|
+
### mobile: removeApp
|
|
818
|
+
|
|
819
|
+
Remove the corresponding application if is installed.
|
|
820
|
+
The call is ignored if the app is not installed.
|
|
821
|
+
|
|
822
|
+
#### Arguments
|
|
823
|
+
|
|
824
|
+
Name | Type | Required | Description | Example
|
|
825
|
+
--- | --- | --- | --- | ---
|
|
826
|
+
appId | string | yes | The identifier of the application package to be removed | `my.app.id`
|
|
827
|
+
|
|
828
|
+
#### Returned Result
|
|
829
|
+
|
|
830
|
+
True is the app has been found on the device and successfully removed. Otherwise false.
|
|
831
|
+
|
|
832
|
+
### mobile: terminateApp
|
|
833
|
+
|
|
834
|
+
Terminates the app if it is running.
|
|
835
|
+
|
|
836
|
+
#### Arguments
|
|
837
|
+
|
|
838
|
+
Name | Type | Required | Description | Example
|
|
839
|
+
--- | --- | --- | --- | ---
|
|
840
|
+
appId | string | yes | The identifier of the application package to be terminated | `my.app.id`
|
|
841
|
+
timeout | number | no | The count of milliseconds to wait until the app is terminated. 500ms by default. | 1500
|
|
842
|
+
|
|
843
|
+
#### Returned Result
|
|
844
|
+
|
|
845
|
+
True if the app has been successfully terminated.
|
|
846
|
+
|
|
847
|
+
### mobile: installApp
|
|
848
|
+
|
|
849
|
+
Installs the given application package to the device under test.
|
|
850
|
+
|
|
851
|
+
#### Arguments
|
|
852
|
+
|
|
853
|
+
Name | Type | Required | Description | Example
|
|
854
|
+
--- | --- | --- | --- | ---
|
|
855
|
+
appPath | string | yes | The local .apk(s) path on the server filesystem or a remote url. | `/app/path.apk`
|
|
856
|
+
timeout | number | no | The count of milliseconds to wait until the app is installed.. 6000ms by default. | 120000
|
|
857
|
+
allowTestPackages | boolean | no | Set to true in order to allow test packages installation. false by default | true
|
|
858
|
+
useSdcard | boolean | no | Set to true to install the app on sdcard instead of the device memory. false by default | true
|
|
859
|
+
grantPermissions | boolean | no | Set to true in order to grant all the permissions requested in the application's manifest automatically after the installation is completed under Android 6+. false by default | true
|
|
860
|
+
replace | boolean | no | Set it to false if you don't want the application to be upgraded/reinstalled if it is already present on the device, but throw an error instead. true by default | false
|
|
861
|
+
|
|
862
|
+
### mobile: clearApp
|
|
863
|
+
|
|
864
|
+
Deletes all data associated with a package. Calls `adb shell pm clear` under the hood.
|
|
865
|
+
The app should be accessible, should not be running,
|
|
866
|
+
and should exist on the device under test for this extension to work properly.
|
|
867
|
+
|
|
868
|
+
#### Arguments
|
|
869
|
+
|
|
870
|
+
Name | Type | Required | Description | Example
|
|
871
|
+
--- | --- | --- | --- | ---
|
|
872
|
+
appId | string | yes | The identifier of the application package to be cleared | `my.app.id`
|
|
873
|
+
|
|
874
|
+
#### Returned Result
|
|
875
|
+
|
|
876
|
+
Stdout of the corresponding adb command.
|
|
877
|
+
|
|
734
878
|
### mobile: startActivity
|
|
735
879
|
|
|
736
880
|
Starts the given activity with intent options, activity options and locale. Activity could only be executed in scope of the current app package.
|
|
@@ -767,6 +911,32 @@ Name | Type | Required | Description | Example
|
|
|
767
911
|
intent | string | yes | The name of the service intent to stop. Only services in the app's under test scope could be stopped. | `com.some.package.name/.YourServiceSubClassName`
|
|
768
912
|
user | number or string | no | The user ID for which the service is started. The `current` user id is used by default | 1006
|
|
769
913
|
|
|
914
|
+
### mobile: broadcast
|
|
915
|
+
|
|
916
|
+
Send a broadcast Intent. Invokes `am broadcast` command under the hood.
|
|
917
|
+
|
|
918
|
+
#### Arguments
|
|
919
|
+
|
|
920
|
+
Name | Type | Required | Description | Example
|
|
921
|
+
--- | --- | --- | --- | ---
|
|
922
|
+
intent | string | no | The full name of the intent to broadcast | `com.some.package.name/.YourIntentClassName`
|
|
923
|
+
user | number or string | no | Specify which user to send to; if not specified then send to all users. Possible values are `all`/`current`/`<numeric user id>` | current
|
|
924
|
+
receiverPermission | string | no | Require receiver to hold the given permission | android.permission.READ_PROFILE
|
|
925
|
+
allowBackgroundActivityStarts | boolean | no | The receiver may start activities even if in the background if set to `true` | false
|
|
926
|
+
action | string | no | Action name. The actual value for the Activity Manager's `-a` argument. | android.intent.action.MAIN
|
|
927
|
+
uri | string | no | Unified resource identifier. The actual value for the Activity Manager's `-d` argument. | https://appium.io
|
|
928
|
+
mimeType | string | no | Mime type. The actual value for the Activity Manager's `-t` argument. | application/json
|
|
929
|
+
identifier | string | no | Optional identifier. The actual value for the Activity Manager's `-i` argument. | my_identifier
|
|
930
|
+
categories | string or Array<string> | no | One or more category names. The actual value(s) for the Activity Manager's `-c` argument. | android.intent.category.LAUNCHER
|
|
931
|
+
component | string | no | Component name. The actual value for the Activity Manager's `-n` argument. | com.myapp/com.myapp.SplashActivity
|
|
932
|
+
package | string | no | Package name. The actual value for the Activity Manager's `-p` argument. | com.myapp
|
|
933
|
+
extras | Array<Array<string>> | no | Optional intent arguments. Must be represented as an array of arrays, where each subarray item contains two (only in case it no value is required for the given type) or three string items: value type, key (variable name) and the value itself. Supported value types are: `s`: string. Value must be a valid string; `sn`: null. Value is ignored for this type; `z`: boolean. Value must be either `true` or `false`; `i`: integer. Value must be a valid 4-byte integer number; `l`: long. Value must be a valid 8-byte long number; `f`: float: Value must be a valid float number; `u`: uri. Value must be a valid uniform resource identifier string; `cn`: component name. Value must be a valid component name string; `ia`: Integer[]. Value must be a string of comma-separated integers; `ial`: List<Integer>. Value must be a string of comma-separated integers; `la`: Long[]. Value must be a string of comma-separated long numbers; `lal`: List<Long>. Value must be a string of comma-separated long numbers; `fa`: Float[]. Value must be a string of comma-separated float numbers; `fal`: List<Float>. Value must be a string of comma-separated float numbers; `sa`: String[]. Value must be comma-separated strings. To embed a comma into a string escape it using "\,"; `sal`: List<String>. Value must be comma-separated strings. To embed a comma into a string, escape it using "\," | [['s', 'varName1', 'My String1'], ['s', 'varName2', 'My String2'], ['ia', 'arrName', '1,2,3,4']]
|
|
934
|
+
flags | string | no | Intent startup-specific flags as a hexadecimal string. Check [Intent documentation](https://developer.android.com/reference/android/content/Intent.html) for the list of available flag values (constants starting with `FLAG_ACTIVITY_`). Flag values could be merged using the logical 'or' operation. | 0x10200000 is the combination of two flags: 0x10000000 `FLAG_ACTIVITY_NEW_TASK` `|` 0x00200000 `FLAG_ACTIVITY_RESET_TASK_IF_NEEDED`
|
|
935
|
+
|
|
936
|
+
#### Returned Result
|
|
937
|
+
|
|
938
|
+
The actual stdout of the downstream `am` command.
|
|
939
|
+
|
|
770
940
|
### mobile: getDeviceTime
|
|
771
941
|
|
|
772
942
|
Retrieves the current device's timestamp.
|
|
@@ -45,10 +45,21 @@ extensions.executeMobile = async function executeMobile(mobileCommand, opts = {}
|
|
|
45
45
|
getNotifications: 'mobileGetNotifications',
|
|
46
46
|
listSms: 'mobileListSms',
|
|
47
47
|
sensorSet: 'sensorSet',
|
|
48
|
+
pushFile: 'mobilePushFile',
|
|
49
|
+
pullFile: 'mobilePullFile',
|
|
50
|
+
pullFolder: 'mobilePullFolder',
|
|
48
51
|
deleteFile: 'mobileDeleteFile',
|
|
52
|
+
isAppInstalled: 'mobileIsAppInstalled',
|
|
53
|
+
queryAppState: 'mobileQueryAppState',
|
|
54
|
+
activateApp: 'mobileActivateApp',
|
|
55
|
+
removeApp: 'mobileRemoveApp',
|
|
56
|
+
terminateApp: 'mobileTerminateApp',
|
|
57
|
+
installApp: 'mobileInstallApp',
|
|
58
|
+
clearApp: 'mobileClearApp',
|
|
49
59
|
startActivity: 'mobileStartActivity',
|
|
50
60
|
startService: 'mobileStartService',
|
|
51
61
|
stopService: 'mobileStopService',
|
|
62
|
+
broadcast: 'mobileBroadcast',
|
|
52
63
|
registerIdlingResources: 'mobileRegisterIdlingResources',
|
|
53
64
|
unregisterIdlingResources: 'mobileUnregisterIdlingResources',
|
|
54
65
|
listIdlingResources: 'mobileListIdlingResources',
|
|
@@ -68,4 +79,4 @@ extensions.executeMobile = async function executeMobile(mobileCommand, opts = {}
|
|
|
68
79
|
|
|
69
80
|
var _default = extensions;
|
|
70
81
|
exports.default = _default;
|
|
71
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
82
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJleHRlbnNpb25zIiwiZXhlY3V0ZU1vYmlsZSIsIm1vYmlsZUNvbW1hbmQiLCJvcHRzIiwibW9iaWxlQ29tbWFuZHNNYXBwaW5nIiwic2hlbGwiLCJleGVjRW11Q29uc29sZUNvbW1hbmQiLCJwZXJmb3JtRWRpdG9yQWN0aW9uIiwiY2hhbmdlUGVybWlzc2lvbnMiLCJnZXRQZXJtaXNzaW9ucyIsInN0YXJ0U2NyZWVuU3RyZWFtaW5nIiwic3RvcFNjcmVlblN0cmVhbWluZyIsInN3aXBlIiwic2Nyb2xsVG9QYWdlIiwibmF2aWdhdGVUbyIsImNsaWNrQWN0aW9uIiwiZGV2aWNlSW5mbyIsImlzVG9hc3RWaXNpYmxlIiwib3BlbkRyYXdlciIsImNsb3NlRHJhd2VyIiwic2V0RGF0ZSIsInNldFRpbWUiLCJnZXREZXZpY2VUaW1lIiwiYmFja2Rvb3IiLCJmbGFzaEVsZW1lbnQiLCJ1aWF1dG9tYXRvciIsInVpYXV0b21hdG9yUGFnZVNvdXJjZSIsIndlYkF0b21zIiwiZ2V0Q29udGV4dHMiLCJkaXNtaXNzQXV0b2ZpbGwiLCJnZXROb3RpZmljYXRpb25zIiwibGlzdFNtcyIsInNlbnNvclNldCIsInB1c2hGaWxlIiwicHVsbEZpbGUiLCJwdWxsRm9sZGVyIiwiZGVsZXRlRmlsZSIsImlzQXBwSW5zdGFsbGVkIiwicXVlcnlBcHBTdGF0ZSIsImFjdGl2YXRlQXBwIiwicmVtb3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Ba0Q7SUFDaEQsTUFBTSxJQUFJd0QsY0FBQSxDQUFPQyxtQkFBWCxDQUFnQywyQkFBMEJ6RCxhQUFjLEtBQXpDLEdBQ2xDLFFBQU9zRCxlQUFBLENBQUVJLElBQUYsQ0FBT3hELHFCQUFQLENBQThCLDBCQURsQyxDQUFOO0VBRUQ7O0VBQ0QsT0FBTyxNQUFNLEtBQUtBLHFCQUFxQixDQUFDRixhQUFELENBQTFCLEVBQTJDQyxJQUEzQyxDQUFiO0FBQ0QsQ0FyRkQ7O2VBdUZlSCxVIn0=
|
|
Binary file
|
package/lib/commands/execute.js
CHANGED
|
@@ -52,12 +52,23 @@ extensions.executeMobile = async function executeMobile (mobileCommand, opts = {
|
|
|
52
52
|
|
|
53
53
|
sensorSet: 'sensorSet',
|
|
54
54
|
|
|
55
|
+
pushFile: 'mobilePushFile',
|
|
56
|
+
pullFile: 'mobilePullFile',
|
|
57
|
+
pullFolder: 'mobilePullFolder',
|
|
55
58
|
deleteFile: 'mobileDeleteFile',
|
|
56
59
|
|
|
57
|
-
|
|
60
|
+
isAppInstalled: 'mobileIsAppInstalled',
|
|
61
|
+
queryAppState: 'mobileQueryAppState',
|
|
62
|
+
activateApp: 'mobileActivateApp',
|
|
63
|
+
removeApp: 'mobileRemoveApp',
|
|
64
|
+
terminateApp: 'mobileTerminateApp',
|
|
65
|
+
installApp: 'mobileInstallApp',
|
|
66
|
+
clearApp: 'mobileClearApp',
|
|
58
67
|
|
|
68
|
+
startActivity: 'mobileStartActivity',
|
|
59
69
|
startService: 'mobileStartService',
|
|
60
70
|
stopService: 'mobileStopService',
|
|
71
|
+
broadcast: 'mobileBroadcast',
|
|
61
72
|
|
|
62
73
|
registerIdlingResources: 'mobileRegisterIdlingResources',
|
|
63
74
|
unregisterIdlingResources: 'mobileUnregisterIdlingResources',
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "appium-espresso-driver",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.10.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "appium-espresso-driver",
|
|
9
|
-
"version": "2.
|
|
9
|
+
"version": "2.10.0",
|
|
10
10
|
"license": "Apache-2.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@babel/runtime": "^7.4.3",
|
|
13
13
|
"appium-adb": "^9.10.2",
|
|
14
|
-
"appium-android-driver": "^5.
|
|
14
|
+
"appium-android-driver": "^5.4.0",
|
|
15
15
|
"asyncbox": "^2.3.1",
|
|
16
16
|
"bluebird": "^3.5.0",
|
|
17
17
|
"lodash": "^4.17.11",
|
|
@@ -1391,7 +1391,7 @@
|
|
|
1391
1391
|
}
|
|
1392
1392
|
},
|
|
1393
1393
|
"node_modules/appium-android-driver": {
|
|
1394
|
-
"version": "5.
|
|
1394
|
+
"version": "5.4.0",
|
|
1395
1395
|
"license": "Apache-2.0",
|
|
1396
1396
|
"dependencies": {
|
|
1397
1397
|
"@babel/runtime": "^7.0.0",
|
|
@@ -6465,7 +6465,7 @@
|
|
|
6465
6465
|
}
|
|
6466
6466
|
},
|
|
6467
6467
|
"appium-android-driver": {
|
|
6468
|
-
"version": "5.
|
|
6468
|
+
"version": "5.4.0",
|
|
6469
6469
|
"requires": {
|
|
6470
6470
|
"@babel/runtime": "^7.0.0",
|
|
6471
6471
|
"appium-adb": "^9.10.9",
|
package/package.json
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
"automated testing",
|
|
8
8
|
"android"
|
|
9
9
|
],
|
|
10
|
-
"version": "2.
|
|
10
|
+
"version": "2.10.0",
|
|
11
11
|
"author": "Appium Contributors",
|
|
12
12
|
"license": "Apache-2.0",
|
|
13
13
|
"repository": {
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@babel/runtime": "^7.4.3",
|
|
64
64
|
"appium-adb": "^9.10.2",
|
|
65
|
-
"appium-android-driver": "^5.
|
|
65
|
+
"appium-android-driver": "^5.4.0",
|
|
66
66
|
"asyncbox": "^2.3.1",
|
|
67
67
|
"bluebird": "^3.5.0",
|
|
68
68
|
"lodash": "^4.17.11",
|