@applitools/eyes-selenium 4.59.6 → 4.60.0
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 +9 -0
- package/package.json +7 -7
- package/types/index.d.ts +9 -6
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,15 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## 4.60.0 - 2022/10/4
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
- Deprecated "Content" match level value in favor of "IgnoreColors"
|
|
15
|
+
- Added support for webview switching in classic execution
|
|
16
|
+
### Bug fixes
|
|
17
|
+
- Fixed the issue with screenshots being taken on chrome-emulated devices
|
|
18
|
+
- Fixed bug when error was thrown when coded region wasn't found using selector
|
|
19
|
+
|
|
11
20
|
## 4.59.6 - 2022/9/26
|
|
12
21
|
|
|
13
22
|
### Features
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-selenium",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.60.0",
|
|
4
4
|
"description": "Applitools Eyes SDK for Selenium WebDriver",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-selenium",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
}
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@applitools/core": "1.
|
|
69
|
-
"@applitools/eyes-api": "1.
|
|
70
|
-
"@applitools/spec-driver-selenium": "1.
|
|
68
|
+
"@applitools/core": "1.1.3",
|
|
69
|
+
"@applitools/eyes-api": "1.8.2",
|
|
70
|
+
"@applitools/spec-driver-selenium": "1.4.4"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
73
|
"@applitools/api-extractor": "1.2.11",
|
|
74
74
|
"@applitools/bongo": "^2.2.0",
|
|
75
|
-
"@applitools/scripts": "1.
|
|
75
|
+
"@applitools/scripts": "1.2.0",
|
|
76
76
|
"@applitools/sdk-coverage-tests": "2.3.20",
|
|
77
77
|
"@applitools/sdk-shared": "0.9.14",
|
|
78
78
|
"@applitools/test-utils": "1.5.1",
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
"@types/selenium-webdriver": "^4.1.1",
|
|
81
81
|
"@typescript-eslint/eslint-plugin": "^5.27.0",
|
|
82
82
|
"@typescript-eslint/parser": "^5.27.0",
|
|
83
|
-
"chromedriver": "
|
|
83
|
+
"chromedriver": "105.0.1",
|
|
84
84
|
"eslint": "^8.16.0",
|
|
85
85
|
"eslint-config-prettier": "^8.5.0",
|
|
86
86
|
"eslint-plugin-mocha-no-only": "^1.1.1",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"husky": "^4.3.8",
|
|
90
90
|
"mocha": "^9.2.2",
|
|
91
91
|
"prettier": "^2.6.2",
|
|
92
|
-
"selenium-webdriver": "
|
|
92
|
+
"selenium-webdriver": "4.4.0",
|
|
93
93
|
"spec-xunit-file": "0.0.1-3",
|
|
94
94
|
"ttypescript": "^1.5.13",
|
|
95
95
|
"typescript": "^4.7.2"
|
package/types/index.d.ts
CHANGED
|
@@ -391,7 +391,7 @@ export class Configuration implements Required<ConfigurationPlain> {
|
|
|
391
391
|
addBrowser(width: number, height: number, name?: BrowserTypePlain): Configuration;
|
|
392
392
|
addDeviceEmulation(deviceName: DeviceNamePlain, screenOrientation?: ScreenOrientationPlain): Configuration;
|
|
393
393
|
addMobileDevice(deviceName: AndroidDeviceNamePlain, screenOrientation: ScreenOrientationPlain, version?: AndroidVersionPlain): Configuration;
|
|
394
|
-
addMobileDevice(deviceName: IosDeviceNamePlain, screenOrientation: ScreenOrientationPlain, version?:
|
|
394
|
+
addMobileDevice(deviceName: IosDeviceNamePlain, screenOrientation: ScreenOrientationPlain, version?: AndroidVersionPlain): Configuration;
|
|
395
395
|
get visualGridOptions(): { [key: string]: any; };
|
|
396
396
|
set visualGridOptions(visualGridOptions: { [key: string]: any; });
|
|
397
397
|
getVisualGridOptions(): { [key: string]: any; };
|
|
@@ -453,6 +453,7 @@ export type CheckSettingsPlain = {
|
|
|
453
453
|
timeout?: number;
|
|
454
454
|
waitBeforeCapture?: number;
|
|
455
455
|
lazyLoad?: boolean | { scrollLength?: number; waitingTime?: number; maxAmountToScroll?: number; };
|
|
456
|
+
webview?: string | boolean;
|
|
456
457
|
};
|
|
457
458
|
export class CheckSettings {
|
|
458
459
|
constructor(settings?: CheckSettings | CheckSettingsPlain, spec?: { isElement(value: any): value is Element; isSelector(value: any): value is Selector; });
|
|
@@ -530,6 +531,7 @@ export class CheckSettings {
|
|
|
530
531
|
timeout(timeout: number): CheckSettings;
|
|
531
532
|
waitBeforeCapture(waitBeforeCapture: number): CheckSettings;
|
|
532
533
|
lazyLoad(options?: boolean | { scrollLength?: number; waitingTime?: number; maxAmountToScroll?: number; }): CheckSettings;
|
|
534
|
+
webview(option?: string | boolean): CheckSettings;
|
|
533
535
|
}
|
|
534
536
|
export const Target: {
|
|
535
537
|
window(): CheckSettings;
|
|
@@ -537,6 +539,7 @@ export const Target: {
|
|
|
537
539
|
frame(context: { frame: number | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })); scrollRootElement?: Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }); }): CheckSettings;
|
|
538
540
|
frame(frame: number | (Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })), scrollRootElement?: Element | (string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; })): CheckSettings;
|
|
539
541
|
shadow(selector: string | Selector | { selector: string | Selector; type?: string; shadow?: EyesSelector<Selector>; frame?: EyesSelector<Selector>; }): CheckSettings;
|
|
542
|
+
webview(option?: string | boolean): CheckSettings;
|
|
540
543
|
};
|
|
541
544
|
export class BatchClose {
|
|
542
545
|
static close(settings: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: ProxySettingsPlain; }): Promise<void>;
|
|
@@ -731,19 +734,19 @@ export enum AndroidDeviceName {
|
|
|
731
734
|
Xiaomi_Redmi_Note_11 = 'Xiaomi Redmi Note 11',
|
|
732
735
|
Xiaomi_Redmi_Note_11_Pro = 'Xiaomi Redmi Note 11 Pro'
|
|
733
736
|
}
|
|
734
|
-
export type AndroidVersionPlain = "latest" | "latest-1"
|
|
737
|
+
export type AndroidVersionPlain = "latest" | "latest-1";
|
|
735
738
|
export enum AndroidVersion {
|
|
736
739
|
LATEST = 'latest',
|
|
737
|
-
ONE_VERSION_BACK = 'latest-1'
|
|
738
|
-
TWO_VERSIONS_BACK = 'latest-2'
|
|
740
|
+
ONE_VERSION_BACK = 'latest-1'
|
|
739
741
|
}
|
|
740
|
-
export type MatchLevelPlain = "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "Strict" | "Exact";
|
|
742
|
+
export type MatchLevelPlain = "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "IgnoreColor" | "Strict" | "Exact";
|
|
741
743
|
export enum MatchLevel {
|
|
742
744
|
None = 'None',
|
|
743
745
|
LegacyLayout = 'Layout1',
|
|
744
746
|
Layout = 'Layout',
|
|
745
747
|
Layout2 = 'Layout2',
|
|
746
748
|
Content = 'Content',
|
|
749
|
+
IgnoreColor = 'IgnoreColor',
|
|
747
750
|
Strict = 'Strict',
|
|
748
751
|
Exact = 'Exact'
|
|
749
752
|
}
|
|
@@ -1151,7 +1154,7 @@ export class Region implements Required<RegionPlain> {
|
|
|
1151
1154
|
}
|
|
1152
1155
|
export type DesktopBrowserInfo = { name?: BrowserTypePlain; width: number; height: number; };
|
|
1153
1156
|
export type ChromeEmulationInfo = { chromeEmulationInfo: { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; }; };
|
|
1154
|
-
export type IOSDeviceInfo = { iosDeviceInfo: { deviceName: IosDeviceNamePlain; iosVersion?:
|
|
1157
|
+
export type IOSDeviceInfo = { iosDeviceInfo: { deviceName: IosDeviceNamePlain; iosVersion?: AndroidVersionPlain; screenOrientation?: ScreenOrientationPlain; }; };
|
|
1155
1158
|
export type AndroidDeviceInfo = { androidDeviceInfo: { deviceName: AndroidDeviceNamePlain; version?: AndroidVersionPlain; screenOrientation?: ScreenOrientationPlain; }; };
|
|
1156
1159
|
export type RunnerOptionsPlain = { testConcurrency?: number; };
|
|
1157
1160
|
export class RunnerOptionsFluent {
|