browsertime 14.17.0 → 14.18.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 +9 -0
- package/lib/core/seleniumRunner.js +17 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
## 14.18.0 - 2022-01-24
|
|
4
|
+
### Added
|
|
5
|
+
* Updated to Edge stable in the Docker container.
|
|
6
|
+
|
|
7
|
+
### Fixed
|
|
8
|
+
* A more safe way to get dockumentURI for Firefox. See PR [#1699](https://github.com/sitespeedio/browsertime/pull/1699) and bug [#1698](https://github.com/sitespeedio/browsertime/issues/1698).
|
|
9
|
+
|
|
3
10
|
## 14.17.0 - 2022-01-23
|
|
4
11
|
### Added
|
|
5
12
|
* New Select command [#1696](https://github.com/sitespeedio/browsertime/pull/1696):
|
|
@@ -13,6 +20,8 @@
|
|
|
13
20
|
|
|
14
21
|
* New click by name command `click.byName(name)` [#1697](https://github.com/sitespeedio/browsertime/pull/1697).
|
|
15
22
|
|
|
23
|
+
### Fixed
|
|
24
|
+
* Remove the top 10 rows of the image to handle progress bars on some mobile browser recordings. Thank you [Gregory Mierzwinski](https://github.com/gmierz) for PR [#1687](https://github.com/sitespeedio/browsertime/pull/1687).
|
|
16
25
|
|
|
17
26
|
## 14.16.0 - 2022-01-14
|
|
18
27
|
### Added
|
|
@@ -222,9 +222,23 @@ class SeleniumRunner {
|
|
|
222
222
|
// query parameters, order fragments, etc. We don't want to change url itself 'cuz it can be
|
|
223
223
|
// used for indexing collected data and it is possible that normalization could change a key.
|
|
224
224
|
const normalizedURI = new URL(url).toString();
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
225
|
+
|
|
226
|
+
// See https://github.com/sitespeedio/browsertime/issues/1698
|
|
227
|
+
const retries = 5;
|
|
228
|
+
let documentURI;
|
|
229
|
+
for (var i = 0; i < retries; i++) {
|
|
230
|
+
documentURI = await driver.executeScript('return document.documentURI;');
|
|
231
|
+
if (documentURI != null) {
|
|
232
|
+
break;
|
|
233
|
+
}
|
|
234
|
+
await delay(1000);
|
|
235
|
+
}
|
|
236
|
+
let startURI;
|
|
237
|
+
try {
|
|
238
|
+
startURI = new URL(documentURI).toString();
|
|
239
|
+
} catch (e) {
|
|
240
|
+
log.error(`Failed to get documentURI ${documentURI}`, e);
|
|
241
|
+
}
|
|
228
242
|
if (this.options.webdriverPageload) {
|
|
229
243
|
const clearOrange = `(function() {
|
|
230
244
|
const orange = document.getElementById('browsertime-orange');
|