@applitools/spec-driver-webdriver 1.7.0 → 1.7.2
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 +26 -0
- package/dist/spec-driver.js +23 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,31 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.7.2](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-webdriver@1.7.1...js/spec-driver-webdriver@1.7.2) (2026-12-03)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* skip the env proxy for WebDriver urls in NO_PROXY | FLD-4721 ([#4608](https://github.com/Applitools-Dev/sdk/issues/4608)) ([362ce91](https://github.com/Applitools-Dev/sdk/commit/362ce91dfcd79856049859f34de77624687982dd))
|
|
9
|
+
|
|
10
|
+
## [1.7.1](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-webdriver@1.7.0...js/spec-driver-webdriver@1.7.1) (2026-11-30)
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### Dependencies
|
|
14
|
+
|
|
15
|
+
* @applitools/logger bumped to 2.3.6
|
|
16
|
+
#### Bug Fixes
|
|
17
|
+
|
|
18
|
+
* keep the base console handler when a logger is extended ([#4563](https://github.com/Applitools-Dev/sdk/issues/4563)) ([8611837](https://github.com/Applitools-Dev/sdk/commit/8611837c62e09274c33a8e6cd4465b429c5ca8ea))
|
|
19
|
+
* warn when Target.frame is used on the Ultrafast Grid | FLD-5020 ([#4564](https://github.com/Applitools-Dev/sdk/issues/4564)) ([2d7d27f](https://github.com/Applitools-Dev/sdk/commit/2d7d27f0b29d194f5c0ff03d29851d8ae06185b3))
|
|
20
|
+
* @applitools/snippets bumped to 2.9.14
|
|
21
|
+
#### Bug Fixes
|
|
22
|
+
|
|
23
|
+
* stabilize the page after breakpoint resize before snapshot | AD-18600 ([#4583](https://github.com/Applitools-Dev/sdk/issues/4583)) ([f8bf639](https://github.com/Applitools-Dev/sdk/commit/f8bf639d8094911dbc7816485bd29475776167e1))
|
|
24
|
+
* @applitools/driver bumped to 1.27.1
|
|
25
|
+
|
|
26
|
+
* @applitools/test-server bumped to 1.4.13
|
|
27
|
+
|
|
28
|
+
|
|
3
29
|
## [1.7.0](https://github.com/Applitools-Dev/sdk/compare/js/spec-driver-webdriver@1.6.17...js/spec-driver-webdriver@1.7.0) (2026-11-25)
|
|
4
30
|
|
|
5
31
|
|
package/dist/spec-driver.js
CHANGED
|
@@ -119,6 +119,28 @@ function getAgents(httpUrl, httpsUrl) {
|
|
|
119
119
|
httpsAgent.connect = ((req, opts) => originalConnect(req, { ...opts, rejectUnauthorized: false }));
|
|
120
120
|
return { httpAgent, httpsAgent };
|
|
121
121
|
}
|
|
122
|
+
function isNoProxyUrl(url) {
|
|
123
|
+
const noProxy = utils.general.getEnvCaseInsensitive('NO_PROXY');
|
|
124
|
+
if (!noProxy)
|
|
125
|
+
return false;
|
|
126
|
+
const hostname = url.hostname.toLowerCase().replace(/^\[(.*)\]$/, '$1');
|
|
127
|
+
const port = url.port || (url.protocol === 'https:' ? '443' : '80');
|
|
128
|
+
return noProxy.split(',').some(rawEntry => {
|
|
129
|
+
var _a;
|
|
130
|
+
const entry = rawEntry.trim().toLowerCase();
|
|
131
|
+
if (!entry)
|
|
132
|
+
return false;
|
|
133
|
+
if (entry === '*')
|
|
134
|
+
return true;
|
|
135
|
+
// an unbracketed entry with several colons is a bare IPv6 address without a port
|
|
136
|
+
const match = (_a = /^\[(.+)\](?::(\d+))?$/.exec(entry)) !== null && _a !== void 0 ? _a : /^([^:]+)(?::(\d+))?$/.exec(entry);
|
|
137
|
+
const host = (match ? match[1] : entry).replace(/^\./, '');
|
|
138
|
+
const entryPort = match === null || match === void 0 ? void 0 : match[2];
|
|
139
|
+
if (entryPort && entryPort !== port)
|
|
140
|
+
return false;
|
|
141
|
+
return hostname === host || hostname.endsWith(`.${host}`);
|
|
142
|
+
});
|
|
143
|
+
}
|
|
122
144
|
// Exported for testing
|
|
123
145
|
function buildWebDriverProxyCapabilities(proxyConfig, noProxy) {
|
|
124
146
|
if (proxyConfig.hasProxy && noProxy) {
|
|
@@ -223,7 +245,7 @@ function toDriver(driver) {
|
|
|
223
245
|
}
|
|
224
246
|
else {
|
|
225
247
|
const proxyConfig = getProxyConfiguration();
|
|
226
|
-
if (proxyConfig.hasProxy) {
|
|
248
|
+
if (proxyConfig.hasProxy && !isNoProxyUrl(url)) {
|
|
227
249
|
const { httpAgent, httpsAgent } = getAgents(proxyConfig.httpUrl, proxyConfig.httpsUrl);
|
|
228
250
|
options.agent = { http: httpAgent, https: httpsAgent };
|
|
229
251
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/spec-driver-webdriver",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"webdriver",
|
|
6
6
|
"chrome devtools protocol",
|
|
@@ -43,14 +43,14 @@
|
|
|
43
43
|
"test:ios-simulator": "MOCHA_ONLY_TAGS=ios-simulator run --top-level mocha ./test/e2e/ios-simulator.spec.ts --exit"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@applitools/driver": "1.27.
|
|
46
|
+
"@applitools/driver": "1.27.1",
|
|
47
47
|
"@applitools/utils": "1.16.0",
|
|
48
48
|
"http-proxy-agent": "^7.0.2",
|
|
49
49
|
"https-proxy-agent": "^7.0.6"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@applitools/api-extractor": "^1.2.22",
|
|
53
|
-
"@applitools/test-server": "^1.4.
|
|
53
|
+
"@applitools/test-server": "^1.4.13",
|
|
54
54
|
"@applitools/test-utils": "^1.5.17",
|
|
55
55
|
"@types/node": "^12.20.55",
|
|
56
56
|
"@wdio/globals": "^8.14.3",
|