@wdio/protocols 7.13.0 → 7.16.7
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/chromium.d.ts +40 -0
- package/build/commands/chromium.d.ts.map +1 -1
- package/build/commands/gecko.d.ts +8 -0
- package/build/commands/gecko.d.ts.map +1 -1
- package/build/commands/webdriver.d.ts +65 -6
- package/build/commands/webdriver.d.ts.map +1 -1
- package/build/types.d.ts +1 -1
- package/build/types.d.ts.map +1 -1
- package/package.json +2 -2
- package/protocols/chromium.json +65 -0
- package/protocols/gecko.json +13 -0
- package/protocols/webdriver.json +119 -10
|
@@ -241,6 +241,46 @@ export default interface ChromiumCommands {
|
|
|
241
241
|
*
|
|
242
242
|
*/
|
|
243
243
|
resume(): void;
|
|
244
|
+
/**
|
|
245
|
+
* Chromium Protocol Command
|
|
246
|
+
*
|
|
247
|
+
* Returns the list of cast sinks (Cast devices) available to the Chrome media router.
|
|
248
|
+
* @ref https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#748
|
|
249
|
+
*
|
|
250
|
+
*/
|
|
251
|
+
getCastSinks(): string[];
|
|
252
|
+
/**
|
|
253
|
+
* Chromium Protocol Command
|
|
254
|
+
*
|
|
255
|
+
* Selects a cast sink (Cast device) as the recipient of media router intents (connect or play).
|
|
256
|
+
* @ref https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#737
|
|
257
|
+
*
|
|
258
|
+
*/
|
|
259
|
+
selectCastSink(sinkName: string): void;
|
|
260
|
+
/**
|
|
261
|
+
* Chromium Protocol Command
|
|
262
|
+
*
|
|
263
|
+
* Initiates tab mirroring for the current browser tab on the specified device.
|
|
264
|
+
* @ref https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#741
|
|
265
|
+
*
|
|
266
|
+
*/
|
|
267
|
+
startCastTabMirroring(sinkName: string): void;
|
|
268
|
+
/**
|
|
269
|
+
* Chromium Protocol Command
|
|
270
|
+
*
|
|
271
|
+
* Returns error message if there is any issue in a Cast session.
|
|
272
|
+
* @ref https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#751
|
|
273
|
+
*
|
|
274
|
+
*/
|
|
275
|
+
getCastIssueMessage(): string;
|
|
276
|
+
/**
|
|
277
|
+
* Chromium Protocol Command
|
|
278
|
+
*
|
|
279
|
+
* Stops casting from media router to the specified device, if connected.
|
|
280
|
+
* @ref https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#744
|
|
281
|
+
*
|
|
282
|
+
*/
|
|
283
|
+
stopCasting(sinkName: string): void;
|
|
244
284
|
/**
|
|
245
285
|
* Chromium Protocol Command
|
|
246
286
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chromium.d.ts","sourceRoot":"","sources":["../../src/commands/chromium.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAA;AAGlD,MAAM,CAAC,OAAO,WAAW,gBAAgB;IAErC;;;;;;;;;;;;OAYG;IACH,WAAW,IAAI,OAAO,CAAC;IAEvB;;;;;;OAMG;IACH,eAAe,IAAI,OAAO,CAAC;IAE3B;;;;;;;;;;;;;;;;;;;;;OAqBG;IACH,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAC,IAAI,CAAC;IAEhD;;;;;;;;;;;;OAYG;IACH,SAAS,IAAI,OAAO,CAAC;IAErB;;;;;;OAMG;IACH,gBAAgB,IAAI,uBAAuB,CAAC;IAE5C;;;;;;;;;;;;;;;;;;;OAmBG;IACH,oBAAoB,IAAI,MAAM,CAAC;IAE/B;;;;;;;;;;;;;;;;;;;OAmBG;IACH,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,MAAM,CAAC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,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAElC;;;;;;OAMG;IACH,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAC,IAAI,CAAC;IAEhD;;;;;;OAMG;IACH,YAAY,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtC;;;;;;OAMG;IACH,UAAU,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtD;;;;;;OAMG;IACH,MAAM,IAAI,IAAI,CAAC;IAEf;;;;;;OAMG;IACH,MAAM,IAAI,IAAI,CAAC;IAEf;;;;;;OAMG;IACH,YAAY,IAAI,MAAM,EAAE,CAAC;IAEzB;;;;;;OAMG;IACH,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvC;;;;;;OAMG;IACH,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9C;;;;;;OAMG;IACH,mBAAmB,IAAI,MAAM,CAAC;IAE9B;;;;;;OAMG;IACH,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpC;;;;;;OAMG;IACH,QAAQ,IAAI,IAAI,CAAC;IAEjB;;;;;;OAMG;IACH,qBAAqB,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAEnE;;;;;;OAMG;IACH,WAAW,IAAI,MAAM,EAAE,CAAC;IAExB;;;;;;OAMG;IACH,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CACnC"}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
export default interface GeckoCommands {
|
|
2
|
+
/**
|
|
3
|
+
* Gecko Protocol Command
|
|
4
|
+
*
|
|
5
|
+
* Captures a screenshot of the entire page.
|
|
6
|
+
* @ref https://phabricator.services.mozilla.com/source/mozilla-central/browse/default/testing/geckodriver/src/command.rs$43-46
|
|
7
|
+
*
|
|
8
|
+
*/
|
|
9
|
+
fullPageScreenshot(): string;
|
|
2
10
|
/**
|
|
3
11
|
* Gecko Protocol Command
|
|
4
12
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gecko.d.ts","sourceRoot":"","sources":["../../src/commands/gecko.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,WAAW,aAAa;IAElC;;;;;;;;;;OAUG;IACH,aAAa,IAAI,MAAM,CAAC;IAExB;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC;IAExD;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC"}
|
|
1
|
+
{"version":3,"file":"gecko.d.ts","sourceRoot":"","sources":["../../src/commands/gecko.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,WAAW,aAAa;IAElC;;;;;;OAMG;IACH,kBAAkB,IAAI,MAAM,CAAC;IAE7B;;;;;;;;;;OAUG;IACH,aAAa,IAAI,MAAM,CAAC;IAExB;;;;;;;;;;;;OAYG;IACH,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAErC;;;;;;;;;;;;;OAaG;IACH,YAAY,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,MAAM,CAAC;IAExD;;;;;;;;;;;;;;;OAeG;IACH,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;CACpC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SessionReturn, StatusReturn, Timeouts, WindowHandle, RectReturn, ElementReference,
|
|
1
|
+
import { SessionReturn, StatusReturn, Timeouts, WindowHandle, RectReturn, ElementReference, ProtocolCommandResponse, Cookie } from '../types';
|
|
2
2
|
export default interface WebdriverCommands {
|
|
3
3
|
/**
|
|
4
4
|
* Webdriver Protocol Command
|
|
@@ -195,15 +195,44 @@ export default interface WebdriverCommands {
|
|
|
195
195
|
/**
|
|
196
196
|
* Webdriver Protocol Command
|
|
197
197
|
*
|
|
198
|
-
* The Find Element command is used to find an element in the current browsing context that can be used for future commands.
|
|
198
|
+
* The Find Element command is used to find an element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element.
|
|
199
199
|
* @ref https://w3c.github.io/webdriver/#dfn-find-element
|
|
200
200
|
*
|
|
201
|
+
* @example
|
|
202
|
+
* ```js
|
|
203
|
+
* // get element
|
|
204
|
+
* const elementRef = await browser.findElement('xpath', '//div')
|
|
205
|
+
* const element = await $(elementRef)
|
|
206
|
+
* await element.click()
|
|
207
|
+
* ```
|
|
201
208
|
*/
|
|
202
209
|
findElement(using: string, value: string): ElementReference;
|
|
203
210
|
/**
|
|
204
211
|
* Webdriver Protocol Command
|
|
205
212
|
*
|
|
206
|
-
* The Find
|
|
213
|
+
* The Find Element From Shadow Root command is used to find an element within the shadow root of an element that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element.
|
|
214
|
+
* @ref https://w3c.github.io/webdriver/#find-element-from-shadow-root
|
|
215
|
+
*
|
|
216
|
+
* @example
|
|
217
|
+
* ```js
|
|
218
|
+
* // get shadow root
|
|
219
|
+
* const element = await browser.findElement('xpath', '//div')
|
|
220
|
+
* const shadowRoot = await browser.getElementShadowRoot(
|
|
221
|
+
* element['element-6066-11e4-a52e-4f735466cecf']
|
|
222
|
+
* )
|
|
223
|
+
* // fetch element within that shadow root
|
|
224
|
+
* const elementRef = await browser.findElementFromShadowRoot(
|
|
225
|
+
* shadowRoot['shadow-6066-11e4-a52e-4f735466cecf'],
|
|
226
|
+
* 'xpath',
|
|
227
|
+
* '//div'
|
|
228
|
+
* )
|
|
229
|
+
* ```
|
|
230
|
+
*/
|
|
231
|
+
findElementFromShadowRoot(shadowId: string, using: string, value: string): ProtocolCommandResponse;
|
|
232
|
+
/**
|
|
233
|
+
* Webdriver Protocol Command
|
|
234
|
+
*
|
|
235
|
+
* The Find Elements command is used to find elements in the current browsing context that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).
|
|
207
236
|
* @ref https://w3c.github.io/webdriver/#dfn-find-elements
|
|
208
237
|
*
|
|
209
238
|
*/
|
|
@@ -211,7 +240,29 @@ export default interface WebdriverCommands {
|
|
|
211
240
|
/**
|
|
212
241
|
* Webdriver Protocol Command
|
|
213
242
|
*
|
|
214
|
-
* The Find
|
|
243
|
+
* The Find Elements command is used to find elements within the shadow root of an element that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).
|
|
244
|
+
* @ref https://w3c.github.io/webdriver/#find-elements-from-shadow-root
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```js
|
|
248
|
+
* // get shadow root
|
|
249
|
+
* const element = await browser.findElement('xpath', '//div')
|
|
250
|
+
* const shadowRoot = await browser.getElementShadowRoot(
|
|
251
|
+
* element['element-6066-11e4-a52e-4f735466cecf']
|
|
252
|
+
* )
|
|
253
|
+
* // fetch elements within that shadow root
|
|
254
|
+
* const elementRef = await browser.findElementsFromShadowRoot(
|
|
255
|
+
* shadowRoot['shadow-6066-11e4-a52e-4f735466cecf'],
|
|
256
|
+
* 'xpath',
|
|
257
|
+
* '//div'
|
|
258
|
+
* )
|
|
259
|
+
* ```
|
|
260
|
+
*/
|
|
261
|
+
findElementsFromShadowRoot(shadowId: string, using: string, value: string): object[];
|
|
262
|
+
/**
|
|
263
|
+
* Webdriver Protocol Command
|
|
264
|
+
*
|
|
265
|
+
* The Find Element From Element command is used to find an element from a web element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).
|
|
215
266
|
* @ref https://w3c.github.io/webdriver/#dfn-find-element-from-element
|
|
216
267
|
*
|
|
217
268
|
*/
|
|
@@ -219,7 +270,7 @@ export default interface WebdriverCommands {
|
|
|
219
270
|
/**
|
|
220
271
|
* Webdriver Protocol Command
|
|
221
272
|
*
|
|
222
|
-
* The Find Elements From Element command is used to find elements from a web element in the current browsing context that can be used for future commands.
|
|
273
|
+
* The Find Elements From Element command is used to find elements from a web element in the current browsing context that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).
|
|
223
274
|
* @ref https://w3c.github.io/webdriver/#dfn-find-elements-from-element
|
|
224
275
|
*
|
|
225
276
|
*/
|
|
@@ -227,7 +278,15 @@ export default interface WebdriverCommands {
|
|
|
227
278
|
/**
|
|
228
279
|
* Webdriver Protocol Command
|
|
229
280
|
*
|
|
230
|
-
* Get
|
|
281
|
+
* Get the shadow root object of an element. The result object can be used to fetch elements within this shadow root using e.g. findElementFromShadowRoots or findElementsFromShadowRoots.
|
|
282
|
+
* @ref https://w3c.github.io/webdriver/#dfn-get-active-element
|
|
283
|
+
*
|
|
284
|
+
*/
|
|
285
|
+
getElementShadowRoot(elementId: string): string;
|
|
286
|
+
/**
|
|
287
|
+
* Webdriver Protocol Command
|
|
288
|
+
*
|
|
289
|
+
* Get Active Element returns the active element of the current browsing context’s document element. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).
|
|
231
290
|
* @ref https://w3c.github.io/webdriver/#dfn-get-active-element
|
|
232
291
|
*
|
|
233
292
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webdriver.d.ts","sourceRoot":"","sources":["../../src/commands/webdriver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,gBAAgB,EAAE,
|
|
1
|
+
{"version":3,"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AuB,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,OAAO,EAAE,mBAAmB,CAAC,EAAE,OAAO,EAAE,gBAAgB,CAAC,EAAE,OAAO,EAAE,cAAc,CAAC,EAAE,OAAO,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,EAAE,GAAG,CAAC,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAE3N;;;;;;OAMG;IACH,0BAA0B,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1D;;;;;;OAMG;IACH,aAAa,CAAC,YAAY,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAErK;;;;;;OAMG;IACH,cAAc,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAE9C;;;;;;OAMG;IACH,oBAAoB,CAAC,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpD;;;;;;OAMG;IACH,gBAAgB,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtE;;;;;;OAMG;IACH,eAAe,CAAC,eAAe,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;CACxE"}
|
package/build/types.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ export interface Timeouts {
|
|
|
45
45
|
pageLoad?: number;
|
|
46
46
|
script?: number;
|
|
47
47
|
}
|
|
48
|
-
export declare type SameSiteOptions = 'Lax' | 'Strict';
|
|
48
|
+
export declare type SameSiteOptions = 'Lax' | 'Strict' | 'None';
|
|
49
49
|
export interface Cookie {
|
|
50
50
|
/**
|
|
51
51
|
* The name of the cookie.
|
package/build/types.d.ts.map
CHANGED
|
@@ -1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AAM,CAAC,YAAY,EAAE,MAAM,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/protocols",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.16.7",
|
|
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/main/packages/wdio-protocols",
|
|
@@ -24,5 +24,5 @@
|
|
|
24
24
|
"publishConfig": {
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "6c51be2984c51b4442cc185e2fe4579179c6da03"
|
|
28
28
|
}
|
package/protocols/chromium.json
CHANGED
|
@@ -364,6 +364,71 @@
|
|
|
364
364
|
"parameters": []
|
|
365
365
|
}
|
|
366
366
|
},
|
|
367
|
+
"/session/:sessionId/goog/cast/get_sinks": {
|
|
368
|
+
"GET": {
|
|
369
|
+
"command": "getCastSinks",
|
|
370
|
+
"description": "Returns the list of cast sinks (Cast devices) available to the Chrome media router.",
|
|
371
|
+
"ref": "https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#748",
|
|
372
|
+
"parameters": [],
|
|
373
|
+
"returns": {
|
|
374
|
+
"type": "string[]",
|
|
375
|
+
"name": "sinks",
|
|
376
|
+
"description": "List of available sinks."
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
"/session/:sessionId/goog/cast/set_sink_to_use": {
|
|
381
|
+
"POST": {
|
|
382
|
+
"command": "selectCastSink",
|
|
383
|
+
"description": "Selects a cast sink (Cast device) as the recipient of media router intents (connect or play).",
|
|
384
|
+
"ref": "https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#737",
|
|
385
|
+
"parameters": [{
|
|
386
|
+
"name": "sinkName",
|
|
387
|
+
"type": "string",
|
|
388
|
+
"description": "The name of the target device.",
|
|
389
|
+
"required": true
|
|
390
|
+
}]
|
|
391
|
+
}
|
|
392
|
+
},
|
|
393
|
+
"/session/:sessionId/goog/cast/start_tab_mirroring": {
|
|
394
|
+
"POST": {
|
|
395
|
+
"command": "startCastTabMirroring",
|
|
396
|
+
"description": "Initiates tab mirroring for the current browser tab on the specified device.",
|
|
397
|
+
"ref": "https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#741",
|
|
398
|
+
"parameters": [{
|
|
399
|
+
"name": "sinkName",
|
|
400
|
+
"type": "string",
|
|
401
|
+
"description": "The name of the target device.",
|
|
402
|
+
"required": true
|
|
403
|
+
}]
|
|
404
|
+
}
|
|
405
|
+
},
|
|
406
|
+
"/session/:sessionId/goog/cast/get_issue_message": {
|
|
407
|
+
"GET": {
|
|
408
|
+
"command": "getCastIssueMessage",
|
|
409
|
+
"description": "Returns error message if there is any issue in a Cast session.",
|
|
410
|
+
"ref": "https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#751",
|
|
411
|
+
"parameters": [],
|
|
412
|
+
"returns": {
|
|
413
|
+
"type": "String",
|
|
414
|
+
"name": "message",
|
|
415
|
+
"description": "Error message, if any."
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
"/session/:sessionId/goog/cast/stop_casting": {
|
|
420
|
+
"POST": {
|
|
421
|
+
"command": "stopCasting",
|
|
422
|
+
"description": "Stops casting from media router to the specified device, if connected.",
|
|
423
|
+
"ref": "https://chromium.googlesource.com/chromium/src/+/refs/tags/73.0.3683.121/chrome/test/chromedriver/server/http_handler.cc#744",
|
|
424
|
+
"parameters": [{
|
|
425
|
+
"name": "sinkName",
|
|
426
|
+
"type": "string",
|
|
427
|
+
"description": "The name of the target device.",
|
|
428
|
+
"required": true
|
|
429
|
+
}]
|
|
430
|
+
}
|
|
431
|
+
},
|
|
367
432
|
"/shutdown": {
|
|
368
433
|
"POST": {
|
|
369
434
|
"command": "shutdown",
|
package/protocols/gecko.json
CHANGED
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
{
|
|
2
|
+
"/session/:sessionId/moz/screenshot/full": {
|
|
3
|
+
"GET": {
|
|
4
|
+
"command": "fullPageScreenshot",
|
|
5
|
+
"description": "Captures a screenshot of the entire page.",
|
|
6
|
+
"ref": "https://phabricator.services.mozilla.com/source/mozilla-central/browse/default/testing/geckodriver/src/command.rs$43-46",
|
|
7
|
+
"parameters": [],
|
|
8
|
+
"returns": {
|
|
9
|
+
"type": "String",
|
|
10
|
+
"name": "screenshot",
|
|
11
|
+
"description": "The base64-encoded PNG image data comprising the screenshot of the full page."
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
},
|
|
2
15
|
"/session/:sessionId/moz/context": {
|
|
3
16
|
"GET": {
|
|
4
17
|
"command": "getMozContext",
|
package/protocols/webdriver.json
CHANGED
|
@@ -374,8 +374,16 @@
|
|
|
374
374
|
"/session/:sessionId/element": {
|
|
375
375
|
"POST": {
|
|
376
376
|
"command": "findElement",
|
|
377
|
-
"description": "The Find Element command is used to find an element in the current browsing context that can be used for future commands.",
|
|
377
|
+
"description": "The Find Element command is used to find an element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element.",
|
|
378
378
|
"ref": "https://w3c.github.io/webdriver/#dfn-find-element",
|
|
379
|
+
"examples": [
|
|
380
|
+
[
|
|
381
|
+
"// get element",
|
|
382
|
+
"const elementRef = await browser.findElement('xpath', '//div')",
|
|
383
|
+
"const element = await $(elementRef)",
|
|
384
|
+
"await element.click()"
|
|
385
|
+
]
|
|
386
|
+
],
|
|
379
387
|
"parameters": [{
|
|
380
388
|
"name": "using",
|
|
381
389
|
"type": "string",
|
|
@@ -390,14 +398,56 @@
|
|
|
390
398
|
"returns": {
|
|
391
399
|
"type": "object",
|
|
392
400
|
"name": "element",
|
|
393
|
-
"description": "A JSON representation of an element object."
|
|
401
|
+
"description": "A JSON representation of an element object, e.g. `{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`."
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"/session/:sessionId/shadow/:shadowId/element": {
|
|
406
|
+
"POST": {
|
|
407
|
+
"command": "findElementFromShadowRoot",
|
|
408
|
+
"description": "The Find Element From Shadow Root command is used to find an element within the shadow root of an element that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element.",
|
|
409
|
+
"ref": "https://w3c.github.io/webdriver/#find-element-from-shadow-root",
|
|
410
|
+
"examples": [
|
|
411
|
+
[
|
|
412
|
+
"// get shadow root",
|
|
413
|
+
"const element = await browser.findElement('xpath', '//div')",
|
|
414
|
+
"const shadowRoot = await browser.getElementShadowRoot(",
|
|
415
|
+
" element['element-6066-11e4-a52e-4f735466cecf']",
|
|
416
|
+
")",
|
|
417
|
+
"// fetch element within that shadow root",
|
|
418
|
+
"const elementRef = await browser.findElementFromShadowRoot(",
|
|
419
|
+
" shadowRoot['shadow-6066-11e4-a52e-4f735466cecf'],",
|
|
420
|
+
" 'xpath',",
|
|
421
|
+
" '//div'",
|
|
422
|
+
")"
|
|
423
|
+
]
|
|
424
|
+
],
|
|
425
|
+
"variables": [{
|
|
426
|
+
"name": "shadowId",
|
|
427
|
+
"description": "element id of a shadow root element"
|
|
428
|
+
}],
|
|
429
|
+
"parameters": [{
|
|
430
|
+
"name": "using",
|
|
431
|
+
"type": "string",
|
|
432
|
+
"description": "a valid element location strategy",
|
|
433
|
+
"required": true
|
|
434
|
+
}, {
|
|
435
|
+
"name": "value",
|
|
436
|
+
"type": "string",
|
|
437
|
+
"description": "the actual selector that will be used to find an element",
|
|
438
|
+
"required": true
|
|
439
|
+
}],
|
|
440
|
+
"returns": {
|
|
441
|
+
"type": "object",
|
|
442
|
+
"name": "element",
|
|
443
|
+
"description": "A JSON representation of an element shadow object, e.g. `{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`."
|
|
394
444
|
}
|
|
395
445
|
}
|
|
396
446
|
},
|
|
397
447
|
"/session/:sessionId/elements": {
|
|
398
448
|
"POST": {
|
|
399
449
|
"command": "findElements",
|
|
400
|
-
"description": "The Find Elements command is used to find elements in the current browsing context that can be used for future commands.",
|
|
450
|
+
"description": "The Find Elements command is used to find elements in the current browsing context that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).",
|
|
401
451
|
"ref": "https://w3c.github.io/webdriver/#dfn-find-elements",
|
|
402
452
|
"parameters": [{
|
|
403
453
|
"name": "using",
|
|
@@ -413,14 +463,56 @@
|
|
|
413
463
|
"returns": {
|
|
414
464
|
"type": "object[]",
|
|
415
465
|
"name": "elements",
|
|
416
|
-
"description": "A (possibly empty) JSON list of representations of an element object."
|
|
466
|
+
"description": "A (possibly empty) JSON list of representations of an element object, e.g. `[{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }]`."
|
|
467
|
+
}
|
|
468
|
+
}
|
|
469
|
+
},
|
|
470
|
+
"/session/:sessionId/shadow/:shadowId/elements": {
|
|
471
|
+
"POST": {
|
|
472
|
+
"command": "findElementsFromShadowRoot",
|
|
473
|
+
"description": "The Find Elements command is used to find elements within the shadow root of an element that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).",
|
|
474
|
+
"ref": "https://w3c.github.io/webdriver/#find-elements-from-shadow-root",
|
|
475
|
+
"variables": [{
|
|
476
|
+
"name": "shadowId",
|
|
477
|
+
"description": "element id of a shadow root element"
|
|
478
|
+
}],
|
|
479
|
+
"parameters": [{
|
|
480
|
+
"name": "using",
|
|
481
|
+
"type": "string",
|
|
482
|
+
"description": "a valid element location strategy",
|
|
483
|
+
"required": true
|
|
484
|
+
}, {
|
|
485
|
+
"name": "value",
|
|
486
|
+
"type": "string",
|
|
487
|
+
"description": "the actual selector that will be used to find an element",
|
|
488
|
+
"required": true
|
|
489
|
+
}],
|
|
490
|
+
"examples": [
|
|
491
|
+
[
|
|
492
|
+
"// get shadow root",
|
|
493
|
+
"const element = await browser.findElement('xpath', '//div')",
|
|
494
|
+
"const shadowRoot = await browser.getElementShadowRoot(",
|
|
495
|
+
" element['element-6066-11e4-a52e-4f735466cecf']",
|
|
496
|
+
")",
|
|
497
|
+
"// fetch elements within that shadow root",
|
|
498
|
+
"const elementRef = await browser.findElementsFromShadowRoot(",
|
|
499
|
+
" shadowRoot['shadow-6066-11e4-a52e-4f735466cecf'],",
|
|
500
|
+
" 'xpath',",
|
|
501
|
+
" '//div'",
|
|
502
|
+
")"
|
|
503
|
+
]
|
|
504
|
+
],
|
|
505
|
+
"returns": {
|
|
506
|
+
"type": "object[]",
|
|
507
|
+
"name": "elements",
|
|
508
|
+
"description": "A (possibly empty) JSON list of representations of an element object, e.g. `{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`."
|
|
417
509
|
}
|
|
418
510
|
}
|
|
419
511
|
},
|
|
420
512
|
"/session/:sessionId/element/:elementId/element": {
|
|
421
513
|
"POST": {
|
|
422
514
|
"command": "findElementFromElement",
|
|
423
|
-
"description": "The Find Element From Element command is used to find an element from a web element in the current browsing context that can be used for future commands.",
|
|
515
|
+
"description": "The Find Element From Element command is used to find an element from a web element in the current browsing context that can be used for future commands. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).",
|
|
424
516
|
"ref": "https://w3c.github.io/webdriver/#dfn-find-element-from-element",
|
|
425
517
|
"variables": [{
|
|
426
518
|
"name": "elementId",
|
|
@@ -440,14 +532,14 @@
|
|
|
440
532
|
"returns": {
|
|
441
533
|
"type": "object",
|
|
442
534
|
"name": "element",
|
|
443
|
-
"description": "A JSON representation of an element object."
|
|
535
|
+
"description": "A JSON representation of an element object, e.g. `{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`."
|
|
444
536
|
}
|
|
445
537
|
}
|
|
446
538
|
},
|
|
447
539
|
"/session/:sessionId/element/:elementId/elements": {
|
|
448
540
|
"POST": {
|
|
449
541
|
"command": "findElementsFromElement",
|
|
450
|
-
"description": "The Find Elements From Element command is used to find elements from a web element in the current browsing context that can be used for future commands.",
|
|
542
|
+
"description": "The Find Elements From Element command is used to find elements from a web element in the current browsing context that can be used for future commands. This command returns array of JSON representation of the elements that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).",
|
|
451
543
|
"ref": "https://w3c.github.io/webdriver/#dfn-find-elements-from-element",
|
|
452
544
|
"variables": [{
|
|
453
545
|
"name": "elementId",
|
|
@@ -467,20 +559,37 @@
|
|
|
467
559
|
"returns": {
|
|
468
560
|
"type": "object[]",
|
|
469
561
|
"name": "elements",
|
|
470
|
-
"description": "A (possibly empty) JSON list of representations of an element object."
|
|
562
|
+
"description": "A (possibly empty) JSON list of representations of an element object, e.g. `[{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }]`."
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
},
|
|
566
|
+
"/session/:sessionId/element/:elementId/shadow": {
|
|
567
|
+
"GET": {
|
|
568
|
+
"command": "getElementShadowRoot",
|
|
569
|
+
"description": "Get the shadow root object of an element. The result object can be used to fetch elements within this shadow root using e.g. findElementFromShadowRoots or findElementsFromShadowRoots.",
|
|
570
|
+
"ref": "https://w3c.github.io/webdriver/#dfn-get-active-element",
|
|
571
|
+
"variables": [{
|
|
572
|
+
"name": "elementId",
|
|
573
|
+
"description": "the id of an element returned in a previous call to Find Element(s)"
|
|
574
|
+
}],
|
|
575
|
+
"parameters": [],
|
|
576
|
+
"returns": {
|
|
577
|
+
"type": "string",
|
|
578
|
+
"name": "element",
|
|
579
|
+
"description": "A JSON representation of an element shadow root, e.g. `{ 'shadow-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`."
|
|
471
580
|
}
|
|
472
581
|
}
|
|
473
582
|
},
|
|
474
583
|
"/session/:sessionId/element/active": {
|
|
475
584
|
"GET": {
|
|
476
585
|
"command": "getActiveElement",
|
|
477
|
-
"description": "Get Active Element returns the active element of the current browsing context’s document element.",
|
|
586
|
+
"description": "Get Active Element returns the active element of the current browsing context’s document element. This command returns JSON representation of the element that can be passed to $ command to transform the reference to an extended WebdriverIO element (See findElement).",
|
|
478
587
|
"ref": "https://w3c.github.io/webdriver/#dfn-get-active-element",
|
|
479
588
|
"parameters": [],
|
|
480
589
|
"returns": {
|
|
481
590
|
"type": "string",
|
|
482
591
|
"name": "element",
|
|
483
|
-
"description": "A JSON representation of an element object."
|
|
592
|
+
"description": "A JSON representation of an element object, e.g. `{ 'element-6066-11e4-a52e-4f735466cecf': 'ELEMENT_1' }`."
|
|
484
593
|
}
|
|
485
594
|
}
|
|
486
595
|
},
|