@applitools/spec-driver-webdriver 1.5.9 → 1.6.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,69 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.0](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-webdriver@1.5.10...js/spec-driver-webdriver@1.6.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
+
32
+ ## [1.5.10](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-webdriver@1.5.9...js/spec-driver-webdriver@1.5.10) (2026-04-16)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
38
+
39
+
40
+ ### Dependencies
41
+
42
+ * @applitools/utils bumped to 1.14.4
43
+ #### Bug Fixes
44
+
45
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
46
+ * @applitools/logger bumped to 2.2.11
47
+ #### Bug Fixes
48
+
49
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
50
+
51
+
52
+
53
+ * @applitools/snippets bumped to 2.8.2
54
+ #### Bug Fixes
55
+
56
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
57
+ * @applitools/driver bumped to 1.25.5
58
+ #### Bug Fixes
59
+
60
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
61
+
62
+
63
+
64
+ * @applitools/test-server bumped to 1.4.3
65
+
66
+
3
67
  ## [1.5.9](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-webdriver@1.5.8...js/spec-driver-webdriver@1.5.9) (2026-03-29)
4
68
 
5
69
 
@@ -27,9 +27,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.build = exports.switchWorld = exports.getWorlds = exports.getCurrentWorld = exports.takeScreenshot = exports.performAction = exports.visit = exports.getUrl = exports.getTitle = exports.getCookies = exports.getSystemBars = exports.setOrientation = exports.getOrientation = exports.setViewportSize = exports.setWindowSize = exports.getWindowSize = exports.getCapabilities = exports.getDriverInfo = exports.childContext = exports.parentContext = exports.mainContext = exports.click = exports.hover = exports.getElementText = exports.setElementText = exports.getElementAttribute = exports.getElementRegion = exports.findElements = exports.findElement = exports.executeBrowserCommands = exports.executeScript = exports.toSimpleCommonSelector = exports.toSelector = exports.toElement = exports.toDriver = exports.isStaleElementError = exports.isEqualElements = exports.isSelector = exports.isShadowRoot = exports.isSecondaryElement = exports.isElement = exports.isSecondaryDriver = exports.isDriver = exports.buildWebDriverProxyCapabilities = exports.getProxyConfiguration = void 0;
30
- const url_1 = require("url");
31
- const http_proxy_agent_1 = __importDefault(require("http-proxy-agent"));
32
- const https_proxy_agent_1 = __importDefault(require("https-proxy-agent"));
30
+ const http_proxy_agent_1 = require("http-proxy-agent");
31
+ const https_proxy_agent_1 = require("https-proxy-agent");
33
32
  const http_1 = __importDefault(require("http"));
34
33
  const https_1 = __importDefault(require("https"));
35
34
  const utils = __importStar(require("@applitools/utils"));
@@ -111,13 +110,13 @@ function getProxyConfiguration() {
111
110
  }
112
111
  exports.getProxyConfiguration = getProxyConfiguration;
113
112
  function getAgents(httpUrl, httpsUrl) {
114
- const httpProxyOptions = { ...(0, url_1.parse)(httpUrl.href), rejectUnauthorized: false };
115
- const httpAgent = (0, http_proxy_agent_1.default)(httpProxyOptions);
116
- const httpsProxyOptions = { ...(0, url_1.parse)(httpsUrl.href), rejectUnauthorized: false };
117
- const httpsAgent = (0, https_proxy_agent_1.default)(httpsProxyOptions);
118
- httpsAgent.callback = utils.general.wrap(httpsAgent.callback.bind(httpsAgent), (fn, request, options, ...rest) => {
119
- return fn(request, { ...options, rejectUnauthorized: false }, ...rest);
120
- });
113
+ const httpAgent = new http_proxy_agent_1.HttpProxyAgent(httpUrl);
114
+ const httpsAgent = new https_proxy_agent_1.HttpsProxyAgent(httpsUrl, { rejectUnauthorized: false });
115
+ // In https-proxy-agent v7, constructor opts only apply to the proxy connection.
116
+ // Override connect() to also force rejectUnauthorized on the destination TLS connection.
117
+ const originalConnect = httpsAgent.connect.bind(httpsAgent);
118
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
119
+ httpsAgent.connect = ((req, opts) => originalConnect(req, { ...opts, rejectUnauthorized: false }));
121
120
  return { httpAgent, httpsAgent };
122
121
  }
123
122
  // Exported for testing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/spec-driver-webdriver",
3
- "version": "1.5.9",
3
+ "version": "1.6.0",
4
4
  "keywords": [
5
5
  "webdriver",
6
6
  "chrome devtools protocol",
@@ -49,14 +49,14 @@
49
49
  "up:framework": "echo \"$(jq '.devDependencies.webdriver = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
50
50
  },
51
51
  "dependencies": {
52
- "@applitools/driver": "1.25.4",
53
- "@applitools/utils": "1.14.3",
54
- "http-proxy-agent": "5.0.0",
55
- "https-proxy-agent": "5.0.1"
52
+ "@applitools/driver": "1.26.0",
53
+ "@applitools/utils": "1.14.4",
54
+ "http-proxy-agent": "^7.0.2",
55
+ "https-proxy-agent": "^7.0.6"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@applitools/api-extractor": "^1.2.22",
59
- "@applitools/test-server": "^1.4.2",
59
+ "@applitools/test-server": "^1.4.3",
60
60
  "@applitools/test-utils": "^1.5.17",
61
61
  "@types/node": "^12.20.55",
62
62
  "nock": "^13.3.2",