webdriverio 6.10.11 → 6.12.1

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/README.md CHANGED
@@ -3,7 +3,7 @@ WebdriverIO
3
3
 
4
4
  > Next-gen browser and mobile automation test framework for Node.js
5
5
 
6
- This package provides and easy to manage API and a lot of syntactical sugar on top of the WebDriver specification. You can use WebdriverIO as a standalone package or via a testrunner using [`@wdio/cli`](https://webdriver.io/docs/clioptions.html). WebdriverIO allows to run tests locally using the WebDriver or Chrome DevTools protocol as well as remote user agents using cloud providers like [Sauce Labs](https://saucelabs.com/).
6
+ This package provides an easy to manage API and a lot of syntactical sugar on top of the WebDriver specification. You can use WebdriverIO as a standalone package or via a testrunner using [`@wdio/cli`](https://webdriver.io/docs/clioptions.html). WebdriverIO allows to run tests locally using the WebDriver or Chrome DevTools protocol as well as remote user agents using cloud providers like [Sauce Labs](https://saucelabs.com/).
7
7
 
8
8
  ## Installation
9
9
 
@@ -15,7 +15,7 @@ $ npm install webdriverio
15
15
 
16
16
  ## Usage
17
17
 
18
- WebdriverIO by default uses Puppeteer to automate a browser like Chrome, Firefox or Chromium Edge. So if you have these installs the following script should start a browser for you and get the title of the page:
18
+ WebdriverIO by default uses Puppeteer to automate a browser like Chrome, Firefox or Chromium Edge. So if you have Chrome installed, the following script should start a browser for you and get the title of the page:
19
19
 
20
20
  ```js
21
21
  import { remote } from 'webdriverio'
@@ -1 +1 @@
1
- {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AA8BtD,eAAO,MAAM,WAAW,wCAAwC,CAAA;AAEhE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CAqR7D,CAAA;AAMD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4E9B,CAAA;AAED,eAAO,MAAM,uBAAuB,UAA0E,CAAA;AAE9G,eAAO,MAAM,gBAAgB,UAG5B,CAAA;AACD,eAAO,MAAM,mBAAmB,UAI/B,CAAA;AACD,eAAO,MAAM,2BAA2B,UAWvC,CAAA;AACD,eAAO,MAAM,uBAAuB,UAOnC,CAAA;AACD,eAAO,MAAM,kBAAkB,UAM9B,CAAA;AACD,eAAO,MAAM,uBAAuB;;;;;CAKnC,CAAA;AAED,eAAO,MAAM,mBAAmB,2BAA2B,CAAA;AAE3D,eAAO,MAAM,YAAY,UAKxB,CAAA"}
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAA;AA8BtD,eAAO,MAAM,WAAW,wCAAwC,CAAA;AAEhE,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,mBAAmB,CA8Q7D,CAAA;AAMD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4E9B,CAAA;AAED,eAAO,MAAM,uBAAuB,UAA0E,CAAA;AAE9G,eAAO,MAAM,gBAAgB,UAG5B,CAAA;AACD,eAAO,MAAM,mBAAmB,UAI/B,CAAA;AACD,eAAO,MAAM,2BAA2B,UAWvC,CAAA;AACD,eAAO,MAAM,uBAAuB,UAOnC,CAAA;AACD,eAAO,MAAM,kBAAkB,UAM9B,CAAA;AACD,eAAO,MAAM,uBAAuB;;;;;CAKnC,CAAA;AAED,eAAO,MAAM,mBAAmB,2BAA2B,CAAA;AAE3D,eAAO,MAAM,YAAY,UAKxB,CAAA"}
@@ -146,10 +146,6 @@ exports.WDIO_DEFAULTS = {
146
146
  maxInstancesPerCapability: {
147
147
  type: 'number'
148
148
  },
149
- outputDir: {
150
- type: 'string',
151
- default: process.cwd()
152
- },
153
149
  filesToWatch: {
154
150
  type: 'object',
155
151
  validate: (param) => {
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,SAAuB,MAAM,WAAW,CAAA;AAK/C,OAAO,wBAAwB,MAAM,4BAA4B,CAAA;AAMjE,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAW1D,eAAO,MAAM,MAAM,YAA2B,OAAO,wDAmDpD,CAAA;AAED,eAAO,MAAM,MAAM,WAAqB,UAAU,oBAAoB,8BAGrE,CAAA;AAED,eAAO,MAAM,WAAW,WACZ,kBAAkB;;kBAuD7B,CAAA;AAED,eAAO,MAAM,kBAAkB,iCAA2B,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,SAAuB,MAAM,WAAW,CAAA;AAK/C,OAAO,wBAAwB,MAAM,4BAA4B,CAAA;AAMjE,OAAO,KAAK,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAS1D,eAAO,MAAM,MAAM,YAA2B,OAAO,wDAkDpD,CAAA;AAED,eAAO,MAAM,MAAM,WAAqB,UAAU,oBAAoB,8BAGrE,CAAA;AAED,eAAO,MAAM,WAAW,WACZ,kBAAkB;;kBAuD7B,CAAA;AAED,eAAO,MAAM,kBAAkB,iCAA2B,CAAA"}
package/build/index.js CHANGED
@@ -31,7 +31,6 @@ const multiremote_1 = __importDefault(require("./multiremote"));
31
31
  const SevereServiceError_1 = __importDefault(require("./utils/SevereServiceError"));
32
32
  const constants_1 = require("./constants");
33
33
  const utils_2 = require("./utils");
34
- const log = logger_1.default('webdriverio');
35
34
  exports.remote = async function (params = {}, remoteModifier) {
36
35
  logger_1.default.setLogLevelsConfig(params.logLevels, params.logLevel);
37
36
  const config = config_1.validateConfig(constants_1.WDIO_DEFAULTS, params, Object.keys(webdriver_1.DEFAULTS));
@@ -49,7 +48,6 @@ exports.remote = async function (params = {}, remoteModifier) {
49
48
  params = Object.assign({}, config_1.detectBackend(params), params);
50
49
  }
51
50
  const prototype = utils_2.getPrototype('browser');
52
- log.info(`Initiate new session using the ${automationProtocol} protocol`);
53
51
  const ProtocolDriver = require(automationProtocol).default;
54
52
  await utils_2.updateCapabilities(params, automationProtocol);
55
53
  const instance = await ProtocolDriver.newSession(params, modifier, prototype, utils_1.wrapCommand);
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": "6.10.11",
4
+ "version": "6.12.1",
5
5
  "homepage": "https://webdriver.io",
6
6
  "author": "Christian Bromann <christian@saucelabs.com>",
7
7
  "license": "MIT",
@@ -46,24 +46,26 @@
46
46
  ],
47
47
  "types": "./webdriverio.d.ts",
48
48
  "typeScriptVersion": "3.8.3",
49
- "dependencies": {
49
+ "devDependencies": {
50
50
  "@types/archiver": "^5.1.0",
51
51
  "@types/atob": "^2.1.2",
52
52
  "@types/fs-extra": "^9.0.2",
53
53
  "@types/lodash.clonedeep": "^4.5.6",
54
54
  "@types/lodash.isobject": "^3.0.6",
55
55
  "@types/lodash.isplainobject": "^4.0.6",
56
- "@types/lodash.zip": "^4.2.6",
57
- "@types/puppeteer-core": "^2.0.0",
58
- "@wdio/config": "6.10.11",
56
+ "@types/lodash.zip": "^4.2.6"
57
+ },
58
+ "dependencies": {
59
+ "@types/puppeteer-core": "^5.4.0",
60
+ "@wdio/config": "6.12.1",
59
61
  "@wdio/logger": "6.10.10",
60
- "@wdio/repl": "6.10.11",
61
- "@wdio/utils": "6.10.11",
62
+ "@wdio/repl": "6.11.0",
63
+ "@wdio/utils": "6.11.0",
62
64
  "archiver": "^5.0.0",
63
65
  "atob": "^2.1.2",
64
66
  "css-shorthand-properties": "^1.1.1",
65
67
  "css-value": "^0.0.1",
66
- "devtools": "6.10.11",
68
+ "devtools": "6.12.1",
67
69
  "fs-extra": "^9.0.1",
68
70
  "get-port": "^5.1.1",
69
71
  "grapheme-splitter": "^1.0.2",
@@ -75,8 +77,8 @@
75
77
  "puppeteer-core": "^5.1.0",
76
78
  "resq": "^1.9.1",
77
79
  "rgb2hex": "0.2.3",
78
- "serialize-error": "^7.0.0",
79
- "webdriver": "6.10.11"
80
+ "serialize-error": "^8.0.0",
81
+ "webdriver": "6.12.1"
80
82
  },
81
- "gitHead": "92508043cacac4e2945ba1f599b25b48e8694b62"
83
+ "gitHead": "063970498c9b1142482a1a035aa699c64cc8215c"
82
84
  }
@@ -202,6 +202,10 @@ declare namespace WebdriverIO {
202
202
  * Delay in seconds between the spec file retry attempts
203
203
  */
204
204
  specFileRetriesDelay?: number;
205
+ /**
206
+ * Whether or not retried specfiles should be retried immediately or deferred to the end of the queue
207
+ */
208
+ specFileRetriesDeferred?: boolean
205
209
  /**
206
210
  * Default timeout for all `waitFor*` commands. (Note the lowercase f in the option name.)
207
211
  * This timeout only affects commands starting with `waitFor*` and their default wait time.
@@ -1392,6 +1396,15 @@ declare namespace WebdriverIO {
1392
1396
 
1393
1397
  interface BrowserObject {
1394
1398
  isMultiremote?: false;
1399
+
1400
+ /**
1401
+ * @private
1402
+ */
1403
+ _NOT_FIBER?: boolean
1404
+ /**
1405
+ * @private
1406
+ */
1407
+ wdioRetries?: number
1395
1408
  }
1396
1409
 
1397
1410
  type MultiRemoteBrowserReference = Record<string, BrowserObject>