browsertime 16.9.0 → 16.10.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/CHANGELOG.md +15 -0
- package/lib/chrome/chromeDevtoolsProtocol.js +1 -1
- package/lib/chrome/settings/chromeDesktopOptions.js +1 -2
- package/lib/chrome/webdriver/setupChromiumOptions.js +3 -0
- package/lib/connectivity/index.js +2 -1
- package/lib/core/engine/index.js +4 -0
- package/lib/core/seleniumRunner.js +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## 16.10.1 - 2022-06-26
|
|
5
|
+
|
|
6
|
+
### Fixed
|
|
7
|
+
* Verify that the CDP port is free before using it [1811](https://github.com/sitespeedio/browsertime/pull/1811).
|
|
8
|
+
|
|
9
|
+
## 16.10.0 - 2022-06-23
|
|
10
|
+
### Added
|
|
11
|
+
* Upgraded the Docker container to use Chrome 103.
|
|
12
|
+
* Upgraded to Chromedriver 103.
|
|
13
|
+
|
|
14
|
+
## 16.9.1 - 2022-06-19
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
* Upgraded to Throttle 4 that internally uses `ip route` instead of `route` (one less dependency) [#1767](https://github.com/sitespeedio/browsertime/pull/1767).
|
|
3
18
|
## 16.9.0 - 2022-06-15
|
|
4
19
|
### Added
|
|
5
20
|
* New `wait.byCondition` command. Thank you [Icecold777](https://github.com/Icecold777) for PR [#1803](https://github.com/sitespeedio/browsertime/pull/1803).
|
|
@@ -56,7 +56,7 @@ class ChromeDevtoolsProtocol {
|
|
|
56
56
|
port: this.options.devToolsPort
|
|
57
57
|
});
|
|
58
58
|
} else {
|
|
59
|
-
this.cdpClient = await CDP({});
|
|
59
|
+
this.cdpClient = await CDP({ port: this.options.devToolsPort });
|
|
60
60
|
}
|
|
61
61
|
// Enable what's needs to be enabled
|
|
62
62
|
// Page is needed to inject JS to a page
|
|
@@ -129,6 +129,9 @@ module.exports = function (seleniumOptions, browserOptions, options, baseDir) {
|
|
|
129
129
|
} else {
|
|
130
130
|
if (!browserOptions.noDefaultOptions) {
|
|
131
131
|
seleniumOptions.addArguments(defaultChromeOptions);
|
|
132
|
+
seleniumOptions.addArguments(
|
|
133
|
+
'--remote-debugging-port=' + options.devToolsPort
|
|
134
|
+
);
|
|
132
135
|
} else {
|
|
133
136
|
log.info('Skip setting default options for Chrome');
|
|
134
137
|
}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
const trafficShapeParser = require('./trafficShapeParser');
|
|
4
4
|
const get = require('lodash.get');
|
|
5
|
-
const throttle = require('@sitespeed.io/throttle');
|
|
6
5
|
const log = require('intel').getLogger('browsertime.connectivity');
|
|
7
6
|
const Humble = require('./humble');
|
|
8
7
|
|
|
@@ -56,6 +55,7 @@ module.exports = {
|
|
|
56
55
|
profile.rtt
|
|
57
56
|
);
|
|
58
57
|
}
|
|
58
|
+
const throttle = await import('@sitespeed.io/throttle');
|
|
59
59
|
if (setOnLocalHost) {
|
|
60
60
|
return throttle.start({
|
|
61
61
|
localhost: true,
|
|
@@ -91,6 +91,7 @@ module.exports = {
|
|
|
91
91
|
}
|
|
92
92
|
case 'throttle': {
|
|
93
93
|
const setOnLocalHost = get(connectivity, 'throttle.localhost', false);
|
|
94
|
+
const throttle = await import('@sitespeed.io/throttle');
|
|
94
95
|
return throttle.stop({ localhost: setOnLocalHost });
|
|
95
96
|
}
|
|
96
97
|
case 'humble': {
|
package/lib/core/engine/index.js
CHANGED
|
@@ -188,7 +188,7 @@ class SeleniumRunner {
|
|
|
188
188
|
} catch (e) {
|
|
189
189
|
if (e instanceof TimeoutError) {
|
|
190
190
|
log.info(
|
|
191
|
-
`The page did not
|
|
191
|
+
`The page did not finished loading in ${pageCompleteCheckTimeout} ms. You can adjust the timeout by setting the --maxLoadTime option (in ms).`
|
|
192
192
|
);
|
|
193
193
|
} else {
|
|
194
194
|
log.error(
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "Browsertime",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.10.1",
|
|
4
4
|
"bin": "./bin/browsertime.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@cypress/xvfb": "1.2.4",
|
|
7
7
|
"@devicefarmer/adbkit": "2.11.3",
|
|
8
|
-
"@sitespeed.io/chromedriver": "
|
|
8
|
+
"@sitespeed.io/chromedriver": "103.0.5060-24",
|
|
9
9
|
"@sitespeed.io/edgedriver": "101.0.1210-32",
|
|
10
10
|
"@sitespeed.io/geckodriver": "0.31.0",
|
|
11
|
-
"@sitespeed.io/throttle": "
|
|
11
|
+
"@sitespeed.io/throttle": "4.0.1",
|
|
12
12
|
"@sitespeed.io/tracium": "0.3.3",
|
|
13
13
|
"btoa": "1.2.1",
|
|
14
14
|
"chrome-har": "0.13.0",
|