@applitools/driver 1.25.5 → 1.26.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 +22 -0
- package/dist/driver.js +6 -0
- 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,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.26.0](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.25.5...js/driver@1.26.0) (2026-05-05)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Features
|
|
7
|
+
|
|
8
|
+
* 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))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Dependencies
|
|
12
|
+
|
|
13
|
+
* @applitools/dom-shared bumped to 1.2.0
|
|
14
|
+
#### Features
|
|
15
|
+
|
|
16
|
+
* 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))
|
|
17
|
+
* @applitools/snippets bumped to 2.9.0
|
|
18
|
+
#### Features
|
|
19
|
+
|
|
20
|
+
* 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))
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
3
25
|
## [1.25.5](https://github.com/Applitools-Dev/sdk/compare/js/driver@1.25.4...js/driver@1.25.5) (2026-04-16)
|
|
4
26
|
|
|
5
27
|
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/driver",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.0",
|
|
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.0",
|
|
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
|
}
|