@applitools/spec-driver-selenium 1.5.61 → 1.5.63
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/index.js +8 -1
- package/dist/spec-driver.js +8 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [1.5.63](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-selenium@1.5.62...js/spec-driver-selenium@1.5.63) (2023-11-07)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Dependencies
|
|
7
|
+
|
|
8
|
+
* @applitools/driver bumped to 1.15.0
|
|
9
|
+
#### Features
|
|
10
|
+
|
|
11
|
+
* added warning when driver used with capabilities that may conflict with applitools lib workflow ([#2011](https://github.com/applitools/eyes.sdk.javascript1/issues/2011)) ([081006d](https://github.com/applitools/eyes.sdk.javascript1/commit/081006d879894db03a2713129b66586496b6eb02))
|
|
12
|
+
|
|
13
|
+
## [1.5.62](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-selenium@1.5.61...js/spec-driver-selenium@1.5.62) (2023-10-17)
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* @applitools/utils bumped to 1.6.2
|
|
19
|
+
#### Code Refactoring
|
|
20
|
+
|
|
21
|
+
* 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))
|
|
22
|
+
* @applitools/logger bumped to 2.0.12
|
|
23
|
+
#### Code Refactoring
|
|
24
|
+
|
|
25
|
+
* 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))
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
* @applitools/driver bumped to 1.14.4
|
|
30
|
+
#### Code Refactoring
|
|
31
|
+
|
|
32
|
+
* 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))
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
3
37
|
## [1.5.61](https://github.com/applitools/eyes.sdk.javascript1/compare/js/spec-driver-selenium@1.5.60...js/spec-driver-selenium@1.5.61) (2023-09-29)
|
|
4
38
|
|
|
5
39
|
|
package/dist/index.js
CHANGED
|
@@ -29,7 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
const spec = __importStar(require("./spec-driver"));
|
|
30
30
|
if (!process.env.APPLITOOLS_FRAMEWORK_MAJOR_VERSION) {
|
|
31
31
|
try {
|
|
32
|
-
|
|
32
|
+
let manifestPath;
|
|
33
|
+
try {
|
|
34
|
+
manifestPath = require.resolve('selenium-webdriver/package.json', { paths: [`${process.cwd()}/node_modules`] });
|
|
35
|
+
}
|
|
36
|
+
catch {
|
|
37
|
+
manifestPath = 'selenium-webdriver/package.json';
|
|
38
|
+
}
|
|
39
|
+
const version = process.env.APPLITOOLS_FRAMEWORK_VERSION || require(manifestPath).version;
|
|
33
40
|
const [major] = version.split('.', 1);
|
|
34
41
|
process.env.APPLITOOLS_FRAMEWORK_MAJOR_VERSION = major;
|
|
35
42
|
}
|
package/dist/spec-driver.js
CHANGED
|
@@ -186,7 +186,14 @@ async function getElementText(_driver, element) {
|
|
|
186
186
|
exports.getElementText = getElementText;
|
|
187
187
|
async function hover(driver, element) {
|
|
188
188
|
if (process.env.APPLITOOLS_FRAMEWORK_MAJOR_VERSION === '3') {
|
|
189
|
-
|
|
189
|
+
let frameworkPath;
|
|
190
|
+
try {
|
|
191
|
+
frameworkPath = require.resolve('selenium-webdriver', { paths: [`${process.cwd()}/node_modules`] });
|
|
192
|
+
}
|
|
193
|
+
catch {
|
|
194
|
+
frameworkPath = 'selenium-webdriver';
|
|
195
|
+
}
|
|
196
|
+
const { ActionSequence } = require(frameworkPath);
|
|
190
197
|
const action = new ActionSequence(driver);
|
|
191
198
|
await action.mouseMove(element).perform();
|
|
192
199
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/spec-driver-selenium",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.63",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"selenium",
|
|
6
6
|
"selenium-webdriver",
|
|
@@ -40,13 +40,13 @@
|
|
|
40
40
|
"scripts": {
|
|
41
41
|
"lint": "run --top-level eslint '**/*.ts'",
|
|
42
42
|
"build": "run --top-level tspc --project ./tsconfig.build.json",
|
|
43
|
-
"test": "run --top-level mocha './test/**/*.spec.ts'
|
|
43
|
+
"test": "run --top-level mocha './test/**/*.spec.ts' --exit",
|
|
44
44
|
"setup": "run --top-level browsers:setup",
|
|
45
|
-
"up:framework": "
|
|
45
|
+
"up:framework": "echo \"$(jq '.devDependencies[\"selenium-webdriver\"] = $ENV.APPLITOOLS_FRAMEWORK_VERSION' ./package.json)\" > ./package.json"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@applitools/driver": "1.
|
|
49
|
-
"@applitools/utils": "1.6.
|
|
48
|
+
"@applitools/driver": "1.15.0",
|
|
49
|
+
"@applitools/utils": "1.6.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@applitools/api-extractor": "^1.2.22",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@types/node": "^12.20.55",
|
|
55
55
|
"@types/selenium-webdriver": "^4.1.15",
|
|
56
56
|
"nock": "^13.3.2",
|
|
57
|
-
"selenium-webdriver": "4.
|
|
57
|
+
"selenium-webdriver": "^4.14.0"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
60
|
"selenium-webdriver": ">=3.6.0"
|