@applitools/driver 1.25.5 → 1.26.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 +37 -0
- package/dist/driver.js +6 -0
- package/dist/element.js +6 -2
- package/package.json +2 -2
- package/types/browser-command.d.ts +3 -0
- package/types/driver.d.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,42 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.26.1](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.26.0...js/driver@1.26.1) (2026-05-19)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* address CI regressions from executeBrowserCommands and Chromium 140+ service worker ([#3848](https://github.com/Applitools-Dev/sdk/issues/3848)) ([099ada5](https://github.com/Applitools-Dev/sdk/commit/099ada5e52d4153157b98c2203df428579527e49))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/snippets bumped to 2.9.1
|
|
14
|
+
#### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* declare @babel/preset-typescript dep for sandbox build ([#3815](https://github.com/Applitools-Dev/sdk/issues/3815)) ([10c44c6](https://github.com/Applitools-Dev/sdk/commit/10c44c66635f1ed4e0361f22ecebf2221c2cc912))
|
|
17
|
+
|
|
18
|
+
## [1.26.0](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.25.5...js/driver@1.26.0) (2026-05-05)
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
### Features
|
|
22
|
+
|
|
23
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
### Dependencies
|
|
27
|
+
|
|
28
|
+
* @applitools/dom-shared bumped to 1.2.0
|
|
29
|
+
#### Features
|
|
30
|
+
|
|
31
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
32
|
+
* @applitools/snippets bumped to 2.9.0
|
|
33
|
+
#### Features
|
|
34
|
+
|
|
35
|
+
* add bypassCSP support for UFG snapshot capture ([#3783](https://github.com/Applitools-Dev/sdk/issues/3783)) ([9e98933](https://github.com/Applitools-Dev/sdk/commit/9e98933b8ffba2ad1928aa2b2110e9a25209a599))
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
3
40
|
## [1.25.5](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.25.4...js/driver@1.25.5) (2026-04-16)
|
|
4
41
|
|
|
5
42
|
|
package/dist/driver.js
CHANGED
|
@@ -917,6 +917,12 @@ class Driver {
|
|
|
917
917
|
throw new Error(`User function is not supported (${JSON.stringify(func)})`);
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
|
+
async setBypassCSP(enabled) {
|
|
921
|
+
const commands = [{ command: 'Page.setBypassCSP', params: { enabled } }];
|
|
922
|
+
return this._spec.executeBrowserCommands(this.target, commands, this._logger).catch((err) => {
|
|
923
|
+
this._logger.warn('setBypassCSP is not supported on this browser', err);
|
|
924
|
+
});
|
|
925
|
+
}
|
|
920
926
|
async addScriptToEvaluateOnNewDocument(script) {
|
|
921
927
|
const enableCommand = { command: 'Page.enable', params: null };
|
|
922
928
|
const addScriptToEvaluateOnNewDocumentCommand = {
|
package/dist/element.js
CHANGED
|
@@ -699,8 +699,12 @@ class Element {
|
|
|
699
699
|
if (this._originalOverflow)
|
|
700
700
|
return;
|
|
701
701
|
return this.withRefresh(async () => {
|
|
702
|
-
const
|
|
703
|
-
|
|
702
|
+
const result = await this.context.execute(snippets.setElementStyleProperties, [this, { overflow: 'hidden' }]);
|
|
703
|
+
if (!result) {
|
|
704
|
+
this.logger.warn('hideScrollbars: setElementStyleProperties returned null — skipping');
|
|
705
|
+
return;
|
|
706
|
+
}
|
|
707
|
+
this._originalOverflow = result.overflow;
|
|
704
708
|
});
|
|
705
709
|
}
|
|
706
710
|
async restoreScrollbars() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/driver",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.1",
|
|
4
4
|
"description": "Applitools universal framework wrapper",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"applitools",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
76
|
"@applitools/logger": "2.2.11",
|
|
77
|
-
"@applitools/snippets": "2.
|
|
77
|
+
"@applitools/snippets": "2.9.1",
|
|
78
78
|
"@applitools/utils": "1.14.4",
|
|
79
79
|
"semver": "7.6.2"
|
|
80
80
|
},
|
package/types/driver.d.ts
CHANGED
|
@@ -106,6 +106,7 @@ export declare class Driver<T extends SpecType> {
|
|
|
106
106
|
waitFor(selector: Selector<T>, options?: WaitOptions): Promise<Element<T> | null>;
|
|
107
107
|
execute(script: ((arg: any) => any) | string, arg?: any): Promise<any>;
|
|
108
108
|
executeUserFunction<T>(func: SpecType['userFunction'] | (() => T)): Promise<any>;
|
|
109
|
+
setBypassCSP(enabled: boolean): Promise<any>;
|
|
109
110
|
addScriptToEvaluateOnNewDocument(script: string): Promise<any>;
|
|
110
111
|
visit(url: string): Promise<void>;
|
|
111
112
|
}
|