@wdio/protocols 8.0.15 → 8.2.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 +62 -62
- package/build/commands/appium.d.ts.map +1 -1
- package/build/commands/chromium.d.ts +28 -28
- package/build/commands/chromium.d.ts.map +1 -1
- package/build/commands/gecko.d.ts +5 -5
- package/build/commands/gecko.d.ts.map +1 -1
- package/build/commands/jsonwp.d.ts +95 -95
- package/build/commands/jsonwp.d.ts.map +1 -1
- package/build/commands/mjsonwp.d.ts +9 -9
- package/build/commands/mjsonwp.d.ts.map +1 -1
- package/build/commands/saucelabs.d.ts +10 -10
- package/build/commands/saucelabs.d.ts.map +1 -1
- package/build/commands/selenium.d.ts +6 -6
- package/build/commands/selenium.d.ts.map +1 -1
- package/build/commands/webdriver.d.ts +76 -76
- package/build/commands/webdriver.d.ts.map +1 -1
- package/build/commands/webdriverBidi.d.ts +2 -2
- package/build/commands/webdriverBidi.d.ts.map +1 -1
- package/build/index.d.ts +10 -40
- package/build/index.d.ts.map +1 -1
- package/build/index.js +9 -11
- package/build/protocols/appium.d.ts +1244 -0
- package/build/protocols/appium.d.ts.map +1 -0
- package/build/protocols/appium.js +1602 -0
- package/build/protocols/chromium.d.ts +384 -0
- package/build/protocols/chromium.d.ts.map +1 -0
- package/build/protocols/chromium.js +530 -0
- package/build/protocols/gecko.d.ts +76 -0
- package/build/protocols/gecko.d.ts.map +1 -0
- package/build/protocols/gecko.js +112 -0
- package/build/protocols/jsonwp.d.ts +1245 -0
- package/build/protocols/jsonwp.d.ts.map +1 -0
- package/build/protocols/jsonwp.js +1511 -0
- package/build/protocols/mjsonwp.d.ts +112 -0
- package/build/protocols/mjsonwp.d.ts.map +1 -0
- package/build/protocols/mjsonwp.js +126 -0
- package/build/protocols/saucelabs.d.ts +162 -0
- package/build/protocols/saucelabs.d.ts.map +1 -0
- package/build/protocols/saucelabs.js +297 -0
- package/build/protocols/selenium.d.ts +106 -0
- package/build/protocols/selenium.d.ts.map +1 -0
- package/build/protocols/selenium.js +132 -0
- package/build/protocols/webdriver.d.ts +1080 -0
- package/build/protocols/webdriver.d.ts.map +1 -0
- package/build/protocols/webdriver.js +1495 -0
- package/build/protocols/webdriverBidi.d.ts +35 -0
- package/build/protocols/webdriverBidi.d.ts.map +1 -0
- package/build/protocols/webdriverBidi.js +37 -0
- package/build/types.d.ts +8 -7
- package/build/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/protocols/appium.json +0 -1469
- package/protocols/chromium.json +0 -494
- package/protocols/gecko.json +0 -105
- package/protocols/jsonwp.json +0 -1366
- package/protocols/mjsonwp.json +0 -114
- package/protocols/saucelabs.json +0 -276
- package/protocols/selenium.json +0 -122
- package/protocols/webdriver.json +0 -1331
- package/protocols/webdriverBidi.json +0 -33
|
@@ -7,7 +7,7 @@ export default interface JsonwpCommands {
|
|
|
7
7
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#status
|
|
8
8
|
*
|
|
9
9
|
*/
|
|
10
|
-
status(): StatusReturn
|
|
10
|
+
status(): Promise<StatusReturn>;
|
|
11
11
|
/**
|
|
12
12
|
* Jsonwp Protocol Command
|
|
13
13
|
*
|
|
@@ -15,7 +15,7 @@ export default interface JsonwpCommands {
|
|
|
15
15
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#session-1
|
|
16
16
|
*
|
|
17
17
|
*/
|
|
18
|
-
newSession(desiredCapabilities: object, requiredCapabilities: object): SessionReturn
|
|
18
|
+
newSession(desiredCapabilities: object, requiredCapabilities: object): Promise<SessionReturn>;
|
|
19
19
|
/**
|
|
20
20
|
* Jsonwp Protocol Command
|
|
21
21
|
*
|
|
@@ -23,7 +23,7 @@ export default interface JsonwpCommands {
|
|
|
23
23
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessions
|
|
24
24
|
*
|
|
25
25
|
*/
|
|
26
|
-
getSessions(): object[]
|
|
26
|
+
getSessions(): Promise<object[]>;
|
|
27
27
|
/**
|
|
28
28
|
* Jsonwp Protocol Command
|
|
29
29
|
*
|
|
@@ -31,7 +31,7 @@ export default interface JsonwpCommands {
|
|
|
31
31
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionid
|
|
32
32
|
*
|
|
33
33
|
*/
|
|
34
|
-
getSession(): ProtocolCommandResponse
|
|
34
|
+
getSession(): Promise<ProtocolCommandResponse>;
|
|
35
35
|
/**
|
|
36
36
|
* Jsonwp Protocol Command
|
|
37
37
|
*
|
|
@@ -39,7 +39,7 @@ export default interface JsonwpCommands {
|
|
|
39
39
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionid
|
|
40
40
|
*
|
|
41
41
|
*/
|
|
42
|
-
deleteSession(): void
|
|
42
|
+
deleteSession(): Promise<void>;
|
|
43
43
|
/**
|
|
44
44
|
* Jsonwp Protocol Command
|
|
45
45
|
*
|
|
@@ -47,7 +47,7 @@ export default interface JsonwpCommands {
|
|
|
47
47
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeouts
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
|
-
setTimeouts(type: string, ms: number): void
|
|
50
|
+
setTimeouts(type: string, ms: number): Promise<void>;
|
|
51
51
|
/**
|
|
52
52
|
* Jsonwp Protocol Command
|
|
53
53
|
*
|
|
@@ -55,7 +55,7 @@ export default interface JsonwpCommands {
|
|
|
55
55
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeoutsasync_script
|
|
56
56
|
*
|
|
57
57
|
*/
|
|
58
|
-
setAsyncTimeout(ms: number): void
|
|
58
|
+
setAsyncTimeout(ms: number): Promise<void>;
|
|
59
59
|
/**
|
|
60
60
|
* Jsonwp Protocol Command
|
|
61
61
|
*
|
|
@@ -63,7 +63,7 @@ export default interface JsonwpCommands {
|
|
|
63
63
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtimeoutsimplicit_wait
|
|
64
64
|
*
|
|
65
65
|
*/
|
|
66
|
-
setImplicitTimeout(ms: number): void
|
|
66
|
+
setImplicitTimeout(ms: number): Promise<void>;
|
|
67
67
|
/**
|
|
68
68
|
* Jsonwp Protocol Command
|
|
69
69
|
*
|
|
@@ -71,7 +71,7 @@ export default interface JsonwpCommands {
|
|
|
71
71
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidurl
|
|
72
72
|
*
|
|
73
73
|
*/
|
|
74
|
-
getUrl(): string
|
|
74
|
+
getUrl(): Promise<string>;
|
|
75
75
|
/**
|
|
76
76
|
* Jsonwp Protocol Command
|
|
77
77
|
*
|
|
@@ -79,7 +79,7 @@ export default interface JsonwpCommands {
|
|
|
79
79
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidurl
|
|
80
80
|
*
|
|
81
81
|
*/
|
|
82
|
-
navigateTo(url: string): void
|
|
82
|
+
navigateTo(url: string): Promise<void>;
|
|
83
83
|
/**
|
|
84
84
|
* Jsonwp Protocol Command
|
|
85
85
|
*
|
|
@@ -87,7 +87,7 @@ export default interface JsonwpCommands {
|
|
|
87
87
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidback
|
|
88
88
|
*
|
|
89
89
|
*/
|
|
90
|
-
back(): void
|
|
90
|
+
back(): Promise<void>;
|
|
91
91
|
/**
|
|
92
92
|
* Jsonwp Protocol Command
|
|
93
93
|
*
|
|
@@ -95,7 +95,7 @@ export default interface JsonwpCommands {
|
|
|
95
95
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidforward
|
|
96
96
|
*
|
|
97
97
|
*/
|
|
98
|
-
forward(): void
|
|
98
|
+
forward(): Promise<void>;
|
|
99
99
|
/**
|
|
100
100
|
* Jsonwp Protocol Command
|
|
101
101
|
*
|
|
@@ -103,7 +103,7 @@ export default interface JsonwpCommands {
|
|
|
103
103
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidrefresh
|
|
104
104
|
*
|
|
105
105
|
*/
|
|
106
|
-
refresh(): void
|
|
106
|
+
refresh(): Promise<void>;
|
|
107
107
|
/**
|
|
108
108
|
* Jsonwp Protocol Command
|
|
109
109
|
*
|
|
@@ -111,7 +111,7 @@ export default interface JsonwpCommands {
|
|
|
111
111
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtitle
|
|
112
112
|
*
|
|
113
113
|
*/
|
|
114
|
-
getTitle(): string
|
|
114
|
+
getTitle(): Promise<string>;
|
|
115
115
|
/**
|
|
116
116
|
* Jsonwp Protocol Command
|
|
117
117
|
*
|
|
@@ -119,7 +119,7 @@ export default interface JsonwpCommands {
|
|
|
119
119
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidwindow_handle
|
|
120
120
|
*
|
|
121
121
|
*/
|
|
122
|
-
getWindowHandle(): string
|
|
122
|
+
getWindowHandle(): Promise<string>;
|
|
123
123
|
/**
|
|
124
124
|
* Jsonwp Protocol Command
|
|
125
125
|
*
|
|
@@ -127,7 +127,7 @@ export default interface JsonwpCommands {
|
|
|
127
127
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidwindow_handles
|
|
128
128
|
*
|
|
129
129
|
*/
|
|
130
|
-
getWindowHandles(): string[]
|
|
130
|
+
getWindowHandles(): Promise<string[]>;
|
|
131
131
|
/**
|
|
132
132
|
* Jsonwp Protocol Command
|
|
133
133
|
*
|
|
@@ -135,7 +135,7 @@ export default interface JsonwpCommands {
|
|
|
135
135
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidwindow
|
|
136
136
|
*
|
|
137
137
|
*/
|
|
138
|
-
closeWindow(): void
|
|
138
|
+
closeWindow(): Promise<void>;
|
|
139
139
|
/**
|
|
140
140
|
* Jsonwp Protocol Command
|
|
141
141
|
*
|
|
@@ -143,7 +143,7 @@ export default interface JsonwpCommands {
|
|
|
143
143
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindow
|
|
144
144
|
*
|
|
145
145
|
*/
|
|
146
|
-
switchToWindow(name: string): void
|
|
146
|
+
switchToWindow(name: string): Promise<void>;
|
|
147
147
|
/**
|
|
148
148
|
* Jsonwp Protocol Command
|
|
149
149
|
*
|
|
@@ -151,7 +151,7 @@ export default interface JsonwpCommands {
|
|
|
151
151
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidframe
|
|
152
152
|
*
|
|
153
153
|
*/
|
|
154
|
-
switchToFrame(id: (string | number | object | null)): void
|
|
154
|
+
switchToFrame(id: (string | number | object | null)): Promise<void>;
|
|
155
155
|
/**
|
|
156
156
|
* Jsonwp Protocol Command
|
|
157
157
|
*
|
|
@@ -159,7 +159,7 @@ export default interface JsonwpCommands {
|
|
|
159
159
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidframeparent
|
|
160
160
|
*
|
|
161
161
|
*/
|
|
162
|
-
switchToParentFrame(): void
|
|
162
|
+
switchToParentFrame(): Promise<void>;
|
|
163
163
|
/**
|
|
164
164
|
* Jsonwp Protocol Command
|
|
165
165
|
*
|
|
@@ -167,7 +167,7 @@ export default interface JsonwpCommands {
|
|
|
167
167
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidwindowwindowhandleposition
|
|
168
168
|
*
|
|
169
169
|
*/
|
|
170
|
-
getWindowPosition(): ProtocolCommandResponse
|
|
170
|
+
getWindowPosition(): Promise<ProtocolCommandResponse>;
|
|
171
171
|
/**
|
|
172
172
|
* Jsonwp Protocol Command
|
|
173
173
|
*
|
|
@@ -175,7 +175,7 @@ export default interface JsonwpCommands {
|
|
|
175
175
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindowwindowhandleposition
|
|
176
176
|
*
|
|
177
177
|
*/
|
|
178
|
-
setWindowPosition(x: number, y: number): ProtocolCommandResponse
|
|
178
|
+
setWindowPosition(x: number, y: number): Promise<ProtocolCommandResponse>;
|
|
179
179
|
/**
|
|
180
180
|
* Jsonwp Protocol Command
|
|
181
181
|
*
|
|
@@ -183,7 +183,7 @@ export default interface JsonwpCommands {
|
|
|
183
183
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidwindowwindowhandlesize
|
|
184
184
|
*
|
|
185
185
|
*/
|
|
186
|
-
_getWindowSize(): ProtocolCommandResponse
|
|
186
|
+
_getWindowSize(): Promise<ProtocolCommandResponse>;
|
|
187
187
|
/**
|
|
188
188
|
* Jsonwp Protocol Command
|
|
189
189
|
*
|
|
@@ -191,7 +191,7 @@ export default interface JsonwpCommands {
|
|
|
191
191
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidwindowwindowhandlesize
|
|
192
192
|
*
|
|
193
193
|
*/
|
|
194
|
-
_setWindowSize(width: number, height: number): void
|
|
194
|
+
_setWindowSize(width: number, height: number): Promise<void>;
|
|
195
195
|
/**
|
|
196
196
|
* Jsonwp Protocol Command
|
|
197
197
|
*
|
|
@@ -199,7 +199,7 @@ export default interface JsonwpCommands {
|
|
|
199
199
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidwindowwindowhandlemaximize
|
|
200
200
|
*
|
|
201
201
|
*/
|
|
202
|
-
maximizeWindow(): RectReturn
|
|
202
|
+
maximizeWindow(): Promise<RectReturn>;
|
|
203
203
|
/**
|
|
204
204
|
* Jsonwp Protocol Command
|
|
205
205
|
*
|
|
@@ -207,7 +207,7 @@ export default interface JsonwpCommands {
|
|
|
207
207
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelement
|
|
208
208
|
*
|
|
209
209
|
*/
|
|
210
|
-
findElement(using: string, value: string): ElementReference
|
|
210
|
+
findElement(using: string, value: string): Promise<ElementReference>;
|
|
211
211
|
/**
|
|
212
212
|
* Jsonwp Protocol Command
|
|
213
213
|
*
|
|
@@ -215,7 +215,7 @@ export default interface JsonwpCommands {
|
|
|
215
215
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelements
|
|
216
216
|
*
|
|
217
217
|
*/
|
|
218
|
-
findElements(using: string, value: string): ElementReference[]
|
|
218
|
+
findElements(using: string, value: string): Promise<ElementReference[]>;
|
|
219
219
|
/**
|
|
220
220
|
* Jsonwp Protocol Command
|
|
221
221
|
*
|
|
@@ -223,7 +223,7 @@ export default interface JsonwpCommands {
|
|
|
223
223
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidelement
|
|
224
224
|
*
|
|
225
225
|
*/
|
|
226
|
-
findElementFromElement(elementId: string, using: string, value: string): ElementReference
|
|
226
|
+
findElementFromElement(elementId: string, using: string, value: string): Promise<ElementReference>;
|
|
227
227
|
/**
|
|
228
228
|
* Jsonwp Protocol Command
|
|
229
229
|
*
|
|
@@ -231,7 +231,7 @@ export default interface JsonwpCommands {
|
|
|
231
231
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidelements
|
|
232
232
|
*
|
|
233
233
|
*/
|
|
234
|
-
findElementsFromElement(elementId: string, using: string, value: string): ElementReference[]
|
|
234
|
+
findElementsFromElement(elementId: string, using: string, value: string): Promise<ElementReference[]>;
|
|
235
235
|
/**
|
|
236
236
|
* Jsonwp Protocol Command
|
|
237
237
|
*
|
|
@@ -239,7 +239,7 @@ export default interface JsonwpCommands {
|
|
|
239
239
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementactive
|
|
240
240
|
*
|
|
241
241
|
*/
|
|
242
|
-
getActiveElement(): string
|
|
242
|
+
getActiveElement(): Promise<string>;
|
|
243
243
|
/**
|
|
244
244
|
* Jsonwp Protocol Command
|
|
245
245
|
*
|
|
@@ -247,7 +247,7 @@ export default interface JsonwpCommands {
|
|
|
247
247
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidselected
|
|
248
248
|
*
|
|
249
249
|
*/
|
|
250
|
-
isElementSelected(elementId: string): boolean
|
|
250
|
+
isElementSelected(elementId: string): Promise<boolean>;
|
|
251
251
|
/**
|
|
252
252
|
* Jsonwp Protocol Command
|
|
253
253
|
*
|
|
@@ -255,7 +255,7 @@ export default interface JsonwpCommands {
|
|
|
255
255
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementiddisplayed
|
|
256
256
|
*
|
|
257
257
|
*/
|
|
258
|
-
isElementDisplayed(elementId: string): boolean
|
|
258
|
+
isElementDisplayed(elementId: string): Promise<boolean>;
|
|
259
259
|
/**
|
|
260
260
|
* Jsonwp Protocol Command
|
|
261
261
|
*
|
|
@@ -263,7 +263,7 @@ export default interface JsonwpCommands {
|
|
|
263
263
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidattributename
|
|
264
264
|
*
|
|
265
265
|
*/
|
|
266
|
-
getElementAttribute(elementId: string, name: string): string | null
|
|
266
|
+
getElementAttribute(elementId: string, name: string): Promise<string | null>;
|
|
267
267
|
/**
|
|
268
268
|
* Jsonwp Protocol Command
|
|
269
269
|
*
|
|
@@ -271,7 +271,7 @@ export default interface JsonwpCommands {
|
|
|
271
271
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidcsspropertyname
|
|
272
272
|
*
|
|
273
273
|
*/
|
|
274
|
-
getElementCSSValue(elementId: string, propertyName: string): string
|
|
274
|
+
getElementCSSValue(elementId: string, propertyName: string): Promise<string>;
|
|
275
275
|
/**
|
|
276
276
|
* Jsonwp Protocol Command
|
|
277
277
|
*
|
|
@@ -279,7 +279,7 @@ export default interface JsonwpCommands {
|
|
|
279
279
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidtext
|
|
280
280
|
*
|
|
281
281
|
*/
|
|
282
|
-
getElementText(elementId: string): string
|
|
282
|
+
getElementText(elementId: string): Promise<string>;
|
|
283
283
|
/**
|
|
284
284
|
* Jsonwp Protocol Command
|
|
285
285
|
*
|
|
@@ -287,7 +287,7 @@ export default interface JsonwpCommands {
|
|
|
287
287
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidname
|
|
288
288
|
*
|
|
289
289
|
*/
|
|
290
|
-
getElementTagName(elementId: string): string
|
|
290
|
+
getElementTagName(elementId: string): Promise<string>;
|
|
291
291
|
/**
|
|
292
292
|
* Jsonwp Protocol Command
|
|
293
293
|
*
|
|
@@ -295,7 +295,7 @@ export default interface JsonwpCommands {
|
|
|
295
295
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidlocation
|
|
296
296
|
*
|
|
297
297
|
*/
|
|
298
|
-
getElementLocation(elementId: string): ProtocolCommandResponse
|
|
298
|
+
getElementLocation(elementId: string): Promise<ProtocolCommandResponse>;
|
|
299
299
|
/**
|
|
300
300
|
* Jsonwp Protocol Command
|
|
301
301
|
*
|
|
@@ -303,7 +303,7 @@ export default interface JsonwpCommands {
|
|
|
303
303
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidlocation_in_view
|
|
304
304
|
*
|
|
305
305
|
*/
|
|
306
|
-
getElementLocationInView(elementId: string): ProtocolCommandResponse
|
|
306
|
+
getElementLocationInView(elementId: string): Promise<ProtocolCommandResponse>;
|
|
307
307
|
/**
|
|
308
308
|
* Jsonwp Protocol Command
|
|
309
309
|
*
|
|
@@ -311,7 +311,7 @@ export default interface JsonwpCommands {
|
|
|
311
311
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidsize
|
|
312
312
|
*
|
|
313
313
|
*/
|
|
314
|
-
getElementSize(elementId: string): ProtocolCommandResponse
|
|
314
|
+
getElementSize(elementId: string): Promise<ProtocolCommandResponse>;
|
|
315
315
|
/**
|
|
316
316
|
* Jsonwp Protocol Command
|
|
317
317
|
*
|
|
@@ -319,7 +319,7 @@ export default interface JsonwpCommands {
|
|
|
319
319
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidenabled
|
|
320
320
|
*
|
|
321
321
|
*/
|
|
322
|
-
isElementEnabled(elementId: string): boolean
|
|
322
|
+
isElementEnabled(elementId: string): Promise<boolean>;
|
|
323
323
|
/**
|
|
324
324
|
* Jsonwp Protocol Command
|
|
325
325
|
*
|
|
@@ -327,7 +327,7 @@ export default interface JsonwpCommands {
|
|
|
327
327
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidclick
|
|
328
328
|
*
|
|
329
329
|
*/
|
|
330
|
-
elementClick(elementId: string): void
|
|
330
|
+
elementClick(elementId: string): Promise<void>;
|
|
331
331
|
/**
|
|
332
332
|
* Jsonwp Protocol Command
|
|
333
333
|
*
|
|
@@ -335,7 +335,7 @@ export default interface JsonwpCommands {
|
|
|
335
335
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidequalsother
|
|
336
336
|
*
|
|
337
337
|
*/
|
|
338
|
-
elementEquals(elementId: string, otherElementId: string): boolean
|
|
338
|
+
elementEquals(elementId: string, otherElementId: string): Promise<boolean>;
|
|
339
339
|
/**
|
|
340
340
|
* Jsonwp Protocol Command
|
|
341
341
|
*
|
|
@@ -343,7 +343,7 @@ export default interface JsonwpCommands {
|
|
|
343
343
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidsubmit
|
|
344
344
|
*
|
|
345
345
|
*/
|
|
346
|
-
elementSubmit(elementId: string): void
|
|
346
|
+
elementSubmit(elementId: string): Promise<void>;
|
|
347
347
|
/**
|
|
348
348
|
* Jsonwp Protocol Command
|
|
349
349
|
*
|
|
@@ -351,7 +351,7 @@ export default interface JsonwpCommands {
|
|
|
351
351
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidclear
|
|
352
352
|
*
|
|
353
353
|
*/
|
|
354
|
-
elementClear(elementId: string): void
|
|
354
|
+
elementClear(elementId: string): Promise<void>;
|
|
355
355
|
/**
|
|
356
356
|
* Jsonwp Protocol Command
|
|
357
357
|
*
|
|
@@ -359,7 +359,7 @@ export default interface JsonwpCommands {
|
|
|
359
359
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidelementidvalue
|
|
360
360
|
*
|
|
361
361
|
*/
|
|
362
|
-
elementSendKeys(elementId: string, value: string[]): void
|
|
362
|
+
elementSendKeys(elementId: string, value: string[]): Promise<void>;
|
|
363
363
|
/**
|
|
364
364
|
* Jsonwp Protocol Command
|
|
365
365
|
*
|
|
@@ -367,7 +367,7 @@ export default interface JsonwpCommands {
|
|
|
367
367
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidkeys
|
|
368
368
|
*
|
|
369
369
|
*/
|
|
370
|
-
sendKeys(value: string[]): void
|
|
370
|
+
sendKeys(value: string[]): Promise<void>;
|
|
371
371
|
/**
|
|
372
372
|
* Jsonwp Protocol Command
|
|
373
373
|
*
|
|
@@ -375,7 +375,7 @@ export default interface JsonwpCommands {
|
|
|
375
375
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidsource
|
|
376
376
|
*
|
|
377
377
|
*/
|
|
378
|
-
getPageSource(): string
|
|
378
|
+
getPageSource(): Promise<string>;
|
|
379
379
|
/**
|
|
380
380
|
* Jsonwp Protocol Command
|
|
381
381
|
*
|
|
@@ -383,7 +383,7 @@ export default interface JsonwpCommands {
|
|
|
383
383
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidexecute
|
|
384
384
|
*
|
|
385
385
|
*/
|
|
386
|
-
executeScript(script: string, args?: (string | object | number | boolean | undefined)[]): any
|
|
386
|
+
executeScript(script: string, args?: (string | object | number | boolean | undefined)[]): Promise<any>;
|
|
387
387
|
/**
|
|
388
388
|
* Jsonwp Protocol Command
|
|
389
389
|
*
|
|
@@ -391,7 +391,7 @@ export default interface JsonwpCommands {
|
|
|
391
391
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidexecute_async
|
|
392
392
|
*
|
|
393
393
|
*/
|
|
394
|
-
executeAsyncScript(script: string, args: (string | object | number | boolean | undefined)[]): any
|
|
394
|
+
executeAsyncScript(script: string, args: (string | object | number | boolean | undefined)[]): Promise<any>;
|
|
395
395
|
/**
|
|
396
396
|
* Jsonwp Protocol Command
|
|
397
397
|
*
|
|
@@ -399,7 +399,7 @@ export default interface JsonwpCommands {
|
|
|
399
399
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidcookie
|
|
400
400
|
*
|
|
401
401
|
*/
|
|
402
|
-
getAllCookies(): Cookie[]
|
|
402
|
+
getAllCookies(): Promise<Cookie[]>;
|
|
403
403
|
/**
|
|
404
404
|
* Jsonwp Protocol Command
|
|
405
405
|
*
|
|
@@ -407,7 +407,7 @@ export default interface JsonwpCommands {
|
|
|
407
407
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidcookie
|
|
408
408
|
*
|
|
409
409
|
*/
|
|
410
|
-
addCookie(cookie: object): void
|
|
410
|
+
addCookie(cookie: object): Promise<void>;
|
|
411
411
|
/**
|
|
412
412
|
* Jsonwp Protocol Command
|
|
413
413
|
*
|
|
@@ -415,7 +415,7 @@ export default interface JsonwpCommands {
|
|
|
415
415
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidcookie
|
|
416
416
|
*
|
|
417
417
|
*/
|
|
418
|
-
deleteAllCookies(): void
|
|
418
|
+
deleteAllCookies(): Promise<void>;
|
|
419
419
|
/**
|
|
420
420
|
* Jsonwp Protocol Command
|
|
421
421
|
*
|
|
@@ -423,7 +423,7 @@ export default interface JsonwpCommands {
|
|
|
423
423
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidcookiename
|
|
424
424
|
*
|
|
425
425
|
*/
|
|
426
|
-
deleteCookie(name: string): void
|
|
426
|
+
deleteCookie(name: string): Promise<void>;
|
|
427
427
|
/**
|
|
428
428
|
* Jsonwp Protocol Command
|
|
429
429
|
*
|
|
@@ -431,7 +431,7 @@ export default interface JsonwpCommands {
|
|
|
431
431
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessioniddismiss_alert
|
|
432
432
|
*
|
|
433
433
|
*/
|
|
434
|
-
dismissAlert(): void
|
|
434
|
+
dismissAlert(): Promise<void>;
|
|
435
435
|
/**
|
|
436
436
|
* Jsonwp Protocol Command
|
|
437
437
|
*
|
|
@@ -439,7 +439,7 @@ export default interface JsonwpCommands {
|
|
|
439
439
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidaccept_alert
|
|
440
440
|
*
|
|
441
441
|
*/
|
|
442
|
-
acceptAlert(): void
|
|
442
|
+
acceptAlert(): Promise<void>;
|
|
443
443
|
/**
|
|
444
444
|
* Jsonwp Protocol Command
|
|
445
445
|
*
|
|
@@ -447,7 +447,7 @@ export default interface JsonwpCommands {
|
|
|
447
447
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidalert_text
|
|
448
448
|
*
|
|
449
449
|
*/
|
|
450
|
-
getAlertText(): string
|
|
450
|
+
getAlertText(): Promise<string>;
|
|
451
451
|
/**
|
|
452
452
|
* Jsonwp Protocol Command
|
|
453
453
|
*
|
|
@@ -455,7 +455,7 @@ export default interface JsonwpCommands {
|
|
|
455
455
|
* @ref https://w3c.github.io/webdriver/webdriver-spec.html#dfn-send-alert-text
|
|
456
456
|
*
|
|
457
457
|
*/
|
|
458
|
-
sendAlertText(text: string): void
|
|
458
|
+
sendAlertText(text: string): Promise<void>;
|
|
459
459
|
/**
|
|
460
460
|
* Jsonwp Protocol Command
|
|
461
461
|
*
|
|
@@ -463,7 +463,7 @@ export default interface JsonwpCommands {
|
|
|
463
463
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidscreenshot
|
|
464
464
|
*
|
|
465
465
|
*/
|
|
466
|
-
takeScreenshot(): string
|
|
466
|
+
takeScreenshot(): Promise<string>;
|
|
467
467
|
/**
|
|
468
468
|
* Jsonwp Protocol Command
|
|
469
469
|
*
|
|
@@ -471,7 +471,7 @@ export default interface JsonwpCommands {
|
|
|
471
471
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeavailable_engines
|
|
472
472
|
*
|
|
473
473
|
*/
|
|
474
|
-
getAvailableEngines(): string[]
|
|
474
|
+
getAvailableEngines(): Promise<string[]>;
|
|
475
475
|
/**
|
|
476
476
|
* Jsonwp Protocol Command
|
|
477
477
|
*
|
|
@@ -479,7 +479,7 @@ export default interface JsonwpCommands {
|
|
|
479
479
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactive_engine
|
|
480
480
|
*
|
|
481
481
|
*/
|
|
482
|
-
getActiveEngine(): string
|
|
482
|
+
getActiveEngine(): Promise<string>;
|
|
483
483
|
/**
|
|
484
484
|
* Jsonwp Protocol Command
|
|
485
485
|
*
|
|
@@ -487,7 +487,7 @@ export default interface JsonwpCommands {
|
|
|
487
487
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactivated
|
|
488
488
|
*
|
|
489
489
|
*/
|
|
490
|
-
isIMEActivated(): boolean
|
|
490
|
+
isIMEActivated(): Promise<boolean>;
|
|
491
491
|
/**
|
|
492
492
|
* Jsonwp Protocol Command
|
|
493
493
|
*
|
|
@@ -495,7 +495,7 @@ export default interface JsonwpCommands {
|
|
|
495
495
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimedeactivate
|
|
496
496
|
*
|
|
497
497
|
*/
|
|
498
|
-
deactivateIME(): void
|
|
498
|
+
deactivateIME(): Promise<void>;
|
|
499
499
|
/**
|
|
500
500
|
* Jsonwp Protocol Command
|
|
501
501
|
*
|
|
@@ -503,7 +503,7 @@ export default interface JsonwpCommands {
|
|
|
503
503
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidimeactivate
|
|
504
504
|
*
|
|
505
505
|
*/
|
|
506
|
-
activateIME(engine: string): void
|
|
506
|
+
activateIME(engine: string): Promise<void>;
|
|
507
507
|
/**
|
|
508
508
|
* Jsonwp Protocol Command
|
|
509
509
|
*
|
|
@@ -511,7 +511,7 @@ export default interface JsonwpCommands {
|
|
|
511
511
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidorientation
|
|
512
512
|
*
|
|
513
513
|
*/
|
|
514
|
-
getOrientation(): string
|
|
514
|
+
getOrientation(): Promise<string>;
|
|
515
515
|
/**
|
|
516
516
|
* Jsonwp Protocol Command
|
|
517
517
|
*
|
|
@@ -519,7 +519,7 @@ export default interface JsonwpCommands {
|
|
|
519
519
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidorientation
|
|
520
520
|
*
|
|
521
521
|
*/
|
|
522
|
-
setOrientation(orientation: string): void
|
|
522
|
+
setOrientation(orientation: string): Promise<void>;
|
|
523
523
|
/**
|
|
524
524
|
* Jsonwp Protocol Command
|
|
525
525
|
*
|
|
@@ -527,7 +527,7 @@ export default interface JsonwpCommands {
|
|
|
527
527
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidmoveto
|
|
528
528
|
*
|
|
529
529
|
*/
|
|
530
|
-
moveToElement(element?: (string | null), xoffset?: number, yoffset?: number): void
|
|
530
|
+
moveToElement(element?: (string | null), xoffset?: number, yoffset?: number): Promise<void>;
|
|
531
531
|
/**
|
|
532
532
|
* Jsonwp Protocol Command
|
|
533
533
|
*
|
|
@@ -535,7 +535,7 @@ export default interface JsonwpCommands {
|
|
|
535
535
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidbuttondown
|
|
536
536
|
*
|
|
537
537
|
*/
|
|
538
|
-
buttonDown(button?: number): void
|
|
538
|
+
buttonDown(button?: number): Promise<void>;
|
|
539
539
|
/**
|
|
540
540
|
* Jsonwp Protocol Command
|
|
541
541
|
*
|
|
@@ -543,7 +543,7 @@ export default interface JsonwpCommands {
|
|
|
543
543
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidbuttonup
|
|
544
544
|
*
|
|
545
545
|
*/
|
|
546
|
-
buttonUp(button?: number): void
|
|
546
|
+
buttonUp(button?: number): Promise<void>;
|
|
547
547
|
/**
|
|
548
548
|
* Jsonwp Protocol Command
|
|
549
549
|
*
|
|
@@ -551,7 +551,7 @@ export default interface JsonwpCommands {
|
|
|
551
551
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidclick
|
|
552
552
|
*
|
|
553
553
|
*/
|
|
554
|
-
positionClick(button?: number): void
|
|
554
|
+
positionClick(button?: number): Promise<void>;
|
|
555
555
|
/**
|
|
556
556
|
* Jsonwp Protocol Command
|
|
557
557
|
*
|
|
@@ -559,7 +559,7 @@ export default interface JsonwpCommands {
|
|
|
559
559
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessioniddoubleclick
|
|
560
560
|
*
|
|
561
561
|
*/
|
|
562
|
-
positionDoubleClick(): void
|
|
562
|
+
positionDoubleClick(): Promise<void>;
|
|
563
563
|
/**
|
|
564
564
|
* Jsonwp Protocol Command
|
|
565
565
|
*
|
|
@@ -567,7 +567,7 @@ export default interface JsonwpCommands {
|
|
|
567
567
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchclick
|
|
568
568
|
*
|
|
569
569
|
*/
|
|
570
|
-
touchClick(element: string): void
|
|
570
|
+
touchClick(element: string): Promise<void>;
|
|
571
571
|
/**
|
|
572
572
|
* Jsonwp Protocol Command
|
|
573
573
|
*
|
|
@@ -575,7 +575,7 @@ export default interface JsonwpCommands {
|
|
|
575
575
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchdown
|
|
576
576
|
*
|
|
577
577
|
*/
|
|
578
|
-
touchDown(x: number, y: number): void
|
|
578
|
+
touchDown(x: number, y: number): Promise<void>;
|
|
579
579
|
/**
|
|
580
580
|
* Jsonwp Protocol Command
|
|
581
581
|
*
|
|
@@ -583,7 +583,7 @@ export default interface JsonwpCommands {
|
|
|
583
583
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchup
|
|
584
584
|
*
|
|
585
585
|
*/
|
|
586
|
-
touchUp(x: number, y: number): void
|
|
586
|
+
touchUp(x: number, y: number): Promise<void>;
|
|
587
587
|
/**
|
|
588
588
|
* Jsonwp Protocol Command
|
|
589
589
|
*
|
|
@@ -591,7 +591,7 @@ export default interface JsonwpCommands {
|
|
|
591
591
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchmove
|
|
592
592
|
*
|
|
593
593
|
*/
|
|
594
|
-
touchMove(x: number, y: number): void
|
|
594
|
+
touchMove(x: number, y: number): Promise<void>;
|
|
595
595
|
/**
|
|
596
596
|
* Jsonwp Protocol Command
|
|
597
597
|
*
|
|
@@ -599,7 +599,7 @@ export default interface JsonwpCommands {
|
|
|
599
599
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchscroll
|
|
600
600
|
*
|
|
601
601
|
*/
|
|
602
|
-
touchScroll(xoffset: number, yoffset: number, element?: string): void
|
|
602
|
+
touchScroll(xoffset: number, yoffset: number, element?: string): Promise<void>;
|
|
603
603
|
/**
|
|
604
604
|
* Jsonwp Protocol Command
|
|
605
605
|
*
|
|
@@ -607,7 +607,7 @@ export default interface JsonwpCommands {
|
|
|
607
607
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchdoubleclick
|
|
608
608
|
*
|
|
609
609
|
*/
|
|
610
|
-
touchDoubleClick(element: string): void
|
|
610
|
+
touchDoubleClick(element: string): Promise<void>;
|
|
611
611
|
/**
|
|
612
612
|
* Jsonwp Protocol Command
|
|
613
613
|
*
|
|
@@ -615,7 +615,7 @@ export default interface JsonwpCommands {
|
|
|
615
615
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchlongclick
|
|
616
616
|
*
|
|
617
617
|
*/
|
|
618
|
-
touchLongClick(element: string): void
|
|
618
|
+
touchLongClick(element: string): Promise<void>;
|
|
619
619
|
/**
|
|
620
620
|
* Jsonwp Protocol Command
|
|
621
621
|
*
|
|
@@ -623,7 +623,7 @@ export default interface JsonwpCommands {
|
|
|
623
623
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidtouchflick
|
|
624
624
|
*
|
|
625
625
|
*/
|
|
626
|
-
touchFlick(xoffset?: number, yoffset?: number, element?: string, speed?: number, xspeed?: number, yspeed?: number): void
|
|
626
|
+
touchFlick(xoffset?: number, yoffset?: number, element?: string, speed?: number, xspeed?: number, yspeed?: number): Promise<void>;
|
|
627
627
|
/**
|
|
628
628
|
* Jsonwp Protocol Command
|
|
629
629
|
*
|
|
@@ -631,7 +631,7 @@ export default interface JsonwpCommands {
|
|
|
631
631
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocation
|
|
632
632
|
*
|
|
633
633
|
*/
|
|
634
|
-
getGeoLocation(): ProtocolCommandResponse
|
|
634
|
+
getGeoLocation(): Promise<ProtocolCommandResponse>;
|
|
635
635
|
/**
|
|
636
636
|
* Jsonwp Protocol Command
|
|
637
637
|
*
|
|
@@ -639,7 +639,7 @@ export default interface JsonwpCommands {
|
|
|
639
639
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidlocation
|
|
640
640
|
*
|
|
641
641
|
*/
|
|
642
|
-
setGeoLocation(location: object): void
|
|
642
|
+
setGeoLocation(location: object): Promise<void>;
|
|
643
643
|
/**
|
|
644
644
|
* Jsonwp Protocol Command
|
|
645
645
|
*
|
|
@@ -647,7 +647,7 @@ export default interface JsonwpCommands {
|
|
|
647
647
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storage
|
|
648
648
|
*
|
|
649
649
|
*/
|
|
650
|
-
getLocalStorage(): string[]
|
|
650
|
+
getLocalStorage(): Promise<string[]>;
|
|
651
651
|
/**
|
|
652
652
|
* Jsonwp Protocol Command
|
|
653
653
|
*
|
|
@@ -655,7 +655,7 @@ export default interface JsonwpCommands {
|
|
|
655
655
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidlocal_storage
|
|
656
656
|
*
|
|
657
657
|
*/
|
|
658
|
-
setLocalStorage(key: string, value: string): void
|
|
658
|
+
setLocalStorage(key: string, value: string): Promise<void>;
|
|
659
659
|
/**
|
|
660
660
|
* Jsonwp Protocol Command
|
|
661
661
|
*
|
|
@@ -663,7 +663,7 @@ export default interface JsonwpCommands {
|
|
|
663
663
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storage
|
|
664
664
|
*
|
|
665
665
|
*/
|
|
666
|
-
clearLocalStorage(): void
|
|
666
|
+
clearLocalStorage(): Promise<void>;
|
|
667
667
|
/**
|
|
668
668
|
* Jsonwp Protocol Command
|
|
669
669
|
*
|
|
@@ -671,7 +671,7 @@ export default interface JsonwpCommands {
|
|
|
671
671
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidlocal_storagekeykey
|
|
672
672
|
*
|
|
673
673
|
*/
|
|
674
|
-
getLocalStorageItem(key: string): string
|
|
674
|
+
getLocalStorageItem(key: string): Promise<string>;
|
|
675
675
|
/**
|
|
676
676
|
* Jsonwp Protocol Command
|
|
677
677
|
*
|
|
@@ -679,7 +679,7 @@ export default interface JsonwpCommands {
|
|
|
679
679
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidlocal_storagekeykey
|
|
680
680
|
*
|
|
681
681
|
*/
|
|
682
|
-
deleteLocalStorageItem(key: string): void
|
|
682
|
+
deleteLocalStorageItem(key: string): Promise<void>;
|
|
683
683
|
/**
|
|
684
684
|
* Jsonwp Protocol Command
|
|
685
685
|
*
|
|
@@ -687,7 +687,7 @@ export default interface JsonwpCommands {
|
|
|
687
687
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlocal_storagesize
|
|
688
688
|
*
|
|
689
689
|
*/
|
|
690
|
-
getLocalStorageSize(): number
|
|
690
|
+
getLocalStorageSize(): Promise<number>;
|
|
691
691
|
/**
|
|
692
692
|
* Jsonwp Protocol Command
|
|
693
693
|
*
|
|
@@ -695,7 +695,7 @@ export default interface JsonwpCommands {
|
|
|
695
695
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidsession_storage
|
|
696
696
|
*
|
|
697
697
|
*/
|
|
698
|
-
getSessionStorage(): string[]
|
|
698
|
+
getSessionStorage(): Promise<string[]>;
|
|
699
699
|
/**
|
|
700
700
|
* Jsonwp Protocol Command
|
|
701
701
|
*
|
|
@@ -703,7 +703,7 @@ export default interface JsonwpCommands {
|
|
|
703
703
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#post-sessionsessionidsession_storage
|
|
704
704
|
*
|
|
705
705
|
*/
|
|
706
|
-
setSessionStorage(key: string, value: string): void
|
|
706
|
+
setSessionStorage(key: string, value: string): Promise<void>;
|
|
707
707
|
/**
|
|
708
708
|
* Jsonwp Protocol Command
|
|
709
709
|
*
|
|
@@ -711,7 +711,7 @@ export default interface JsonwpCommands {
|
|
|
711
711
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidsession_storage
|
|
712
712
|
*
|
|
713
713
|
*/
|
|
714
|
-
clearSessionStorage(): void
|
|
714
|
+
clearSessionStorage(): Promise<void>;
|
|
715
715
|
/**
|
|
716
716
|
* Jsonwp Protocol Command
|
|
717
717
|
*
|
|
@@ -719,7 +719,7 @@ export default interface JsonwpCommands {
|
|
|
719
719
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#get-sessionsessionidsession_storagekeykey
|
|
720
720
|
*
|
|
721
721
|
*/
|
|
722
|
-
getSessionStorageItem(key: string): string
|
|
722
|
+
getSessionStorageItem(key: string): Promise<string>;
|
|
723
723
|
/**
|
|
724
724
|
* Jsonwp Protocol Command
|
|
725
725
|
*
|
|
@@ -727,7 +727,7 @@ export default interface JsonwpCommands {
|
|
|
727
727
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#delete-sessionsessionidsession_storagekeykey
|
|
728
728
|
*
|
|
729
729
|
*/
|
|
730
|
-
deleteSessionStorageItem(key: string): void
|
|
730
|
+
deleteSessionStorageItem(key: string): Promise<void>;
|
|
731
731
|
/**
|
|
732
732
|
* Jsonwp Protocol Command
|
|
733
733
|
*
|
|
@@ -735,7 +735,7 @@ export default interface JsonwpCommands {
|
|
|
735
735
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidsession_storagesize
|
|
736
736
|
*
|
|
737
737
|
*/
|
|
738
|
-
getSessionStorageSize(): number
|
|
738
|
+
getSessionStorageSize(): Promise<number>;
|
|
739
739
|
/**
|
|
740
740
|
* Jsonwp Protocol Command
|
|
741
741
|
*
|
|
@@ -743,7 +743,7 @@ export default interface JsonwpCommands {
|
|
|
743
743
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlog
|
|
744
744
|
*
|
|
745
745
|
*/
|
|
746
|
-
getLogs(type: string): object[]
|
|
746
|
+
getLogs(type: string): Promise<object[]>;
|
|
747
747
|
/**
|
|
748
748
|
* Jsonwp Protocol Command
|
|
749
749
|
*
|
|
@@ -751,7 +751,7 @@ export default interface JsonwpCommands {
|
|
|
751
751
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidlogtypes
|
|
752
752
|
*
|
|
753
753
|
*/
|
|
754
|
-
getLogTypes(): string[]
|
|
754
|
+
getLogTypes(): Promise<string[]>;
|
|
755
755
|
/**
|
|
756
756
|
* Jsonwp Protocol Command
|
|
757
757
|
*
|
|
@@ -759,6 +759,6 @@ export default interface JsonwpCommands {
|
|
|
759
759
|
* @ref https://github.com/SeleniumHQ/selenium/wiki/JsonWireProtocol#sessionsessionidapplication_cachestatus
|
|
760
760
|
*
|
|
761
761
|
*/
|
|
762
|
-
getApplicationCacheStatus(): number
|
|
762
|
+
getApplicationCacheStatus(): Promise<number>;
|
|
763
763
|
}
|
|
764
764
|
//# sourceMappingURL=jsonwp.d.ts.map
|