@applitools/spec-driver-webdriver 1.5.8 → 1.5.10

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,80 @@
1
1
  # Changelog
2
2
 
3
+ ## [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)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * @applitools/utils bumped to 1.14.4
14
+ #### Bug Fixes
15
+
16
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
17
+ * @applitools/logger bumped to 2.2.11
18
+ #### Bug Fixes
19
+
20
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
21
+
22
+
23
+
24
+ * @applitools/snippets bumped to 2.8.2
25
+ #### Bug Fixes
26
+
27
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
28
+ * @applitools/driver bumped to 1.25.5
29
+ #### Bug Fixes
30
+
31
+ * remediate npm security vulnerabilities (FLD-4179) ([#3764](https://github.com/Applitools-Dev/sdk/issues/3764)) ([4bc0ef9](https://github.com/Applitools-Dev/sdk/commit/4bc0ef915e8ad606627c6074de582bec53397738))
32
+
33
+
34
+
35
+ * @applitools/test-server bumped to 1.4.3
36
+
37
+
38
+ ## [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)
39
+
40
+
41
+ ### Bug Fixes
42
+
43
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
44
+
45
+
46
+ ### Dependencies
47
+
48
+ * @applitools/utils bumped to 1.14.3
49
+ #### Bug Fixes
50
+
51
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
52
+ * @applitools/logger bumped to 2.2.10
53
+ #### Bug Fixes
54
+
55
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
56
+
57
+
58
+
59
+ * @applitools/snippets bumped to 2.8.1
60
+ #### Bug Fixes
61
+
62
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
63
+ * @applitools/driver bumped to 1.25.4
64
+ #### Bug Fixes
65
+
66
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
67
+
68
+
69
+
70
+ * @applitools/test-server bumped to 1.4.2
71
+ #### Bug Fixes
72
+
73
+ * exclude CHANGELOG.md from all published npm packages | AD-10793 ([#3682](https://github.com/Applitools-Dev/sdk/issues/3682)) ([95a0a80](https://github.com/Applitools-Dev/sdk/commit/95a0a8063fc2e1809c1bef1fc651d6deceda6e7e))
74
+
75
+
76
+
77
+
3
78
  ## [1.5.8](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-webdriver@1.5.7...js/spec-driver-webdriver@1.5.8) (2026-03-12)
4
79
 
5
80
 
@@ -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.8",
3
+ "version": "1.5.10",
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.3",
53
- "@applitools/utils": "1.14.2",
54
- "http-proxy-agent": "5.0.0",
55
- "https-proxy-agent": "5.0.1"
52
+ "@applitools/driver": "1.25.5",
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.1",
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",