@applitools/eyes-selenium 4.58.5 → 4.59.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 +28 -0
- package/README.md +1 -1
- package/dist/api.js +5 -1
- package/dist/index.js +5 -1
- package/dist/spec-driver.js +5 -1
- package/package.json +20 -24
- package/types/index.d.ts +16 -17
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,34 @@
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
## 4.59.2 - 2022/6/9
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
- Added support for taking full screenshots of elements that are scroll by pages only
|
|
15
|
+
- Allowed `` values in custom properties
|
|
16
|
+
### Bug fixes
|
|
17
|
+
- Fixed the "Maximum Call Stack Size Exceeded" error when taking screenshots on iOS Safari
|
|
18
|
+
- Fixed an issue with wrong cropped screenshots of elements out of viewport bounds on native devices
|
|
19
|
+
- Fixed broken links to enums implementation in the README.md
|
|
20
|
+
- Fixed `forceFullPageScreenshot` option behavior
|
|
21
|
+
- Fix calling `waitBeforeCapture` when failed to set required viewport size
|
|
22
|
+
- Fix rendering issues with Salesforce Lightning design system
|
|
23
|
+
|
|
24
|
+
## 4.59.1 - 2022/6/2
|
|
25
|
+
|
|
26
|
+
### Features
|
|
27
|
+
### Bug fixes
|
|
28
|
+
- Fix rounding error of image size when scaling introduces fractions
|
|
29
|
+
|
|
30
|
+
## 4.59.0 - 2022/6/1
|
|
31
|
+
|
|
32
|
+
### Features
|
|
33
|
+
- Dorp support for Node.js versions <=12
|
|
34
|
+
### Bug fixes
|
|
35
|
+
- Fixed incorrect calculation of coded regions in classic mode when using CSS stitching
|
|
36
|
+
|
|
9
37
|
## 4.58.5 - 2022/5/27
|
|
10
38
|
|
|
11
39
|
### Features
|
package/README.md
CHANGED
|
@@ -948,7 +948,7 @@ configuration.addBrowser({
|
|
|
948
948
|
eyes.setConfiguration(configuration)
|
|
949
949
|
```
|
|
950
950
|
|
|
951
|
-
The list of devices is available at https://github.com/applitools/eyes.sdk.javascript1/blob/master/packages/eyes-
|
|
951
|
+
The list of devices is available at https://github.com/applitools/eyes.sdk.javascript1/blob/master/packages/eyes-api/src/enums/IosDeviceName.ts
|
|
952
952
|
|
|
953
953
|
Possible values for `iosVersion` are:
|
|
954
954
|
|
package/dist/api.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/dist/spec-driver.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-selenium",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.59.2",
|
|
4
4
|
"description": "Applitools Eyes SDK for Selenium WebDriver",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-selenium",
|
|
@@ -33,11 +33,6 @@
|
|
|
33
33
|
},
|
|
34
34
|
"main": "./dist/index.js",
|
|
35
35
|
"types": "./types/index.d.ts",
|
|
36
|
-
"directories": {
|
|
37
|
-
"lib": "./lib",
|
|
38
|
-
"example": "./example",
|
|
39
|
-
"test": "./test"
|
|
40
|
-
},
|
|
41
36
|
"files": [
|
|
42
37
|
"dist",
|
|
43
38
|
"types"
|
|
@@ -66,39 +61,40 @@
|
|
|
66
61
|
}
|
|
67
62
|
},
|
|
68
63
|
"dependencies": {
|
|
69
|
-
"@applitools/eyes-api": "1.4
|
|
70
|
-
"@applitools/eyes-sdk-core": "13.6.
|
|
71
|
-
"@applitools/spec-driver-selenium": "1.3.
|
|
72
|
-
"@applitools/visual-grid-client": "15.12.
|
|
64
|
+
"@applitools/eyes-api": "1.5.4",
|
|
65
|
+
"@applitools/eyes-sdk-core": "13.6.33",
|
|
66
|
+
"@applitools/spec-driver-selenium": "1.3.8",
|
|
67
|
+
"@applitools/visual-grid-client": "15.12.41"
|
|
73
68
|
},
|
|
74
69
|
"devDependencies": {
|
|
75
|
-
"@applitools/api-extractor": "1.2.
|
|
76
|
-
"@applitools/bongo": "^2.1.
|
|
70
|
+
"@applitools/api-extractor": "1.2.8",
|
|
71
|
+
"@applitools/bongo": "^2.1.4",
|
|
77
72
|
"@applitools/scripts": "1.1.0",
|
|
78
73
|
"@applitools/sdk-coverage-tests": "2.3.18",
|
|
79
74
|
"@applitools/sdk-shared": "0.9.11",
|
|
80
75
|
"@applitools/test-utils": "1.3.2",
|
|
81
|
-
"@types/
|
|
82
|
-
"@
|
|
83
|
-
"@typescript-eslint/
|
|
76
|
+
"@types/node": "12",
|
|
77
|
+
"@types/selenium-webdriver": "^4.1.1",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
79
|
+
"@typescript-eslint/parser": "^5.27.0",
|
|
84
80
|
"chromedriver": "^87.0.4",
|
|
85
|
-
"eslint": "^
|
|
86
|
-
"eslint-config-prettier": "^
|
|
81
|
+
"eslint": "^8.16.0",
|
|
82
|
+
"eslint-config-prettier": "^8.5.0",
|
|
87
83
|
"eslint-plugin-mocha-no-only": "^1.1.1",
|
|
88
84
|
"eslint-plugin-node": "^11.1.0",
|
|
89
|
-
"eslint-plugin-prettier": "^
|
|
85
|
+
"eslint-plugin-prettier": "^4.0.0",
|
|
90
86
|
"husky": "^4.3.8",
|
|
91
|
-
"mocha": "^
|
|
92
|
-
"prettier": "^2.
|
|
93
|
-
"selenium-webdriver": "^4.
|
|
87
|
+
"mocha": "^10.0.0",
|
|
88
|
+
"prettier": "^2.6.2",
|
|
89
|
+
"selenium-webdriver": "^4.2.0",
|
|
94
90
|
"spec-xunit-file": "0.0.1-3",
|
|
95
|
-
"ttypescript": "^1.5.
|
|
96
|
-
"typescript": "^4.
|
|
91
|
+
"ttypescript": "^1.5.13",
|
|
92
|
+
"typescript": "^4.7.2"
|
|
97
93
|
},
|
|
98
94
|
"peerDependencies": {
|
|
99
95
|
"selenium-webdriver": ">=3.6.0"
|
|
100
96
|
},
|
|
101
97
|
"engines": {
|
|
102
|
-
"node": ">=
|
|
98
|
+
"node": ">=12.13.0"
|
|
103
99
|
}
|
|
104
100
|
}
|
package/types/index.d.ts
CHANGED
|
@@ -414,10 +414,10 @@ export class Configuration implements Required<ConfigurationPlain> {
|
|
|
414
414
|
setConcurrentSessions(concurrentSessions: number): Configuration;
|
|
415
415
|
get browsersInfo(): Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo>;
|
|
416
416
|
set browsersInfo(browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | IOSDeviceInfo>);
|
|
417
|
-
getBrowsersInfo(): Array<DesktopBrowserInfo | ChromeEmulationInfo |
|
|
418
|
-
setBrowsersInfo(browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo |
|
|
419
|
-
addBrowsers(...browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo |
|
|
420
|
-
addBrowser(browserInfo: DesktopBrowserInfo | ChromeEmulationInfo |
|
|
417
|
+
getBrowsersInfo(): Array<DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo>;
|
|
418
|
+
setBrowsersInfo(browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo>): Configuration;
|
|
419
|
+
addBrowsers(...browsersInfo: Array<DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo>): Configuration;
|
|
420
|
+
addBrowser(browserInfo: DesktopBrowserInfo | ChromeEmulationInfo | { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; } | IOSDeviceInfo): Configuration;
|
|
421
421
|
addBrowser(width: number, height: number, name?: BrowserTypePlain): Configuration;
|
|
422
422
|
addDeviceEmulation(deviceName: DeviceNamePlain, screenOrientation?: ScreenOrientationPlain): Configuration;
|
|
423
423
|
get visualGridOptions(): { [key: string]: any; };
|
|
@@ -741,7 +741,7 @@ export enum SessionType {
|
|
|
741
741
|
SEQUENTIAL = 'SEQUENTIAL',
|
|
742
742
|
PROGRESSION = 'PROGRESSION'
|
|
743
743
|
}
|
|
744
|
-
export type StitchModePlain = "
|
|
744
|
+
export type StitchModePlain = "CSS" | "Scroll";
|
|
745
745
|
export enum StitchMode {
|
|
746
746
|
SCROLL = 'Scroll',
|
|
747
747
|
CSS = 'CSS'
|
|
@@ -929,8 +929,8 @@ export type ImageMatchSettingsPlain = {
|
|
|
929
929
|
layoutRegions?: Array<RegionPlain>;
|
|
930
930
|
strictRegions?: Array<RegionPlain>;
|
|
931
931
|
contentRegions?: Array<RegionPlain>;
|
|
932
|
-
floatingRegions?: Array<
|
|
933
|
-
accessibilityRegions?: Array<
|
|
932
|
+
floatingRegions?: Array<RegionPlain | FloatingMatchSettingsPlain>;
|
|
933
|
+
accessibilityRegions?: Array<RegionPlain | AccessibilityMatchSettingsPlain>;
|
|
934
934
|
accessibilitySettings?: AccessibilitySettings;
|
|
935
935
|
};
|
|
936
936
|
export class ImageMatchSettings implements Required<ImageMatchSettingsPlain> {
|
|
@@ -981,16 +981,16 @@ export class ImageMatchSettings implements Required<ImageMatchSettingsPlain> {
|
|
|
981
981
|
set content(content: Array<RegionPlain>);
|
|
982
982
|
getContentRegions(): Array<Region>;
|
|
983
983
|
setContentRegions(contentRegions: Array<RegionPlain>): void;
|
|
984
|
-
get floatingRegions(): Array<
|
|
985
|
-
set floatingRegions(floatingRegions: Array<
|
|
986
|
-
get floating(): Array<
|
|
987
|
-
set floating(floating: Array<
|
|
984
|
+
get floatingRegions(): Array<RegionPlain | FloatingMatchSettingsPlain>;
|
|
985
|
+
set floatingRegions(floatingRegions: Array<RegionPlain | FloatingMatchSettingsPlain>);
|
|
986
|
+
get floating(): Array<RegionPlain | FloatingMatchSettingsPlain>;
|
|
987
|
+
set floating(floating: Array<RegionPlain | FloatingMatchSettingsPlain>);
|
|
988
988
|
getFloatingRegions(): Array<FloatingMatchSettings>;
|
|
989
989
|
setFloatingRegions(floatingRegions: Array<FloatingMatchSettingsPlain>): void;
|
|
990
|
-
get accessibilityRegions(): Array<
|
|
991
|
-
set accessibilityRegions(accessibilityRegions: Array<
|
|
992
|
-
get accessibility(): Array<
|
|
993
|
-
set accessibility(accessibility: Array<
|
|
990
|
+
get accessibilityRegions(): Array<RegionPlain | AccessibilityMatchSettingsPlain>;
|
|
991
|
+
set accessibilityRegions(accessibilityRegions: Array<RegionPlain | AccessibilityMatchSettingsPlain>);
|
|
992
|
+
get accessibility(): Array<RegionPlain | AccessibilityMatchSettingsPlain>;
|
|
993
|
+
set accessibility(accessibility: Array<RegionPlain | AccessibilityMatchSettingsPlain>);
|
|
994
994
|
getAccessibilityRegions(): Array<AccessibilityMatchSettings>;
|
|
995
995
|
setAccessibilityRegions(accessibilityRegions: Array<AccessibilityMatchSettingsPlain>): void;
|
|
996
996
|
get accessibilitySettings(): AccessibilitySettings;
|
|
@@ -1019,7 +1019,7 @@ export class Location implements Required<LocationPlain> {
|
|
|
1019
1019
|
getY(): number;
|
|
1020
1020
|
setY(y: number): void;
|
|
1021
1021
|
}
|
|
1022
|
-
export type LogHandlerPlain = CustomLogHandlerPlain |
|
|
1022
|
+
export type LogHandlerPlain = CustomLogHandlerPlain | ConsoleLogHandlerPlain | FileLogHandlerPlain;
|
|
1023
1023
|
export type CustomLogHandlerPlain = {
|
|
1024
1024
|
log(message: any): void;
|
|
1025
1025
|
warn?(message: any): void;
|
|
@@ -1454,7 +1454,6 @@ export class Logger {
|
|
|
1454
1454
|
open(): void;
|
|
1455
1455
|
close(): void;
|
|
1456
1456
|
tag(name: string, value: any): void;
|
|
1457
|
-
extend(options?: import('node_modules/@applitools/logger/types/logger.d.ts').ExtendOptions): Logger;
|
|
1458
1457
|
extend(label?: string): Logger;
|
|
1459
1458
|
}
|
|
1460
1459
|
export function closeBatch(spec: { closeBatches(options: { settings: { batchIds: Array<string>; serverUrl?: string; apiKey?: string; proxy?: ProxySettingsPlain; }; }): Promise<void>; }): (options: { batchIds: Array<string>; serverUrl?: string; apiKey?: string; proxy?: ProxySettingsPlain; }) => Promise<void>;
|