@applitools/spec-driver-webdriver 1.0.46 → 1.0.48
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 +34 -0
- package/dist/spec-driver.js +4 -31
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.0.48](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-webdriver@1.0.47...js/spec-driver-webdriver@1.0.48) (2023-10-17)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/utils bumped to 1.6.2
|
|
9
|
+
#### Code Refactoring
|
|
10
|
+
|
|
11
|
+
* disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
|
|
12
|
+
* @applitools/logger bumped to 2.0.12
|
|
13
|
+
#### Code Refactoring
|
|
14
|
+
|
|
15
|
+
* disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
* @applitools/driver bumped to 1.14.4
|
|
20
|
+
#### Code Refactoring
|
|
21
|
+
|
|
22
|
+
* disallow usage of global Buffer ([#1957](https://github.com/applitools/eyes.sdk.javascript1/issues/1957)) ([adcc082](https://github.com/applitools/eyes.sdk.javascript1/commit/adcc082f20f6b92e819b96424e995d9a69d99758))
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
## [1.0.47](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-webdriver@1.0.46...js/spec-driver-webdriver@1.0.47) (2023-09-29)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
### Dependencies
|
|
31
|
+
|
|
32
|
+
* @applitools/driver bumped to 1.14.3
|
|
33
|
+
#### Bug Fixes
|
|
34
|
+
|
|
35
|
+
* force native on get environment ([#1939](https://github.com/applitools/eyes.sdk.javascript1/issues/1939)) ([f42854e](https://github.com/applitools/eyes.sdk.javascript1/commit/f42854eacc769751447204143cb4d50113edc732))
|
|
36
|
+
|
|
3
37
|
## [1.0.46](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-webdriver@1.0.45...js/spec-driver-webdriver@1.0.46) (2023-09-25)
|
|
4
38
|
|
|
5
39
|
|
package/dist/spec-driver.js
CHANGED
|
@@ -76,47 +76,20 @@ function extractEnvironment(capabilities) {
|
|
|
76
76
|
}
|
|
77
77
|
function command(method, url, body) {
|
|
78
78
|
if (getFrameworkMajorVersion() < 8) {
|
|
79
|
-
|
|
80
|
-
try {
|
|
81
|
-
commandPath = require.resolve('webdriver/build/command', { paths: [`${process.cwd()}/node_modules`] });
|
|
82
|
-
}
|
|
83
|
-
catch {
|
|
84
|
-
commandPath = 'webdriver/build/command';
|
|
85
|
-
}
|
|
86
|
-
const { default: command } = require(commandPath);
|
|
79
|
+
const { default: command } = require('webdriver/build/command');
|
|
87
80
|
return command(method, url, body);
|
|
88
81
|
}
|
|
89
82
|
else {
|
|
90
|
-
|
|
91
|
-
try {
|
|
92
|
-
frameworkPath = require.resolve('webdriver', { paths: [`${process.cwd()}/node_modules`] });
|
|
93
|
-
}
|
|
94
|
-
catch {
|
|
95
|
-
frameworkPath = 'webdriver';
|
|
96
|
-
}
|
|
97
|
-
const { command } = require(frameworkPath);
|
|
83
|
+
const { command } = require('webdriver');
|
|
98
84
|
return command(method, url, body);
|
|
99
85
|
}
|
|
100
86
|
}
|
|
101
87
|
function getFrameworkMajorVersion() {
|
|
102
|
-
|
|
103
|
-
try {
|
|
104
|
-
version = require(require.resolve('webdriver/package.json', { paths: [`${process.cwd()}/node_modules`] })).version;
|
|
105
|
-
}
|
|
106
|
-
catch {
|
|
107
|
-
version = require('webdriver/package.json').version;
|
|
108
|
-
}
|
|
88
|
+
const version = require('webdriver/package.json').version;
|
|
109
89
|
return Number.parseInt(version);
|
|
110
90
|
}
|
|
111
91
|
function getWebDriver() {
|
|
112
|
-
|
|
113
|
-
try {
|
|
114
|
-
frameworkPath = require.resolve('webdriver', { paths: [`${process.cwd()}/node_modules`] });
|
|
115
|
-
}
|
|
116
|
-
catch {
|
|
117
|
-
frameworkPath = 'webdriver';
|
|
118
|
-
}
|
|
119
|
-
return getFrameworkMajorVersion() < 8 ? require(frameworkPath).default : require(frameworkPath);
|
|
92
|
+
return getFrameworkMajorVersion() < 8 ? require('webdriver').default : require('webdriver');
|
|
120
93
|
}
|
|
121
94
|
function isDriver(driver) {
|
|
122
95
|
if (!driver)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/spec-driver-webdriver",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"webdriver",
|
|
6
6
|
"chrome devtools protocol",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"up:framework": "yarn add --dev --caret webdriver${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@applitools/driver": "1.14.
|
|
53
|
-
"@applitools/utils": "1.6.
|
|
52
|
+
"@applitools/driver": "1.14.4",
|
|
53
|
+
"@applitools/utils": "1.6.2",
|
|
54
54
|
"http-proxy-agent": "5.0.0",
|
|
55
55
|
"https-proxy-agent": "5.0.1"
|
|
56
56
|
},
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"@applitools/test-utils": "^1.5.17",
|
|
61
61
|
"@types/node": "^12.20.55",
|
|
62
62
|
"nock": "^13.3.2",
|
|
63
|
-
"webdriver": "^
|
|
63
|
+
"webdriver": "^7.31.1"
|
|
64
64
|
},
|
|
65
65
|
"peerDependencies": {
|
|
66
66
|
"webdriver": ">=6.0.0"
|