@wdio/protocols 8.22.0 → 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.
@@ -55,19 +55,19 @@ export default interface SaucelabsCommands {
55
55
  * @example
56
56
  * ```js
57
57
  * // predefined network condition
58
- * browser.throttleNetwork('offline')
58
+ * browser.sauceThrottleNetwork('offline')
59
59
  * ```*
60
60
  * @example
61
61
  * ```js
62
62
  * // custom network condition
63
- * browser.throttleNetwork({
63
+ * browser.sauceThrottleNetwork({
64
64
  * download: 1000,
65
65
  * upload: 500,
66
66
  * latency: 40'
67
67
  * })
68
68
  * ```
69
69
  */
70
- throttleNetwork(condition: (string | object)): Promise<void>;
70
+ sauceThrottleNetwork(condition: (string | object)): Promise<void>;
71
71
  /**
72
72
  * Saucelabs Protocol Command
73
73
  *
@@ -1 +1 @@
1
- {"version":3,"file":"saucelabs.d.ts","sourceRoot":"","sources":["../../src/commands/saucelabs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAA;AAG1D,MAAM,CAAC,OAAO,WAAW,iBAAiB;IAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4CG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAE5D;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,eAAe,CAAC,SAAS,EAAE,CAAC,MAAM,GAAC,MAAM,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3D;;;;;;;;;;;;;;;;OAgBG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9C;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAwCG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE9C;;;;;;;;;;;;;;;OAeG;IACH,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAEtF;;;;;;;;;;;;OAYG;IACH,cAAc,IAAI,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAEnD;;;;;;OAMG;IACH,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAEnF;;;;;;OAMG;IACH,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;IAE/D;;;;;;OAMG;IACH,cAAc,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjE;;;;;;OAMG;IACH,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/D"}
@@ -1036,7 +1036,7 @@ export default {
1036
1036
  returns: {
1037
1037
  type: 'String',
1038
1038
  name: 'orientation',
1039
- description: 'The current browser orientation corresponding to a value defined in ScreenOrientation: {LANDSCAPE|PORTRAIT}.',
1039
+ description: 'The current browser orientation corresponding to a value defined in ScreenOrientation: `LANDSCAPE|PORTRAIT`.',
1040
1040
  },
1041
1041
  },
1042
1042
  POST: {
@@ -1048,7 +1048,7 @@ export default {
1048
1048
  {
1049
1049
  name: 'orientation',
1050
1050
  type: 'string',
1051
- description: 'the new browser orientation as defined in ScreenOrientation: {LANDSCAPE|PORTRAIT}',
1051
+ description: 'the new browser orientation as defined in ScreenOrientation: `LANDSCAPE|PORTRAIT`',
1052
1052
  required: true,
1053
1053
  },
1054
1054
  ],
@@ -59,17 +59,17 @@ export default {
59
59
  },
60
60
  '/session/:sessionId/sauce/ondemand/throttle/network': {
61
61
  POST: {
62
- command: 'throttleNetwork',
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.throttleNetwork('offline')",
68
+ "browser.sauceThrottleNetwork('offline')",
69
69
  ],
70
70
  [
71
71
  '// custom network condition',
72
- 'browser.throttleNetwork({',
72
+ 'browser.sauceThrottleNetwork({',
73
73
  ' download: 1000,',
74
74
  ' upload: 500,',
75
75
  " latency: 40'",