@applitools/driver 1.24.4 → 1.25.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/dist/driver.js +10 -0
- package/package.json +1 -1
- package/types/driver.d.ts +1 -0
- package/types/spec-driver.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.25.0](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.24.4...js/driver@1.25.0) (2026-01-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* multi-page support - FLD-3827 ([#3410](https://github.com/Applitools-Dev/sdk/issues/3410)) ([a55b982](https://github.com/Applitools-Dev/sdk/commit/a55b9827c2218c11da5ed61b38bf12a70ce4c8db))
|
|
9
|
+
|
|
3
10
|
## [1.24.4](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.24.3...js/driver@1.24.4) (2026-01-11)
|
|
4
11
|
|
|
5
12
|
|
package/dist/driver.js
CHANGED
|
@@ -691,6 +691,16 @@ class Driver {
|
|
|
691
691
|
}
|
|
692
692
|
return normalizedRegion;
|
|
693
693
|
}
|
|
694
|
+
async bringToFront() {
|
|
695
|
+
var _a, _b;
|
|
696
|
+
try {
|
|
697
|
+
// This is awaited here and not in spec to handle errors in a single place
|
|
698
|
+
await ((_b = (_a = this._spec).bringToFront) === null || _b === void 0 ? void 0 : _b.call(_a, this.target));
|
|
699
|
+
}
|
|
700
|
+
catch (error) {
|
|
701
|
+
this._logger.warn('Unable to bringToFront the current context due to the error', error);
|
|
702
|
+
}
|
|
703
|
+
}
|
|
694
704
|
async getRegionInViewport(context, region) {
|
|
695
705
|
await context.focus();
|
|
696
706
|
return context.getRegionInViewport(region);
|
package/package.json
CHANGED
package/types/driver.d.ts
CHANGED
|
@@ -88,6 +88,7 @@ export declare class Driver<T extends SpecType> {
|
|
|
88
88
|
switchToParentContext(elevation?: number): Promise<Context<T>>;
|
|
89
89
|
switchToChildContext(...references: ContextReference<T>[]): Promise<Context<T>>;
|
|
90
90
|
normalizeRegion(region: Region): Promise<Region>;
|
|
91
|
+
bringToFront(): Promise<void>;
|
|
91
92
|
getRegionInViewport(context: Context<T>, region: Region): Promise<Region>;
|
|
92
93
|
takeScreenshot(): Promise<Uint8Array>;
|
|
93
94
|
getViewportSize(): Promise<Size>;
|
package/types/spec-driver.d.ts
CHANGED
|
@@ -142,6 +142,7 @@ export interface SpecDriver<T extends SpecType> {
|
|
|
142
142
|
getWorlds?(driver: T['driver']): Promise<string[]>;
|
|
143
143
|
switchWorld?(driver: T['driver'], id: string): Promise<void>;
|
|
144
144
|
reload?(driver: T['driver']): Promise<void>;
|
|
145
|
+
bringToFront?(driver: T['driver']): Promise<void>;
|
|
145
146
|
}
|
|
146
147
|
export type WaitOptions = {
|
|
147
148
|
state?: 'exist' | 'visible';
|