webdriverio 8.36.0 → 8.37.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,KAAK,cAAc,MAAM,WAAW,CAAA;AAGhD,OAAO,wBAAwB,MAAM,+BAA+B,CAAA;AAKpE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAG9D,cAAc,YAAY,CAAA;AAC1B,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAA;AAC9B,eAAO,MAAM,kBAAkB,iCAA2B,CAAA;AAE1D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,WACP,aAAa,mBACJ,CAAC,MAAM,EAAE,eAAe,MAAM,EAAE,OAAO,EAAE,QAAQ,WAAW,KAAK,eAAe,MAAM,KACxG,QAAQ,YAAY,OAAO,CAwC7B,CAAA;AAED,eAAO,MAAM,MAAM,kBAAkC,aAAa,KAAG,QAAQ,YAAY,OAAO,CAsB/F,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,WACZ,aAAa,uBAAuB,2BACpB;IAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAAE,KACxD,QAAQ,YAAY,kBAAkB,CAgExC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AACxD,OAAO,KAAK,KAAK,cAAc,MAAM,WAAW,CAAA;AAGhD,OAAO,wBAAwB,MAAM,+BAA+B,CAAA;AAKpE,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,YAAY,CAAA;AAG9D,cAAc,YAAY,CAAA;AAC1B,eAAO,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAc,CAAA;AAC9B,eAAO,MAAM,kBAAkB,iCAA2B,CAAA;AAE1D;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,MAAM,WACP,aAAa,mBACJ,CAAC,MAAM,EAAE,eAAe,MAAM,EAAE,OAAO,EAAE,QAAQ,WAAW,KAAK,eAAe,MAAM,KACxG,QAAQ,YAAY,OAAO,CA2C7B,CAAA;AAED,eAAO,MAAM,MAAM,kBAAkC,aAAa,KAAG,QAAQ,YAAY,OAAO,CAsB/F,CAAA;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,WAAW,WACZ,aAAa,uBAAuB,2BACpB;IAAE,kBAAkB,CAAC,EAAE,MAAM,CAAA;CAAE,KACxD,QAAQ,YAAY,kBAAkB,CAgExC,CAAA"}
package/build/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import logger from '@wdio/logger';
2
2
  import WebDriver, { DEFAULTS } from 'webdriver';
3
3
  import { validateConfig } from '@wdio/config';
4
- import { wrapCommand } from '@wdio/utils';
4
+ import { enableFileLogging, wrapCommand } from '@wdio/utils';
5
5
  import MultiRemote from './multiremote.js';
6
6
  import SevereServiceErrorImport from './utils/SevereServiceError.js';
7
7
  import detectBackend from './utils/detectBackend.js';
@@ -25,9 +25,10 @@ export const SevereServiceError = SevereServiceErrorImport;
25
25
  * @see <a href="https://webdriver.io/docs/typescript">Typescript setup</a>
26
26
  */
27
27
  export const remote = async function (params, remoteModifier) {
28
- logger.setLogLevelsConfig(params.logLevels, params.logLevel);
29
28
  const keysToKeep = Object.keys(process.env.WDIO_WORKER_ID ? params : DEFAULTS);
30
29
  const config = validateConfig(WDIO_DEFAULTS, params, keysToKeep);
30
+ await enableFileLogging(config.outputDir);
31
+ logger.setLogLevelsConfig(config.logLevels, config.logLevel);
31
32
  const modifier = (client, options) => {
32
33
  /**
33
34
  * overwrite instance options with default values of the protocol
@@ -169,8 +169,8 @@ export const findStrategy = function (selector, isW3C, isMobile) {
169
169
  `.//textarea[@id = (//label[normalize-space() = "${label}"]/@for)]`,
170
170
  // input and textarea with a label as parent
171
171
  // https://www.w3.org/TR/accname-1.1/#step2D
172
- `.//input[//ancestor::label[normalize-space(text()) = "${label}"]]`,
173
- `.//textarea[//ancestor::label[normalize-space(text()) = "${label}"]]`,
172
+ `.//input[ancestor::label[normalize-space(text()) = "${label}"]]`,
173
+ `.//textarea[ancestor::label[normalize-space(text()) = "${label}"]]`,
174
174
  // aria label is received by a placeholder
175
175
  // https://www.w3.org/TR/accname-1.1/#step2D
176
176
  `.//input[@placeholder="${label}"]`,
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": "8.36.0",
4
+ "version": "8.37.0",
5
5
  "homepage": "https://webdriver.io",
6
6
  "author": "Christian Bromann <mail@bromann.dev>",
7
7
  "license": "MIT",
@@ -69,17 +69,17 @@
69
69
  },
70
70
  "dependencies": {
71
71
  "@types/node": "^20.1.0",
72
- "@wdio/config": "8.36.0",
72
+ "@wdio/config": "8.37.0",
73
73
  "@wdio/logger": "8.28.0",
74
74
  "@wdio/protocols": "8.32.0",
75
75
  "@wdio/repl": "8.24.12",
76
- "@wdio/types": "8.36.0",
77
- "@wdio/utils": "8.36.0",
76
+ "@wdio/types": "8.37.0",
77
+ "@wdio/utils": "8.37.0",
78
78
  "archiver": "^7.0.0",
79
79
  "aria-query": "^5.0.0",
80
80
  "css-shorthand-properties": "^1.1.1",
81
81
  "css-value": "^0.0.1",
82
- "devtools-protocol": "^0.0.1282316",
82
+ "devtools-protocol": "^0.0.1302984",
83
83
  "grapheme-splitter": "^1.0.2",
84
84
  "import-meta-resolve": "^4.0.0",
85
85
  "is-plain-obj": "^4.1.0",
@@ -91,7 +91,7 @@
91
91
  "resq": "^1.9.1",
92
92
  "rgb2hex": "0.2.5",
93
93
  "serialize-error": "^11.0.1",
94
- "webdriver": "8.36.0"
94
+ "webdriver": "8.37.0"
95
95
  },
96
96
  "peerDependencies": {
97
97
  "devtools": "^8.14.0"
@@ -101,5 +101,5 @@
101
101
  "optional": true
102
102
  }
103
103
  },
104
- "gitHead": "bc4e87f18f8f3cd8293734264f3ffb1e6a194cd7"
104
+ "gitHead": "cefb415aa315075fb6b682c6d059d9ff37fbefb8"
105
105
  }