browsertime 22.10.1 → 22.10.2
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
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
# Browsertime changelog (we do [semantic versioning](https://semver.org))
|
|
2
2
|
|
|
3
|
+
## 22.10.2 - 2024-09-13
|
|
4
|
+
### Fixed
|
|
5
|
+
* Fix for wait.byIdAndVisible command [#2179](https://github.com/sitespeedio/browsertime/pull/2179).
|
|
3
6
|
|
|
4
7
|
## 22.10.1 - 2024-09-04
|
|
5
8
|
### Fixed
|
|
6
9
|
* Upgraded Bidi HAR to 0.0.14 that filters out data:text URLs thar is picked up in Firefox 130 [#2177](https://github.com/sitespeedio/browsertime/pull/2177).
|
|
10
|
+
* Call stopSampling on browser stop during android power testing [#2176](https://github.com/sitespeedio/browsertime/pull/2176).
|
|
7
11
|
|
|
8
12
|
## 22.10.0 - 2024-09-03
|
|
9
13
|
### Added
|
|
@@ -55,12 +55,15 @@ export class Wait {
|
|
|
55
55
|
* @returns {Promise<void>} A promise that resolves when the element is found or the time times out.
|
|
56
56
|
* @throws {Error} Throws an error if the element is not found within the specified time.
|
|
57
57
|
*/
|
|
58
|
-
async byIdAndVisible(id, maxTime) {
|
|
58
|
+
async byIdAndVisible(id, maxTime = 6000) {
|
|
59
59
|
const driver = this.browser.getDriver();
|
|
60
60
|
await this.byId(id, maxTime);
|
|
61
61
|
try {
|
|
62
|
+
driver.findElement;
|
|
62
63
|
await driver.wait(
|
|
63
|
-
webdriver.until.elementIsVisible(
|
|
64
|
+
webdriver.until.elementIsVisible(
|
|
65
|
+
driver.findElement(webdriver.By.id(id))
|
|
66
|
+
),
|
|
64
67
|
maxTime
|
|
65
68
|
);
|
|
66
69
|
} catch (error) {
|
package/package.json
CHANGED
|
@@ -33,7 +33,7 @@ export class Wait {
|
|
|
33
33
|
* @returns {Promise<void>} A promise that resolves when the element is found or the time times out.
|
|
34
34
|
* @throws {Error} Throws an error if the element is not found within the specified time.
|
|
35
35
|
*/
|
|
36
|
-
byIdAndVisible(id: string, maxTime
|
|
36
|
+
byIdAndVisible(id: string, maxTime?: number): Promise<void>;
|
|
37
37
|
/**
|
|
38
38
|
* Waits for an element located by XPath to appear within a maximum time.
|
|
39
39
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wait.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/wait.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH;IACE,kDASC;IARC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,0BAA0C;IAG5C;;;;;;;;OAQG;IACH,SALW,MAAM,WACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAiBzB;IAED;;;;;;;;OAQG;IACH,mBALW,MAAM,
|
|
1
|
+
{"version":3,"file":"wait.d.ts","sourceRoot":"","sources":["../../../../lib/core/engine/command/wait.js"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH;IACE,kDASC;IARC;;OAEG;IACH,gBAAsB;IACtB;;OAEG;IACH,0BAA0C;IAG5C;;;;;;;;OAQG;IACH,SALW,MAAM,WACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAiBzB;IAED;;;;;;;;OAQG;IACH,mBALW,MAAM,YACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAmBzB;IAED;;;;;;;;OAQG;IACH,eALW,MAAM,WACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAmBzB;IAED;;;;;;;;OAQG;IACH,qBALW,MAAM,WACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAuBzB;IAED;;;;;;;OAOG;IACH,WAHW,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAIzB;IAED;;;;;OAKG;IACH,oBAFa,OAAO,CAAC,IAAI,CAAC,CAIzB;IAED;;;;;;;;OAQG;IACH,0BALW,MAAM,WACN,MAAM,GACJ,OAAO,CAAC,IAAI,CAAC,CAiBzB;CACF"}
|