webdriverio 8.0.6 → 8.0.7
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":"getPuppeteer.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getPuppeteer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iDAAiD,CAAA;AAO7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAA8B,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"getPuppeteer.d.ts","sourceRoot":"","sources":["../../../src/commands/browser/getPuppeteer.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,iDAAiD,CAAA;AAO7F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAA8B,YAAY,CAAE,IAAI,EAAE,WAAW,CAAC,OAAO,6BA6FpE"}
|
|
@@ -92,16 +92,26 @@ export default async function getPuppeteer() {
|
|
|
92
92
|
const majorVersion = parseInt(caps.browserVersion.split('.').shift() || '', 10);
|
|
93
93
|
if (majorVersion >= 79) {
|
|
94
94
|
const reqCaps = this.requestedCapabilities.alwaysMatch || this.requestedCapabilities;
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
95
|
+
let browserURL;
|
|
96
|
+
if (caps['moz:debuggerAddress']) {
|
|
97
|
+
browserURL = caps['moz:debuggerAddress'];
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
const ffOptions = caps['moz:firefoxOptions'];
|
|
101
|
+
const ffArgs = reqCaps['moz:firefoxOptions']?.args || [];
|
|
102
|
+
const rdPort = ffOptions && ffOptions.debuggerAddress
|
|
103
|
+
? ffOptions.debuggerAddress
|
|
104
|
+
: ffArgs[ffArgs.findIndex((arg) => arg === FF_REMOTE_DEBUG_ARG) + 1];
|
|
105
|
+
if (rdPort) {
|
|
106
|
+
browserURL = `http://localhost:${rdPort}`;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
if (!browserURL) {
|
|
110
|
+
throw new Error('Could\'t find a websocket url within returned capabilities to connect to! ' +
|
|
111
|
+
'Make sure you have "moz:debuggerAddress" set to `true` in your Firefox capabilities');
|
|
102
112
|
}
|
|
103
113
|
this.puppeteer = await puppeteer.connect({
|
|
104
|
-
browserURL
|
|
114
|
+
browserURL,
|
|
105
115
|
defaultViewport: null
|
|
106
116
|
});
|
|
107
117
|
return this.puppeteer;
|
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.0.
|
|
4
|
+
"version": "8.0.7",
|
|
5
5
|
"homepage": "https://webdriver.io",
|
|
6
6
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -66,18 +66,18 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@types/aria-query": "^5.0.0",
|
|
68
68
|
"@types/node": "^18.0.0",
|
|
69
|
-
"@wdio/config": "8.0.
|
|
70
|
-
"@wdio/globals": "8.0.
|
|
69
|
+
"@wdio/config": "8.0.7",
|
|
70
|
+
"@wdio/globals": "8.0.7",
|
|
71
71
|
"@wdio/logger": "8.0.0",
|
|
72
72
|
"@wdio/protocols": "8.0.0",
|
|
73
73
|
"@wdio/repl": "8.0.0",
|
|
74
|
-
"@wdio/types": "8.0.
|
|
75
|
-
"@wdio/utils": "8.0.
|
|
74
|
+
"@wdio/types": "8.0.7",
|
|
75
|
+
"@wdio/utils": "8.0.7",
|
|
76
76
|
"archiver": "^5.0.0",
|
|
77
77
|
"aria-query": "^5.0.0",
|
|
78
78
|
"css-shorthand-properties": "^1.1.1",
|
|
79
79
|
"css-value": "^0.0.1",
|
|
80
|
-
"devtools": "8.0.
|
|
80
|
+
"devtools": "8.0.7",
|
|
81
81
|
"devtools-protocol": "^0.0.1078443",
|
|
82
82
|
"grapheme-splitter": "^1.0.2",
|
|
83
83
|
"import-meta-resolve": "^2.1.0",
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
"resq": "^1.9.1",
|
|
91
91
|
"rgb2hex": "0.2.5",
|
|
92
92
|
"serialize-error": "^8.0.0",
|
|
93
|
-
"webdriver": "8.0.
|
|
93
|
+
"webdriver": "8.0.7"
|
|
94
94
|
},
|
|
95
|
-
"gitHead": "
|
|
95
|
+
"gitHead": "a874a82a727634d1323fff05c17455ba0907a020"
|
|
96
96
|
}
|