@applitools/spec-driver-playwright 1.8.5 → 1.9.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 CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.9.0](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-playwright@1.8.5...js/spec-driver-playwright@1.9.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
+ * @applitools/driver bumped to 1.26.0
25
+ #### Features
26
+
27
+ * 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))
28
+
29
+
30
+
31
+
3
32
  ## [1.8.5](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-playwright@1.8.4...js/spec-driver-playwright@1.8.5) (2026-04-16)
4
33
 
5
34
 
@@ -123,6 +123,19 @@ async function executeBrowserCommands(page, commands, logger) {
123
123
  });
124
124
  }
125
125
  break;
126
+ case 'Page.setBypassCSP':
127
+ if (currentCommand.params) {
128
+ const browser = page.context().browser();
129
+ if ((browser === null || browser === void 0 ? void 0 : browser.browserType().name()) === 'chromium') {
130
+ // Keep the session open — Page.setBypassCSP is session-scoped in Chrome
131
+ const bypassSession = await page.context().newCDPSession(page);
132
+ await bypassSession.send('Page.setBypassCSP', currentCommand.params);
133
+ }
134
+ else {
135
+ logger === null || logger === void 0 ? void 0 : logger.info('Page.setBypassCSP not supported on this browser');
136
+ }
137
+ }
138
+ break;
126
139
  default:
127
140
  native = false;
128
141
  const browser = page.context().browser();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/spec-driver-playwright",
3
- "version": "1.8.5",
3
+ "version": "1.9.0",
4
4
  "keywords": [
5
5
  "playwright",
6
6
  "chrome devtools protocol",
@@ -40,7 +40,7 @@
40
40
  "up:framework": "echo \"$(jq '.devDependencies.playwright = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
41
41
  },
42
42
  "dependencies": {
43
- "@applitools/driver": "1.25.5",
43
+ "@applitools/driver": "1.26.0",
44
44
  "@applitools/utils": "1.14.4"
45
45
  },
46
46
  "devDependencies": {