@wdio/utils 8.15.4 → 8.15.6
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/driver/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/driver/index.ts"],"names":[],"mappings":";AAGA,OAAO,EAAyB,MAAM,oBAAoB,CAAA;AAO1D,OAAO,EAA8B,KAAK,mBAAmB,IAAI,sBAAsB,EAAE,MAAM,cAAc,CAAA;AAC7G,OAAO,EAA6B,KAAK,qBAAqB,EAAE,MAAM,aAAa,CAAA;AACnF,OAAO,EAA0C,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAA;AAC9F,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAA;AAEzD,OAAO,KAAK,EAAgB,OAAO,EAAE,MAAM,aAAa,CAAA;AAQxD,MAAM,MAAM,sBAAsB,GAAG,cAAc,GAAG,IAAI,CAAC,oBAAoB,EAAE,MAAM,GAAG,mBAAmB,GAAG,sBAAsB,CAAC,CAAA;AACvI,OAAO,CAAC,MAAM,CAAC;IACX,UAAU,WAAW,CAAC;QAClB,UAAU,mBAAoB,SAAQ,sBAAsB;SAAG;QAC/D,UAAU,kBAAmB,SAAQ,IAAI,CAAC,qBAAqB,EAAE,MAAM,CAAC;SAAG;QAC3E,UAAU,iBAAkB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC;SAAG;QACzE,UAAU,mBAAoB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,MAAM,CAAC;SAAG;KAChF;CACJ;AAID,wBAAsB,cAAc,CAAE,OAAO,EAAE,OAAO,CAAC,SAAS,wCA4H/D"}
|
package/build/driver/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import fs from 'node:fs';
|
|
2
|
+
import os from 'node:os';
|
|
2
3
|
import path from 'node:path';
|
|
3
4
|
import cp from 'node:child_process';
|
|
4
5
|
import getPort from 'get-port';
|
|
@@ -7,7 +8,7 @@ import logger from '@wdio/logger';
|
|
|
7
8
|
import { deepmerge } from 'deepmerge-ts';
|
|
8
9
|
import { start as startSafaridriver } from 'safaridriver';
|
|
9
10
|
import { start as startGeckodriver } from 'geckodriver';
|
|
10
|
-
import { start as startEdgedriver } from 'edgedriver';
|
|
11
|
+
import { start as startEdgedriver, findEdgePath } from 'edgedriver';
|
|
11
12
|
import { parseParams, setupChrome, definesRemoteDriver, setupChromedriver, isChrome, isFirefox, isEdge, isSafari, getCacheDir } from './utils.js';
|
|
12
13
|
import { SUPPORTED_BROWSERNAMES } from '../constants.js';
|
|
13
14
|
const log = logger('@wdio/utils');
|
|
@@ -94,6 +95,13 @@ export async function startWebDriver(options) {
|
|
|
94
95
|
* Microsoft Edge is very particular when it comes to browser names
|
|
95
96
|
*/
|
|
96
97
|
caps.browserName = 'MicrosoftEdge';
|
|
98
|
+
/**
|
|
99
|
+
* on Linux set the path to the Edge binary if not already set
|
|
100
|
+
*/
|
|
101
|
+
if (!caps['ms:edgeOptions']?.binary && os.platform() !== 'darwin' && os.platform() !== 'win32') {
|
|
102
|
+
caps['ms:edgeOptions'] = caps['ms:edgeOptions'] || {};
|
|
103
|
+
caps['ms:edgeOptions'].binary = findEdgePath();
|
|
104
|
+
}
|
|
97
105
|
}
|
|
98
106
|
else {
|
|
99
107
|
throw new Error(`Unknown browser name "${caps.browserName}". Make sure to pick from one of the following ` +
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/utils",
|
|
3
|
-
"version": "8.15.
|
|
3
|
+
"version": "8.15.6",
|
|
4
4
|
"description": "A WDIO helper utility to provide several utility functions used across the project.",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-utils",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"chrome-launcher": "^1.0.0",
|
|
37
37
|
"decamelize": "^6.0.0",
|
|
38
38
|
"deepmerge-ts": "^5.1.0",
|
|
39
|
-
"edgedriver": "^5.3.
|
|
39
|
+
"edgedriver": "^5.3.5",
|
|
40
40
|
"geckodriver": "^4.2.0",
|
|
41
41
|
"get-port": "^7.0.0",
|
|
42
42
|
"got": "^13.0.0",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"publishConfig": {
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "c205398c7773823b1eb365a5abeadbcc2fb6b8a3"
|
|
51
51
|
}
|