browsertime 16.12.0 → 16.13.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.
- package/CHANGELOG.md +7 -0
- package/lib/chrome/webdriver/builder.js +23 -27
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
## 16.13.0 - 2022-08-08
|
|
4
|
+
### Added
|
|
5
|
+
* Upgraded to Edgedriver 104.
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
* Upgraded to Selenium 4.3.1 [#1824](https://github.com/sitespeedio/browsertime/pull/1824).
|
|
9
|
+
* Upgraded Chrome reomte interface to 0.31.3 [#1825](https://github.com/sitespeedio/browsertime/pull/1825)
|
|
3
10
|
## 16.12.0 - 2022-08-06
|
|
4
11
|
### Added
|
|
5
12
|
* Upgraded to Chrome 104, Edge 104, Firefox 103 in the Docker container.
|
|
@@ -8,7 +8,6 @@ const isEmpty = require('lodash.isempty');
|
|
|
8
8
|
const get = require('lodash.get');
|
|
9
9
|
const setupChromiumOptions = require('./setupChromiumOptions');
|
|
10
10
|
|
|
11
|
-
let hasConfiguredChromeDriverService = false;
|
|
12
11
|
/**
|
|
13
12
|
* Configure a WebDriver builder based on the specified options.
|
|
14
13
|
* @param builder
|
|
@@ -17,34 +16,31 @@ let hasConfiguredChromeDriverService = false;
|
|
|
17
16
|
module.exports.configureBuilder = function (builder, baseDir, options) {
|
|
18
17
|
const chromeConfig = options.chrome || {};
|
|
19
18
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
chromedriverPath = chromedriver.binPath();
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const serviceBuilder = new chrome.ServiceBuilder(chromedriverPath);
|
|
28
|
-
|
|
29
|
-
// Remove the check that matches the Chromedriver version with Chrome version.
|
|
30
|
-
serviceBuilder.addArguments('--disable-build-check');
|
|
31
|
-
|
|
32
|
-
if (options.chrome && options.chrome.chromedriverPort) {
|
|
33
|
-
serviceBuilder.setPort(options.chrome.chromedriverPort);
|
|
34
|
-
}
|
|
35
|
-
if (
|
|
36
|
-
options.verbose >= 2 ||
|
|
37
|
-
chromeConfig.enableChromeDriverLog ||
|
|
38
|
-
chromeConfig.enableVerboseChromeDriverLog
|
|
39
|
-
) {
|
|
40
|
-
serviceBuilder.loggingTo(`${baseDir}/chromedriver.log`);
|
|
41
|
-
if (options.verbose >= 3 || chromeConfig.enableVerboseChromeDriverLog)
|
|
42
|
-
serviceBuilder.enableVerboseLogging();
|
|
43
|
-
}
|
|
44
|
-
chrome.setDefaultService(serviceBuilder.build());
|
|
45
|
-
hasConfiguredChromeDriverService = true;
|
|
19
|
+
let chromedriverPath = get(chromeConfig, 'chromedriverPath');
|
|
20
|
+
if (!chromedriverPath) {
|
|
21
|
+
const chromedriver = require('@sitespeed.io/chromedriver');
|
|
22
|
+
chromedriverPath = chromedriver.binPath();
|
|
46
23
|
}
|
|
47
24
|
|
|
25
|
+
const serviceBuilder = new chrome.ServiceBuilder(chromedriverPath);
|
|
26
|
+
|
|
27
|
+
// Remove the check that matches the Chromedriver version with Chrome version.
|
|
28
|
+
serviceBuilder.addArguments('--disable-build-check');
|
|
29
|
+
|
|
30
|
+
if (options.chrome && options.chrome.chromedriverPort) {
|
|
31
|
+
serviceBuilder.setPort(options.chrome.chromedriverPort);
|
|
32
|
+
}
|
|
33
|
+
if (
|
|
34
|
+
options.verbose >= 2 ||
|
|
35
|
+
chromeConfig.enableChromeDriverLog ||
|
|
36
|
+
chromeConfig.enableVerboseChromeDriverLog
|
|
37
|
+
) {
|
|
38
|
+
serviceBuilder.loggingTo(`${baseDir}/chromedriver.log`);
|
|
39
|
+
if (options.verbose >= 3 || chromeConfig.enableVerboseChromeDriverLog)
|
|
40
|
+
serviceBuilder.enableVerboseLogging();
|
|
41
|
+
}
|
|
42
|
+
builder.setChromeService(serviceBuilder);
|
|
43
|
+
|
|
48
44
|
const proxyPacSettings = pick(options.proxy, ['pac']);
|
|
49
45
|
|
|
50
46
|
if (!isEmpty(proxyPacSettings)) {
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"description": "Browsertime",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.13.0",
|
|
4
4
|
"bin": "./bin/browsertime.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@cypress/xvfb": "1.2.4",
|
|
7
7
|
"@devicefarmer/adbkit": "2.11.3",
|
|
8
8
|
"@sitespeed.io/chromedriver": "104.0.5112-29",
|
|
9
|
-
"@sitespeed.io/edgedriver": "
|
|
9
|
+
"@sitespeed.io/edgedriver": "104.0.1293-47",
|
|
10
10
|
"@sitespeed.io/geckodriver": "0.31.0-c",
|
|
11
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",
|
|
15
|
-
"chrome-remote-interface": "0.31.
|
|
15
|
+
"chrome-remote-interface": "0.31.3",
|
|
16
16
|
"dayjs": "1.11.1",
|
|
17
17
|
"execa": "5.1.1",
|
|
18
18
|
"fast-stats": "0.0.6",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"lodash.merge": "4.6.2",
|
|
27
27
|
"lodash.pick": "4.4.0",
|
|
28
28
|
"lodash.set": "4.3.2",
|
|
29
|
-
"selenium-webdriver": "4.3.
|
|
29
|
+
"selenium-webdriver": "4.3.1",
|
|
30
30
|
"yargs": "17.4.1"
|
|
31
31
|
},
|
|
32
32
|
"optionalDependencies": {
|