@wdio/protocols 8.20.4 → 8.23.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/build/commands/appium.d.ts +25 -1
- package/build/commands/appium.d.ts.map +1 -1
- package/build/commands/jsonwp.d.ts +51 -0
- package/build/commands/jsonwp.d.ts.map +1 -1
- package/build/commands/mjsonwp.d.ts +0 -25
- package/build/commands/mjsonwp.d.ts.map +1 -1
- package/build/commands/saucelabs.d.ts +3 -3
- package/build/commands/saucelabs.d.ts.map +1 -1
- package/build/protocols/appium.d.ts +34 -0
- package/build/protocols/appium.d.ts.map +1 -1
- package/build/protocols/appium.js +36 -0
- package/build/protocols/jsonwp.d.ts +57 -0
- package/build/protocols/jsonwp.d.ts.map +1 -1
- package/build/protocols/jsonwp.js +69 -2
- package/build/protocols/mjsonwp.d.ts +0 -34
- package/build/protocols/mjsonwp.d.ts.map +1 -1
- package/build/protocols/mjsonwp.js +0 -36
- package/build/protocols/saucelabs.js +3 -3
- package/build/protocols/webdriverBidi.d.ts +492 -334
- package/build/protocols/webdriverBidi.d.ts.map +1 -1
- package/build/protocols/webdriverBidi.js +208 -27
- package/build/types.d.ts +0 -3
- package/build/types.d.ts.map +1 -1
- package/package.json +2 -2
|
@@ -1,3 +1,19 @@
|
|
|
1
|
+
const DEPRECATION_NOTICE = 'This command is deprecated and likely not supported by any browser.';
|
|
2
|
+
const TOUCH_DEPRECATION_NOTICE = `${DEPRECATION_NOTICE} Use the "action" command instead to execute a touch gesture!`;
|
|
3
|
+
const GESTURE_DEPRECATION_NOTICE = `${DEPRECATION_NOTICE} Use the "action" command instead to execute a click gesture!`;
|
|
4
|
+
const MOVETO_DEPRECATION_NOTICE = `${DEPRECATION_NOTICE} Use the "action" command instead to execute a "move to" gesture!`;
|
|
5
|
+
const SETTIMEOUTS_DEPRECATION_NOTICE = `${DEPRECATION_NOTICE} Use the "setTimeouts" command instead!`;
|
|
6
|
+
const SESSION_STORAGE_DEPRECATION_NOTICE = `${DEPRECATION_NOTICE} Use the "execute" command instead to interact with the session storage interface!`;
|
|
7
|
+
const LOCAL_STORAGE_DEPRECATION_NOTICE = `${DEPRECATION_NOTICE} Use the "execute" command instead to interact with the session storage interface!`;
|
|
8
|
+
const LOGS_DEPRECATION_NOTICE = `${DEPRECATION_NOTICE} Use the "devtools" instead to get logs!`;
|
|
9
|
+
const POSITION_CLICK_DEPRECATION_NOTICE = `${DEPRECATION_NOTICE} Use the "action" command instead of "positionClick"!`;
|
|
10
|
+
const ELEMENT_SIZE_DEPRECATION_NOTICE = `${DEPRECATION_NOTICE} Use the "getElementRect" command instead of "getElementSize"!`;
|
|
11
|
+
/**
|
|
12
|
+
* All commands are depreacted and likely not supported by any browser.
|
|
13
|
+
* A deprecation notice is attached to all commands that only exist in the JSONWireProtocol.
|
|
14
|
+
*
|
|
15
|
+
* @deprecated
|
|
16
|
+
*/
|
|
1
17
|
export default {
|
|
2
18
|
'/status': {
|
|
3
19
|
GET: {
|
|
@@ -40,6 +56,7 @@ export default {
|
|
|
40
56
|
'/sessions': {
|
|
41
57
|
GET: {
|
|
42
58
|
command: 'getSessions',
|
|
59
|
+
deprecated: DEPRECATION_NOTICE,
|
|
43
60
|
description: 'Returns a list of the currently active sessions. Each session will be returned as a list of JSON objects containing `id` and `capabilities`.',
|
|
44
61
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessions',
|
|
45
62
|
parameters: [],
|
|
@@ -53,6 +70,7 @@ export default {
|
|
|
53
70
|
'/session/:sessionId': {
|
|
54
71
|
GET: {
|
|
55
72
|
command: 'getSession',
|
|
73
|
+
deprecated: DEPRECATION_NOTICE,
|
|
56
74
|
description: 'Retrieve the capabilities of the specified session.',
|
|
57
75
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionid',
|
|
58
76
|
parameters: [],
|
|
@@ -98,6 +116,7 @@ export default {
|
|
|
98
116
|
'/session/:sessionId/timeouts/async_script': {
|
|
99
117
|
POST: {
|
|
100
118
|
command: 'setAsyncTimeout',
|
|
119
|
+
deprecated: SETTIMEOUTS_DEPRECATION_NOTICE,
|
|
101
120
|
description: 'Set the amount of time, in milliseconds, that asynchronous scripts executed by `/session/:sessionId/execute_async` are permitted to run before they are aborted and a `Timeout` error is returned to the client.',
|
|
102
121
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeoutsasync_script',
|
|
103
122
|
parameters: [
|
|
@@ -113,6 +132,7 @@ export default {
|
|
|
113
132
|
'/session/:sessionId/timeouts/implicit_wait': {
|
|
114
133
|
POST: {
|
|
115
134
|
command: 'setImplicitTimeout',
|
|
135
|
+
deprecated: SETTIMEOUTS_DEPRECATION_NOTICE,
|
|
116
136
|
description: 'Set the amount of time the driver should wait when searching for elements. When searching for a single element, the driver should poll the page until an element is found or the timeout expires, whichever occurs first. When searching for multiple elements, the driver should poll the page until at least one element is found or the timeout expires, at which point it should return an empty list. If this command is never sent, the driver should default to an implicit wait of 0ms.',
|
|
117
137
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeoutsimplicit_wait',
|
|
118
138
|
parameters: [
|
|
@@ -261,6 +281,7 @@ export default {
|
|
|
261
281
|
'/session/:sessionId/window/current/position': {
|
|
262
282
|
GET: {
|
|
263
283
|
command: 'getWindowPosition',
|
|
284
|
+
deprecated: DEPRECATION_NOTICE,
|
|
264
285
|
description: 'Get the position of the current focussed window.',
|
|
265
286
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidwindowwindowhandleposition',
|
|
266
287
|
parameters: [],
|
|
@@ -272,6 +293,7 @@ export default {
|
|
|
272
293
|
},
|
|
273
294
|
POST: {
|
|
274
295
|
command: 'setWindowPosition',
|
|
296
|
+
deprecated: DEPRECATION_NOTICE,
|
|
275
297
|
description: 'Change the position of the current focussed window.',
|
|
276
298
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindowwindowhandleposition',
|
|
277
299
|
parameters: [
|
|
@@ -298,6 +320,7 @@ export default {
|
|
|
298
320
|
'/session/:sessionId/window/current/size': {
|
|
299
321
|
GET: {
|
|
300
322
|
command: '_getWindowSize',
|
|
323
|
+
deprecated: DEPRECATION_NOTICE,
|
|
301
324
|
description: 'Get the size of the current focused window.',
|
|
302
325
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidwindowwindowhandlesize',
|
|
303
326
|
parameters: [],
|
|
@@ -309,6 +332,7 @@ export default {
|
|
|
309
332
|
},
|
|
310
333
|
POST: {
|
|
311
334
|
command: '_setWindowSize',
|
|
335
|
+
deprecated: DEPRECATION_NOTICE,
|
|
312
336
|
description: 'Change the size of the current focused window.',
|
|
313
337
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindowwindowhandlesize',
|
|
314
338
|
parameters: [
|
|
@@ -589,6 +613,7 @@ export default {
|
|
|
589
613
|
'/session/:sessionId/element/:elementId/location': {
|
|
590
614
|
GET: {
|
|
591
615
|
command: 'getElementLocation',
|
|
616
|
+
deprecated: DEPRECATION_NOTICE,
|
|
592
617
|
description: "Determine an element's location on the page. The point `(0, 0)` refers to the upper-left corner of the page. The element's coordinates are returned as a JSON object with `x` and `y` properties.",
|
|
593
618
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidlocation',
|
|
594
619
|
variables: [
|
|
@@ -608,6 +633,7 @@ export default {
|
|
|
608
633
|
'/session/:sessionId/element/:elementId/location_in_view': {
|
|
609
634
|
GET: {
|
|
610
635
|
command: 'getElementLocationInView',
|
|
636
|
+
deprecated: DEPRECATION_NOTICE,
|
|
611
637
|
description: "Determine an element's location on the screen once it has been scrolled into view.<br /><br />__Note:__ This is considered an internal command and should only be used to determine an element's location for correctly generating native events.",
|
|
612
638
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidlocation_in_view',
|
|
613
639
|
variables: [
|
|
@@ -629,6 +655,7 @@ export default {
|
|
|
629
655
|
command: 'getElementSize',
|
|
630
656
|
description: "Determine an element's size in pixels. The size will be returned as a JSON object with `width` and `height` properties.",
|
|
631
657
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidsize',
|
|
658
|
+
deprecated: ELEMENT_SIZE_DEPRECATION_NOTICE,
|
|
632
659
|
variables: [
|
|
633
660
|
{
|
|
634
661
|
name: 'elementId',
|
|
@@ -681,6 +708,7 @@ export default {
|
|
|
681
708
|
command: 'elementEquals',
|
|
682
709
|
description: 'Compare elements with each other.',
|
|
683
710
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidequalsother',
|
|
711
|
+
deprecated: DEPRECATION_NOTICE,
|
|
684
712
|
variables: [
|
|
685
713
|
{
|
|
686
714
|
name: 'elementId',
|
|
@@ -704,6 +732,7 @@ export default {
|
|
|
704
732
|
command: 'elementSubmit',
|
|
705
733
|
description: '',
|
|
706
734
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidsubmit',
|
|
735
|
+
deprecated: DEPRECATION_NOTICE,
|
|
707
736
|
variables: [
|
|
708
737
|
{
|
|
709
738
|
name: 'elementId',
|
|
@@ -751,6 +780,7 @@ export default {
|
|
|
751
780
|
'/session/:sessionId/keys': {
|
|
752
781
|
POST: {
|
|
753
782
|
command: 'sendKeys',
|
|
783
|
+
deprecated: DEPRECATION_NOTICE,
|
|
754
784
|
description: '',
|
|
755
785
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidkeys',
|
|
756
786
|
parameters: [
|
|
@@ -933,6 +963,7 @@ export default {
|
|
|
933
963
|
GET: {
|
|
934
964
|
command: 'getAvailableEngines',
|
|
935
965
|
description: '',
|
|
966
|
+
deprecated: DEPRECATION_NOTICE,
|
|
936
967
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeavailable_engines',
|
|
937
968
|
parameters: [],
|
|
938
969
|
returns: {
|
|
@@ -946,6 +977,7 @@ export default {
|
|
|
946
977
|
GET: {
|
|
947
978
|
command: 'getActiveEngine',
|
|
948
979
|
description: '',
|
|
980
|
+
deprecated: DEPRECATION_NOTICE,
|
|
949
981
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactive_engine',
|
|
950
982
|
parameters: [],
|
|
951
983
|
returns: {
|
|
@@ -958,6 +990,7 @@ export default {
|
|
|
958
990
|
'/session/:sessionId/ime/activated': {
|
|
959
991
|
GET: {
|
|
960
992
|
command: 'isIMEActivated',
|
|
993
|
+
deprecated: DEPRECATION_NOTICE,
|
|
961
994
|
description: '',
|
|
962
995
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactivated',
|
|
963
996
|
parameters: [],
|
|
@@ -973,6 +1006,7 @@ export default {
|
|
|
973
1006
|
command: 'deactivateIME',
|
|
974
1007
|
description: '',
|
|
975
1008
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimedeactivate',
|
|
1009
|
+
deprecated: DEPRECATION_NOTICE,
|
|
976
1010
|
parameters: [],
|
|
977
1011
|
},
|
|
978
1012
|
},
|
|
@@ -980,6 +1014,7 @@ export default {
|
|
|
980
1014
|
POST: {
|
|
981
1015
|
command: 'activateIME',
|
|
982
1016
|
description: '',
|
|
1017
|
+
deprecated: DEPRECATION_NOTICE,
|
|
983
1018
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactivate',
|
|
984
1019
|
parameters: [
|
|
985
1020
|
{
|
|
@@ -997,21 +1032,23 @@ export default {
|
|
|
997
1032
|
description: '',
|
|
998
1033
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidorientation',
|
|
999
1034
|
parameters: [],
|
|
1035
|
+
deprecated: DEPRECATION_NOTICE,
|
|
1000
1036
|
returns: {
|
|
1001
1037
|
type: 'String',
|
|
1002
1038
|
name: 'orientation',
|
|
1003
|
-
description: 'The current browser orientation corresponding to a value defined in ScreenOrientation:
|
|
1039
|
+
description: 'The current browser orientation corresponding to a value defined in ScreenOrientation: `LANDSCAPE|PORTRAIT`.',
|
|
1004
1040
|
},
|
|
1005
1041
|
},
|
|
1006
1042
|
POST: {
|
|
1007
1043
|
command: 'setOrientation',
|
|
1008
1044
|
description: '',
|
|
1045
|
+
deprecated: DEPRECATION_NOTICE,
|
|
1009
1046
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidorientation',
|
|
1010
1047
|
parameters: [
|
|
1011
1048
|
{
|
|
1012
1049
|
name: 'orientation',
|
|
1013
1050
|
type: 'string',
|
|
1014
|
-
description: 'the new browser orientation as defined in ScreenOrientation:
|
|
1051
|
+
description: 'the new browser orientation as defined in ScreenOrientation: `LANDSCAPE|PORTRAIT`',
|
|
1015
1052
|
required: true,
|
|
1016
1053
|
},
|
|
1017
1054
|
],
|
|
@@ -1022,6 +1059,7 @@ export default {
|
|
|
1022
1059
|
command: 'moveToElement',
|
|
1023
1060
|
description: '',
|
|
1024
1061
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidmoveto',
|
|
1062
|
+
deprecated: MOVETO_DEPRECATION_NOTICE,
|
|
1025
1063
|
parameters: [
|
|
1026
1064
|
{
|
|
1027
1065
|
name: 'element',
|
|
@@ -1049,6 +1087,7 @@ export default {
|
|
|
1049
1087
|
command: 'buttonDown',
|
|
1050
1088
|
description: 'Click and hold the left mouse button (at the coordinates set by the last moveto command). Note that the next mouse-related command that should follow is buttonup . Any other mouse command (such as click or another call to buttondown) will yield undefined behaviour.',
|
|
1051
1089
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidbuttondown',
|
|
1090
|
+
deprecated: GESTURE_DEPRECATION_NOTICE,
|
|
1052
1091
|
parameters: [
|
|
1053
1092
|
{
|
|
1054
1093
|
name: 'button',
|
|
@@ -1064,6 +1103,7 @@ export default {
|
|
|
1064
1103
|
command: 'buttonUp',
|
|
1065
1104
|
description: 'Releases the mouse button previously held (where the mouse is currently at). Must be called once for every buttondown command issued. See the note in click and buttondown about implications of out-of-order commands.',
|
|
1066
1105
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidbuttonup',
|
|
1106
|
+
deprecated: GESTURE_DEPRECATION_NOTICE,
|
|
1067
1107
|
parameters: [
|
|
1068
1108
|
{
|
|
1069
1109
|
name: 'button',
|
|
@@ -1079,6 +1119,7 @@ export default {
|
|
|
1079
1119
|
command: 'positionClick',
|
|
1080
1120
|
description: 'Clicks at the current mouse coordinates (set by moveto).',
|
|
1081
1121
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidclick',
|
|
1122
|
+
deprecated: POSITION_CLICK_DEPRECATION_NOTICE,
|
|
1082
1123
|
parameters: [
|
|
1083
1124
|
{
|
|
1084
1125
|
name: 'button',
|
|
@@ -1092,6 +1133,7 @@ export default {
|
|
|
1092
1133
|
'/session/:sessionId/doubleclick': {
|
|
1093
1134
|
POST: {
|
|
1094
1135
|
command: 'positionDoubleClick',
|
|
1136
|
+
deprecated: GESTURE_DEPRECATION_NOTICE,
|
|
1095
1137
|
description: 'Double-clicks at the current mouse coordinates (set by moveto).',
|
|
1096
1138
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessioniddoubleclick',
|
|
1097
1139
|
parameters: [],
|
|
@@ -1102,6 +1144,7 @@ export default {
|
|
|
1102
1144
|
command: 'touchClick',
|
|
1103
1145
|
description: 'Single tap on the touch enabled device.',
|
|
1104
1146
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchclick',
|
|
1147
|
+
deprecated: TOUCH_DEPRECATION_NOTICE,
|
|
1105
1148
|
parameters: [
|
|
1106
1149
|
{
|
|
1107
1150
|
name: 'element',
|
|
@@ -1117,6 +1160,7 @@ export default {
|
|
|
1117
1160
|
command: 'touchDown',
|
|
1118
1161
|
description: 'Finger down on the screen.',
|
|
1119
1162
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchdown',
|
|
1163
|
+
deprecated: TOUCH_DEPRECATION_NOTICE,
|
|
1120
1164
|
parameters: [
|
|
1121
1165
|
{
|
|
1122
1166
|
name: 'x',
|
|
@@ -1138,6 +1182,7 @@ export default {
|
|
|
1138
1182
|
command: 'touchUp',
|
|
1139
1183
|
description: 'Finger up on the screen.',
|
|
1140
1184
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchup',
|
|
1185
|
+
deprecated: TOUCH_DEPRECATION_NOTICE,
|
|
1141
1186
|
parameters: [
|
|
1142
1187
|
{
|
|
1143
1188
|
name: 'x',
|
|
@@ -1159,6 +1204,7 @@ export default {
|
|
|
1159
1204
|
command: 'touchMove',
|
|
1160
1205
|
description: 'Finger move on the screen.',
|
|
1161
1206
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchmove',
|
|
1207
|
+
deprecated: TOUCH_DEPRECATION_NOTICE,
|
|
1162
1208
|
parameters: [
|
|
1163
1209
|
{
|
|
1164
1210
|
name: 'x',
|
|
@@ -1180,6 +1226,7 @@ export default {
|
|
|
1180
1226
|
command: 'touchScroll',
|
|
1181
1227
|
description: 'Finger move on the screen.',
|
|
1182
1228
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchscroll',
|
|
1229
|
+
deprecated: TOUCH_DEPRECATION_NOTICE,
|
|
1183
1230
|
parameters: [
|
|
1184
1231
|
{
|
|
1185
1232
|
name: 'xoffset',
|
|
@@ -1207,6 +1254,7 @@ export default {
|
|
|
1207
1254
|
command: 'touchDoubleClick',
|
|
1208
1255
|
description: 'Double tap on the touch screen using finger motion events.',
|
|
1209
1256
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchdoubleclick',
|
|
1257
|
+
deprecated: TOUCH_DEPRECATION_NOTICE,
|
|
1210
1258
|
parameters: [
|
|
1211
1259
|
{
|
|
1212
1260
|
name: 'element',
|
|
@@ -1222,6 +1270,7 @@ export default {
|
|
|
1222
1270
|
command: 'touchLongClick',
|
|
1223
1271
|
description: 'Long press on the touch screen using finger motion events.',
|
|
1224
1272
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchlongclick',
|
|
1273
|
+
deprecated: TOUCH_DEPRECATION_NOTICE,
|
|
1225
1274
|
parameters: [
|
|
1226
1275
|
{
|
|
1227
1276
|
name: 'element',
|
|
@@ -1237,6 +1286,7 @@ export default {
|
|
|
1237
1286
|
command: 'touchFlick',
|
|
1238
1287
|
description: 'Flick on the touch screen using finger motion events. This flickcommand starts at a particulat screen location.',
|
|
1239
1288
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchflick',
|
|
1289
|
+
deprecated: TOUCH_DEPRECATION_NOTICE,
|
|
1240
1290
|
parameters: [
|
|
1241
1291
|
{
|
|
1242
1292
|
name: 'xoffset',
|
|
@@ -1281,6 +1331,7 @@ export default {
|
|
|
1281
1331
|
GET: {
|
|
1282
1332
|
command: 'getGeoLocation',
|
|
1283
1333
|
description: 'Get the current geo location.',
|
|
1334
|
+
deprecated: DEPRECATION_NOTICE,
|
|
1284
1335
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocation',
|
|
1285
1336
|
parameters: [],
|
|
1286
1337
|
returns: {
|
|
@@ -1292,6 +1343,7 @@ export default {
|
|
|
1292
1343
|
POST: {
|
|
1293
1344
|
command: 'setGeoLocation',
|
|
1294
1345
|
description: 'Set the current geo location.',
|
|
1346
|
+
deprecated: DEPRECATION_NOTICE,
|
|
1295
1347
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidlocation',
|
|
1296
1348
|
parameters: [
|
|
1297
1349
|
{
|
|
@@ -1307,6 +1359,7 @@ export default {
|
|
|
1307
1359
|
GET: {
|
|
1308
1360
|
command: 'getLocalStorage',
|
|
1309
1361
|
description: 'Get all keys of the storage.',
|
|
1362
|
+
deprecated: LOCAL_STORAGE_DEPRECATION_NOTICE,
|
|
1310
1363
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storage',
|
|
1311
1364
|
parameters: [],
|
|
1312
1365
|
returns: {
|
|
@@ -1318,6 +1371,7 @@ export default {
|
|
|
1318
1371
|
POST: {
|
|
1319
1372
|
command: 'setLocalStorage',
|
|
1320
1373
|
description: 'Set the storage item for the given key.',
|
|
1374
|
+
deprecated: LOCAL_STORAGE_DEPRECATION_NOTICE,
|
|
1321
1375
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidlocal_storage',
|
|
1322
1376
|
parameters: [
|
|
1323
1377
|
{
|
|
@@ -1338,6 +1392,7 @@ export default {
|
|
|
1338
1392
|
command: 'clearLocalStorage',
|
|
1339
1393
|
description: 'Clear the storage.',
|
|
1340
1394
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storage',
|
|
1395
|
+
deprecated: LOCAL_STORAGE_DEPRECATION_NOTICE,
|
|
1341
1396
|
parameters: [],
|
|
1342
1397
|
},
|
|
1343
1398
|
},
|
|
@@ -1345,6 +1400,7 @@ export default {
|
|
|
1345
1400
|
GET: {
|
|
1346
1401
|
command: 'getLocalStorageItem',
|
|
1347
1402
|
description: 'Get the storage item for the given key.',
|
|
1403
|
+
deprecated: LOCAL_STORAGE_DEPRECATION_NOTICE,
|
|
1348
1404
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storagekeykey',
|
|
1349
1405
|
variables: [
|
|
1350
1406
|
{
|
|
@@ -1362,6 +1418,7 @@ export default {
|
|
|
1362
1418
|
DELETE: {
|
|
1363
1419
|
command: 'deleteLocalStorageItem',
|
|
1364
1420
|
description: '',
|
|
1421
|
+
deprecated: LOCAL_STORAGE_DEPRECATION_NOTICE,
|
|
1365
1422
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidlocal_storagekeykey',
|
|
1366
1423
|
variables: [
|
|
1367
1424
|
{
|
|
@@ -1376,6 +1433,7 @@ export default {
|
|
|
1376
1433
|
GET: {
|
|
1377
1434
|
command: 'getLocalStorageSize',
|
|
1378
1435
|
description: 'Get the number of items in the storage.',
|
|
1436
|
+
deprecated: LOCAL_STORAGE_DEPRECATION_NOTICE,
|
|
1379
1437
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlocal_storagesize',
|
|
1380
1438
|
parameters: [],
|
|
1381
1439
|
returns: {
|
|
@@ -1389,6 +1447,7 @@ export default {
|
|
|
1389
1447
|
GET: {
|
|
1390
1448
|
command: 'getSessionStorage',
|
|
1391
1449
|
description: 'Get all keys of the storage.',
|
|
1450
|
+
deprecated: SESSION_STORAGE_DEPRECATION_NOTICE,
|
|
1392
1451
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidsession_storage',
|
|
1393
1452
|
parameters: [],
|
|
1394
1453
|
returns: {
|
|
@@ -1400,6 +1459,7 @@ export default {
|
|
|
1400
1459
|
POST: {
|
|
1401
1460
|
command: 'setSessionStorage',
|
|
1402
1461
|
description: 'Set the storage item for the given key.',
|
|
1462
|
+
deprecated: SESSION_STORAGE_DEPRECATION_NOTICE,
|
|
1403
1463
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidsession_storage',
|
|
1404
1464
|
parameters: [
|
|
1405
1465
|
{
|
|
@@ -1419,6 +1479,7 @@ export default {
|
|
|
1419
1479
|
DELETE: {
|
|
1420
1480
|
command: 'clearSessionStorage',
|
|
1421
1481
|
description: 'Clear the storage.',
|
|
1482
|
+
deprecated: SESSION_STORAGE_DEPRECATION_NOTICE,
|
|
1422
1483
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidsession_storage',
|
|
1423
1484
|
parameters: [],
|
|
1424
1485
|
},
|
|
@@ -1427,6 +1488,7 @@ export default {
|
|
|
1427
1488
|
GET: {
|
|
1428
1489
|
command: 'getSessionStorageItem',
|
|
1429
1490
|
description: 'Get the storage item for the given key.',
|
|
1491
|
+
deprecated: SESSION_STORAGE_DEPRECATION_NOTICE,
|
|
1430
1492
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidsession_storagekeykey',
|
|
1431
1493
|
variables: [
|
|
1432
1494
|
{
|
|
@@ -1444,6 +1506,7 @@ export default {
|
|
|
1444
1506
|
DELETE: {
|
|
1445
1507
|
command: 'deleteSessionStorageItem',
|
|
1446
1508
|
description: 'Remove the storage item for the given key.',
|
|
1509
|
+
deprecated: SESSION_STORAGE_DEPRECATION_NOTICE,
|
|
1447
1510
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidsession_storagekeykey',
|
|
1448
1511
|
variables: [
|
|
1449
1512
|
{
|
|
@@ -1459,6 +1522,7 @@ export default {
|
|
|
1459
1522
|
command: 'getSessionStorageSize',
|
|
1460
1523
|
description: 'Get the number of items in the storage.',
|
|
1461
1524
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidsession_storagesize',
|
|
1525
|
+
deprecated: SESSION_STORAGE_DEPRECATION_NOTICE,
|
|
1462
1526
|
parameters: [],
|
|
1463
1527
|
returns: {
|
|
1464
1528
|
type: 'Number',
|
|
@@ -1472,6 +1536,7 @@ export default {
|
|
|
1472
1536
|
command: 'getLogs',
|
|
1473
1537
|
description: 'Get the log for a given log type. Log buffer is reset after each request.',
|
|
1474
1538
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlog',
|
|
1539
|
+
deprecated: LOGS_DEPRECATION_NOTICE,
|
|
1475
1540
|
parameters: [
|
|
1476
1541
|
{
|
|
1477
1542
|
name: 'type',
|
|
@@ -1492,6 +1557,7 @@ export default {
|
|
|
1492
1557
|
command: 'getLogTypes',
|
|
1493
1558
|
description: 'Get available log types.',
|
|
1494
1559
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlogtypes',
|
|
1560
|
+
deprecated: LOGS_DEPRECATION_NOTICE,
|
|
1495
1561
|
parameters: [],
|
|
1496
1562
|
returns: {
|
|
1497
1563
|
type: 'String[]',
|
|
@@ -1506,6 +1572,7 @@ export default {
|
|
|
1506
1572
|
description: 'Get the status of the html5 application cache.',
|
|
1507
1573
|
ref: 'https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidapplication_cachestatus',
|
|
1508
1574
|
parameters: [],
|
|
1575
|
+
deprecated: DEPRECATION_NOTICE,
|
|
1509
1576
|
returns: {
|
|
1510
1577
|
type: 'Number',
|
|
1511
1578
|
name: 'statusCode',
|
|
@@ -1,38 +1,4 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
|
-
'/session/:sessionId/context': {
|
|
3
|
-
GET: {
|
|
4
|
-
command: string;
|
|
5
|
-
ref: string;
|
|
6
|
-
parameters: never[];
|
|
7
|
-
returns: {
|
|
8
|
-
type: string;
|
|
9
|
-
name: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
POST: {
|
|
14
|
-
command: string;
|
|
15
|
-
ref: string;
|
|
16
|
-
parameters: {
|
|
17
|
-
name: string;
|
|
18
|
-
type: string;
|
|
19
|
-
description: string;
|
|
20
|
-
required: boolean;
|
|
21
|
-
}[];
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
'/session/:sessionId/contexts': {
|
|
25
|
-
GET: {
|
|
26
|
-
command: string;
|
|
27
|
-
ref: string;
|
|
28
|
-
parameters: never[];
|
|
29
|
-
returns: {
|
|
30
|
-
type: string;
|
|
31
|
-
name: string;
|
|
32
|
-
description: string;
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
};
|
|
36
2
|
'/session/:sessionId/element/:elementId/pageIndex': {
|
|
37
3
|
GET: {
|
|
38
4
|
command: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mjsonwp.d.ts","sourceRoot":"","sources":["../../src/protocols/mjsonwp.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mjsonwp.d.ts","sourceRoot":"","sources":["../../src/protocols/mjsonwp.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA+FC"}
|
|
@@ -1,40 +1,4 @@
|
|
|
1
1
|
export default {
|
|
2
|
-
'/session/:sessionId/context': {
|
|
3
|
-
GET: {
|
|
4
|
-
command: 'getContext',
|
|
5
|
-
ref: 'https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts',
|
|
6
|
-
parameters: [],
|
|
7
|
-
returns: {
|
|
8
|
-
type: 'Context',
|
|
9
|
-
name: 'context',
|
|
10
|
-
description: "a string representing the current context or null representing 'no context'",
|
|
11
|
-
},
|
|
12
|
-
},
|
|
13
|
-
POST: {
|
|
14
|
-
command: 'switchContext',
|
|
15
|
-
ref: 'https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts',
|
|
16
|
-
parameters: [
|
|
17
|
-
{
|
|
18
|
-
name: 'name',
|
|
19
|
-
type: 'string',
|
|
20
|
-
description: 'a string representing an available context',
|
|
21
|
-
required: true,
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
'/session/:sessionId/contexts': {
|
|
27
|
-
GET: {
|
|
28
|
-
command: 'getContexts',
|
|
29
|
-
ref: 'https://github.com/SeleniumHQ/mobile-spec/blob/master/spec-draft.md#webviews-and-other-contexts',
|
|
30
|
-
parameters: [],
|
|
31
|
-
returns: {
|
|
32
|
-
type: 'Context[]',
|
|
33
|
-
name: 'contexts',
|
|
34
|
-
description: "an array of strings representing available contexts, e.g. 'WEBVIEW', or 'NATIVE'",
|
|
35
|
-
},
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
2
|
'/session/:sessionId/element/:elementId/pageIndex': {
|
|
39
3
|
GET: {
|
|
40
4
|
command: 'getPageIndex',
|
|
@@ -59,17 +59,17 @@ export default {
|
|
|
59
59
|
},
|
|
60
60
|
'/session/:sessionId/sauce/ondemand/throttle/network': {
|
|
61
61
|
POST: {
|
|
62
|
-
command: '
|
|
62
|
+
command: 'sauceThrottleNetwork',
|
|
63
63
|
description: 'With network conditioning you can test your site on a variety of network connections, including Edge, 3G, and even offline. You can throttle the data throughput, including the maximum download and upload throughput, and use latency manipulation to enforce a minimum delay in connection round-trip time (RTT).',
|
|
64
64
|
ref: 'https://wiki.saucelabs.com/display/DOCS/Custom+Sauce+Labs+WebDriver+Extensions+for+Network+and+Log+Commands#CustomSauceLabsWebDriverExtensionsforNetworkandLogCommands-ThrottleNetworkCapabilities',
|
|
65
65
|
examples: [
|
|
66
66
|
[
|
|
67
67
|
'// predefined network condition',
|
|
68
|
-
"browser.
|
|
68
|
+
"browser.sauceThrottleNetwork('offline')",
|
|
69
69
|
],
|
|
70
70
|
[
|
|
71
71
|
'// custom network condition',
|
|
72
|
-
'browser.
|
|
72
|
+
'browser.sauceThrottleNetwork({',
|
|
73
73
|
' download: 1000,',
|
|
74
74
|
' upload: 500,',
|
|
75
75
|
" latency: 40'",
|