webdriverio 7.7.0 → 7.7.5

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.
@@ -23,12 +23,12 @@ import { Browser as PuppeteerBrowser } from 'puppeteer-core/lib/cjs/puppeteer/co
23
23
  const puppeteerBrowser = browser.getPuppeteer()
24
24
  // switch to Puppeteer
25
25
  const metrics = browser.call(async () => {
26
- await pages = await puppeteerBrowser.pages()
26
+ const pages = await puppeteerBrowser.pages()
27
27
  pages[0].setGeolocation({ latitude: 59.95, longitude: 30.31667 })
28
28
  return pages[0].metrics()
29
29
  })
30
30
 
31
- console.log(metrics.LayoutCount) // returns 42
31
+ console.log(metrics.LayoutCount) // returns LayoutCount value
32
32
  })
33
33
  * </example>
34
34
  *
@@ -31,12 +31,12 @@ const log = logger_1.default('webdriverio');
31
31
  const puppeteerBrowser = browser.getPuppeteer()
32
32
  // switch to Puppeteer
33
33
  const metrics = browser.call(async () => {
34
- await pages = await puppeteerBrowser.pages()
34
+ const pages = await puppeteerBrowser.pages()
35
35
  pages[0].setGeolocation({ latitude: 59.95, longitude: 30.31667 })
36
36
  return pages[0].metrics()
37
37
  })
38
38
 
39
- console.log(metrics.LayoutCount) // returns 42
39
+ console.log(metrics.LayoutCount) // returns LayoutCount value
40
40
  })
41
41
  * </example>
42
42
  *
@@ -1,11 +1,11 @@
1
- import { Capabilities } from '@wdio/types';
1
+ import { Capabilities, Options } from '@wdio/types';
2
2
  interface BackendConfigurations {
3
3
  port?: number;
4
4
  hostname?: string;
5
5
  user?: string;
6
6
  key?: string;
7
7
  protocol?: string;
8
- region?: string;
8
+ region?: Options.SauceRegions;
9
9
  headless?: boolean;
10
10
  path?: string;
11
11
  capabilities?: Capabilities.RemoteCapabilities | Capabilities.RemoteCapability;
@@ -1 +1 @@
1
- {"version":3,"file":"detectBackend.d.ts","sourceRoot":"","sources":["../../src/utils/detectBackend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAe1C,UAAU,qBAAqB;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,YAAY,CAAC,kBAAkB,GAAG,YAAY,CAAC,gBAAgB,CAAA;CACjF;AAgBD;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,OAAO,GAAE,qBAA0B;;;;;EAuFxE"}
1
+ {"version":3,"file":"detectBackend.d.ts","sourceRoot":"","sources":["../../src/utils/detectBackend.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAiBnD,UAAU,qBAAqB;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC,YAAY,CAAA;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,YAAY,CAAC,kBAAkB,GAAG,YAAY,CAAC,gBAAgB,CAAA;CACjF;AAgBD;;GAEG;AACH,MAAM,CAAC,OAAO,UAAU,aAAa,CAAC,OAAO,GAAE,qBAA0B;;;;;EAuFxE"}
@@ -9,7 +9,9 @@ const REGION_MAPPING = {
9
9
  'us': 'us-west-1.',
10
10
  'eu': 'eu-central-1.',
11
11
  'eu-central-1': 'eu-central-1.',
12
- 'us-east-1': 'us-east-1.'
12
+ 'us-east-1': 'us-east-1.',
13
+ 'apac': 'apac-southeast-1.',
14
+ 'apac-southeast-1': 'apac-southeast-1',
13
15
  };
14
16
  function getSauceEndpoint(region, { isRDC, isVisual } = {}) {
15
17
  const shortRegion = REGION_MAPPING[region] ? region : 'us';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "webdriverio",
3
3
  "description": "Next-gen browser and mobile automation test framework for Node.js",
4
- "version": "7.7.0",
4
+ "version": "7.7.5",
5
5
  "homepage": "https://webdriver.io",
6
6
  "author": "Christian Bromann <christian@saucelabs.com>",
7
7
  "license": "MIT",
@@ -57,20 +57,20 @@
57
57
  },
58
58
  "dependencies": {
59
59
  "@types/aria-query": "^4.2.1",
60
- "@types/node": "^14.14.31",
61
- "@wdio/config": "7.7.0",
60
+ "@types/node": "^15.12.5",
61
+ "@wdio/config": "7.7.5",
62
62
  "@wdio/logger": "7.7.0",
63
- "@wdio/protocols": "7.5.3",
64
- "@wdio/repl": "7.7.0",
65
- "@wdio/types": "7.7.0",
66
- "@wdio/utils": "7.7.0",
63
+ "@wdio/protocols": "7.7.4",
64
+ "@wdio/repl": "7.7.5",
65
+ "@wdio/types": "7.7.5",
66
+ "@wdio/utils": "7.7.5",
67
67
  "archiver": "^5.0.0",
68
68
  "aria-query": "^4.2.2",
69
69
  "atob": "^2.1.2",
70
70
  "css-shorthand-properties": "^1.1.1",
71
71
  "css-value": "^0.0.1",
72
- "devtools": "7.7.0",
73
- "devtools-protocol": "^0.0.887710",
72
+ "devtools": "7.7.5",
73
+ "devtools-protocol": "^0.0.900357",
74
74
  "fs-extra": "^10.0.0",
75
75
  "get-port": "^5.1.1",
76
76
  "grapheme-splitter": "^1.0.2",
@@ -84,7 +84,7 @@
84
84
  "resq": "^1.9.1",
85
85
  "rgb2hex": "0.2.5",
86
86
  "serialize-error": "^8.0.0",
87
- "webdriver": "7.7.0"
87
+ "webdriver": "7.7.5"
88
88
  },
89
- "gitHead": "cd69ba9a9f2e471b1faeea623473ae6b511e59f3"
89
+ "gitHead": "3cbc9645fdf42e24d6306bc5ac42c34920093970"
90
90
  }