@wdio/protocols 6.10.6 → 6.12.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wdio/protocols",
3
- "version": "6.10.6",
3
+ "version": "6.12.0",
4
4
  "description": "Utility package providing information about automation protocols",
5
5
  "author": "Christian Bromann <christian@saucelabs.com>",
6
6
  "homepage": "https://github.com/webdriverio/webdriverio/tree/master/packages/wdio-protocols",
@@ -24,5 +24,5 @@
24
24
  "publishConfig": {
25
25
  "access": "public"
26
26
  },
27
- "gitHead": "c3fa466d4e0fece382f2d04ead5f19f97eaa71fe"
27
+ "gitHead": "e8bae1e8becee38ee362989dc91bdd0c831512e9"
28
28
  }
@@ -252,23 +252,6 @@
252
252
  }
253
253
  }
254
254
  },
255
- "/session/:sessionId/reporting/generate_test_report": {
256
- "POST": {
257
- "command": "generateTestReport",
258
- "description": "Generates a report for testing. Extension for [Reporting API](https://developers.google.com/web/updates/2018/09/reportingapi).",
259
- "ref": "https://w3c.github.io/reporting/#generate-test-report-command",
260
- "parameters": [{
261
- "name": "message",
262
- "type": "string",
263
- "description": "Message to be displayed in the report.",
264
- "required": true
265
- }, {
266
- "name": "group",
267
- "type": "string",
268
- "description": "Specifies the endpoint group to deliver the report to."
269
- }]
270
- }
271
- },
272
255
  "/session/:sessionId/file": {
273
256
  "POST": {
274
257
  "command": "file",
@@ -930,5 +930,293 @@
930
930
  "description": "The result of a Accessible Name and Description Computation for the Accessible Name of the element."
931
931
  }
932
932
  }
933
+ },
934
+ "/session/:sessionId/permissions": {
935
+ "POST": {
936
+ "command": "setPermissions",
937
+ "description": "Simulates user modification of a PermissionDescriptor's permission state. __Note:__ this feature has not landed in all browsers yet.",
938
+ "ref": "https://w3c.github.io/permissions/#set-permission-command",
939
+ "examples": [
940
+ [
941
+ "// set midi permissions",
942
+ "browser.setPermissions({",
943
+ " name: 'midi',",
944
+ " sysex; true",
945
+ ", 'granted'); // can be also 'denied' or 'prompt'"
946
+ ]
947
+ ],
948
+ "parameters": [{
949
+ "name": "descriptor",
950
+ "type": "object",
951
+ "description": "Each powerful feature has one or more aspects that websites can request permission to access. To describe these aspects, each feature defines a subtype of PermissionDescriptor to be its permission descriptor type. __Note:__ this feature has not landed in all browsers yet.",
952
+ "required": true
953
+ }, {
954
+ "name": "state",
955
+ "type": "string",
956
+ "description": "Determines whether permission is granted, denied or prompted.",
957
+ "required": true
958
+ }, {
959
+ "name": "oneRealm",
960
+ "type": "boolean",
961
+ "description": "Whether or not to apply permissions to all execution contexts.",
962
+ "required": false
963
+ }]
964
+ }
965
+ },
966
+ "/session/:sessionId/reporting/generate_test_report": {
967
+ "POST": {
968
+ "command": "generateTestReport",
969
+ "description": "Generates a report for testing. Extension for [Reporting API](https://developers.google.com/web/updates/2018/09/reportingapi). __Note:__ this feature has not landed in all browsers yet.",
970
+ "ref": "https://w3c.github.io/reporting/#automation",
971
+ "parameters": [{
972
+ "name": "message",
973
+ "type": "string",
974
+ "description": "Message to be displayed in the report.",
975
+ "required": true
976
+ }, {
977
+ "name": "group",
978
+ "type": "string",
979
+ "description": "Specifies the endpoint group to deliver the report to."
980
+ }]
981
+ }
982
+ },
983
+ "/session/:sessionId/sensor": {
984
+ "POST": {
985
+ "command": "createMockSensor",
986
+ "description": "Creates a mock sensor to emulate sensors like Ambient Light Sensor. __Note:__ this feature has not landed in all browsers yet.",
987
+ "ref": "https://w3c.github.io/sensors/#create-mock-sensor-command",
988
+ "parameters": [{
989
+ "name": "mockSensorType",
990
+ "type": "string",
991
+ "description": "Type of sensor API to mock, e.g. 'ambient-light'",
992
+ "required": true
993
+ }, {
994
+ "name": "maxSamplingFrequency",
995
+ "type": "number",
996
+ "description": "A double representing frequency in Hz that is used to set maximum supported sampling frequency for the associated mock sensor."
997
+ }, {
998
+ "name": "minSamplingFrequency",
999
+ "type": "number",
1000
+ "description": "A double representing frequency in Hz that is used to set minimum supported sampling frequency for the associated mock sensor."
1001
+ }]
1002
+ }
1003
+ },
1004
+ "/session/:sessionId/sensor/:type": {
1005
+ "GET": {
1006
+ "command": "getMockSensor",
1007
+ "description": "Retrieves information about a given type of mock sensor. __Note:__ this feature has not landed in all browsers yet.",
1008
+ "ref": "https://w3c.github.io/sensors/#get-mock-sensor-command",
1009
+ "variables": [{
1010
+ "name": "type",
1011
+ "description": "Mock sensor type to retrieve information from."
1012
+ }],
1013
+ "parameters": [],
1014
+ "returns": {
1015
+ "type": "object",
1016
+ "name": "sensorReading",
1017
+ "description": "Values of the mock sensor reading."
1018
+ }
1019
+ },
1020
+ "POST": {
1021
+ "command": "updateMockSensor",
1022
+ "description": "Updates the mock sensor type. __Note:__ this feature has not landed in all browsers yet.",
1023
+ "ref": "https://w3c.github.io/sensors/#update-mock-sensor-reading-command",
1024
+ "variables": [{
1025
+ "name": "type",
1026
+ "description": "Mock sensor type to update information for."
1027
+ }],
1028
+ "parameters": [{
1029
+ "name": "mockSensorType",
1030
+ "type": "string",
1031
+ "description": "Type of sensor API to mock, e.g. 'ambient-light'",
1032
+ "required": true
1033
+ }, {
1034
+ "name": "maxSamplingFrequency",
1035
+ "type": "number",
1036
+ "description": "A double representing frequency in Hz that is used to set maximum supported sampling frequency for the associated mock sensor."
1037
+ }, {
1038
+ "name": "minSamplingFrequency",
1039
+ "type": "number",
1040
+ "description": "A double representing frequency in Hz that is used to set minimum supported sampling frequency for the associated mock sensor."
1041
+ }]
1042
+ },
1043
+ "DELETE": {
1044
+ "command": "deleteMockSensor",
1045
+ "description": "The Delete Session command closes any top-level browsing contexts associated with the current session, terminates the connection, and finally closes the current session. __Note:__ this feature has not landed in all browsers yet.",
1046
+ "ref": "https://w3c.github.io/sensors/#delete-mock-sensor-command",
1047
+ "variables": [{
1048
+ "name": "type",
1049
+ "description": "Mock sensor type to delete."
1050
+ }],
1051
+ "parameters": []
1052
+ }
1053
+ },
1054
+ "/session/:sessionId/time_zone": {
1055
+ "POST": {
1056
+ "command": "setTimeZone",
1057
+ "description": "Simulates the changing of a time zone for the purposes of testing. __Note:__ this feature has not landed in all browsers yet.",
1058
+ "ref": "https://w3c.github.io/sensors/#create-mock-sensor-command",
1059
+ "parameters": [{
1060
+ "name": "time_zone",
1061
+ "type": "string",
1062
+ "description": "Name of the timezone, e.g. Asia/Tokyo",
1063
+ "required": true
1064
+ }]
1065
+ }
1066
+ },
1067
+ "/session/:sessionId/authenticator": {
1068
+ "POST": {
1069
+ "command": "addVirtualAuthenticator",
1070
+ "description": "Creates a software [Virtual Authenticator](https://www.w3.org/TR/webauthn-2/#virtual-authenticators).",
1071
+ "ref": "https://www.w3.org/TR/webauthn-2/#sctn-automation-add-virtual-authenticator",
1072
+ "parameters": [{
1073
+ "name": "protocol",
1074
+ "type": "string",
1075
+ "description": "Valid values: 'ctap1/u2f', 'ctap2', 'ctap2_1'",
1076
+ "required": false
1077
+ }, {
1078
+ "name": "transport",
1079
+ "type": "string",
1080
+ "description": "Valid values: 'usb', 'nfc', 'ble' or 'internal'",
1081
+ "required": false
1082
+ }, {
1083
+ "name": "hasResidentKey",
1084
+ "type": "boolean",
1085
+ "description": "",
1086
+ "required": false
1087
+ }, {
1088
+ "name": "hasUserVerification",
1089
+ "type": "boolean",
1090
+ "description": "",
1091
+ "required": false
1092
+ }, {
1093
+ "name": "isUserConsenting",
1094
+ "type": "boolean",
1095
+ "description": "",
1096
+ "required": false
1097
+ }, {
1098
+ "name": "isUserVerified",
1099
+ "type": "boolean",
1100
+ "description": "",
1101
+ "required": false
1102
+ }, {
1103
+ "name": "extensions",
1104
+ "type": "object[]",
1105
+ "description": "",
1106
+ "required": false
1107
+ }, {
1108
+ "name": "uvm",
1109
+ "type": "object[]",
1110
+ "description": "",
1111
+ "required": false
1112
+ }]
1113
+ }
1114
+ },
1115
+ "/session/:sessionId/authenticator/:authenticatorId": {
1116
+ "DELETE": {
1117
+ "command": "removeVirtualAuthenticator",
1118
+ "description": "Removes a previously created Virtual Authenticator.",
1119
+ "ref": "https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-virtual-authenticator",
1120
+ "variables": [{
1121
+ "name": "authenticatorId",
1122
+ "description": "id of authenticator"
1123
+ }],
1124
+ "parameters": []
1125
+ }
1126
+ },
1127
+ "/session/:sessionId/authenticator/:authenticatorId/credential": {
1128
+ "POST": {
1129
+ "command": "addCredential",
1130
+ "description": "Injects a Public Key Credential Source into an existing Virtual Authenticator.",
1131
+ "ref": "https://www.w3.org/TR/webauthn-2/#sctn-automation-add-credential",
1132
+ "parameters": [{
1133
+ "name": "credentialId",
1134
+ "type": "string",
1135
+ "description": "The Credential ID encoded using Base64url Encoding.",
1136
+ "required": true
1137
+ }, {
1138
+ "name": "isResidentCredential",
1139
+ "type": "boolean",
1140
+ "description": "If set to true, a client-side discoverable credential is created. If set to false, a server-side credential is created instead.",
1141
+ "required": true
1142
+ }, {
1143
+ "name": "rpId",
1144
+ "type": "string",
1145
+ "description": "The Relying Party ID the credential is scoped to.",
1146
+ "required": true
1147
+ }, {
1148
+ "name": "privateKey",
1149
+ "type": "string",
1150
+ "description": "An asymmetric key package containing a single private key per [RFC5958], encoded using Base64url Encoding.",
1151
+ "required": true
1152
+ }, {
1153
+ "name": "userHandle",
1154
+ "type": "string",
1155
+ "description": "The userHandle associated to the credential encoded using Base64url Encoding. This property may not be defined.",
1156
+ "required": true
1157
+ }, {
1158
+ "name": "signCount",
1159
+ "type": "number",
1160
+ "description": "The initial value for a signature counter associated to the public key credential source.",
1161
+ "required": true
1162
+ }, {
1163
+ "name": "largeBlob",
1164
+ "type": "string",
1165
+ "description": "The large, per-credential blob associated to the public key credential source, encoded using Base64url Encoding. This property may not be defined.",
1166
+ "required": true
1167
+ }]
1168
+ }
1169
+ },
1170
+ "/session/:sessionId/authenticator/:authenticatorId/credentials": {
1171
+ "GET": {
1172
+ "command": "getCredentials",
1173
+ "description": "Returns one Credential Parameters object for every Public Key Credential Source stored in a Virtual Authenticator, regardless of whether they were stored using Add Credential or `navigator.credentials.create()`.",
1174
+ "ref": "https://www.w3.org/TR/webauthn-2/#sctn-automation-get-credentials",
1175
+ "variables": [{
1176
+ "name": "authenticatorId",
1177
+ "description": "id of authenticator"
1178
+ }],
1179
+ "parameters": []
1180
+ },
1181
+ "DELETE": {
1182
+ "command": "removeAllCredentials",
1183
+ "description": "Removes all Public Key Credential Sources stored on a Virtual Authenticator.",
1184
+ "ref": "https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-all-credentials",
1185
+ "variables": [{
1186
+ "name": "authenticatorId",
1187
+ "description": "id of authenticator"
1188
+ }],
1189
+ "parameters": []
1190
+ }
1191
+ },
1192
+ "/session/:sessionId/authenticator/:authenticatorId/credentials/:credentialId": {
1193
+ "DELETE": {
1194
+ "command": "removeCredential",
1195
+ "description": "Removes a Public Key Credential Source stored on a Virtual Authenticator.",
1196
+ "ref": "https://www.w3.org/TR/webauthn-2/#sctn-automation-remove-credential",
1197
+ "variables": [{
1198
+ "name": "authenticatorId",
1199
+ "description": "id of authenticator"
1200
+ }, {
1201
+ "name": "credentialId",
1202
+ "description": "id of credential"
1203
+ }],
1204
+ "parameters": []
1205
+ }
1206
+ },
1207
+ "/session/:sessionId/authenticator/:authenticatorId/credentials/:credentialId/uv": {
1208
+ "POST": {
1209
+ "command": "setUserVerified",
1210
+ "description": "The Set User Verified extension command sets the isUserVerified property on the Virtual Authenticator.",
1211
+ "ref": "https://www.w3.org/TR/webauthn-2/#sctn-automation-set-user-verified",
1212
+ "variables": [{
1213
+ "name": "authenticatorId",
1214
+ "description": "id of authenticator"
1215
+ }, {
1216
+ "name": "credentialId",
1217
+ "description": "id of credential"
1218
+ }],
1219
+ "parameters": []
1220
+ }
933
1221
  }
934
1222
  }