@applitools/eyes-selenium 4.59.6 → 4.60.1
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 +19 -0
- package/dist/api.js +3 -2
- package/package.json +9 -9
- package/types/index.d.ts +12 -9
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,25 @@
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
+
## 4.60.1 - 2022/10/9
|
|
12
|
+
|
|
13
|
+
### Features
|
|
14
|
+
- Applied client's user-agent by default to resource requests in ufg mode
|
|
15
|
+
### Bug fixes
|
|
16
|
+
- Fixed wrong signature of `closeBatch` function
|
|
17
|
+
- Blank missed frames src in ufg
|
|
18
|
+
- Fix an issue when ufg related requests were not sent through the proxy
|
|
19
|
+
- Fixed issue with logs not being saved/written
|
|
20
|
+
|
|
21
|
+
## 4.60.0 - 2022/10/4
|
|
22
|
+
|
|
23
|
+
### Features
|
|
24
|
+
- Deprecated "Content" match level value in favor of "IgnoreColors"
|
|
25
|
+
- Added support for webview switching in classic execution
|
|
26
|
+
### Bug fixes
|
|
27
|
+
- Fixed the issue with screenshots being taken on chrome-emulated devices
|
|
28
|
+
- Fixed bug when error was thrown when coded region wasn't found using selector
|
|
29
|
+
|
|
11
30
|
## 4.59.6 - 2022/9/26
|
|
12
31
|
|
|
13
32
|
### Features
|
package/dist/api.js
CHANGED
|
@@ -26,12 +26,12 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
26
26
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.BatchClose = exports.Target = exports.CheckSettings = exports.Configuration = exports.Eyes = void 0;
|
|
29
|
+
exports.closeBatch = exports.BatchClose = exports.Target = exports.CheckSettings = exports.Configuration = exports.Eyes = void 0;
|
|
30
30
|
const core_1 = require("@applitools/core");
|
|
31
31
|
const api = __importStar(require("@applitools/eyes-api"));
|
|
32
32
|
const spec = __importStar(require("@applitools/spec-driver-selenium"));
|
|
33
33
|
const sdk = (0, core_1.makeCore)({
|
|
34
|
-
agentId: `eyes
|
|
34
|
+
agentId: `eyes.selenium/${require('../package.json').version}`,
|
|
35
35
|
spec,
|
|
36
36
|
});
|
|
37
37
|
__exportStar(require("@applitools/eyes-api"), exports);
|
|
@@ -52,3 +52,4 @@ class BatchClose extends api.BatchClose {
|
|
|
52
52
|
}
|
|
53
53
|
exports.BatchClose = BatchClose;
|
|
54
54
|
BatchClose._spec = sdk;
|
|
55
|
+
exports.closeBatch = api.closeBatch(sdk);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@applitools/eyes-selenium",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.60.1",
|
|
4
4
|
"description": "Applitools Eyes SDK for Selenium WebDriver",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eyes-selenium",
|
|
@@ -65,22 +65,22 @@
|
|
|
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.5",
|
|
69
|
+
"@applitools/eyes-api": "1.8.5",
|
|
70
|
+
"@applitools/spec-driver-selenium": "1.5.1"
|
|
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
|
-
"@applitools/sdk-shared": "0.9.
|
|
78
|
-
"@applitools/test-utils": "1.5.
|
|
77
|
+
"@applitools/sdk-shared": "0.9.15",
|
|
78
|
+
"@applitools/test-utils": "1.5.2",
|
|
79
79
|
"@types/node": "12",
|
|
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
|
@@ -30,7 +30,7 @@ export class Eyes {
|
|
|
30
30
|
setViewportSize(size: RectangleSizePlain): Promise<void>;
|
|
31
31
|
getScrollRootElement(): Element | EyesSelector<Selector>;
|
|
32
32
|
setScrollRootElement(scrollRootElement: Element | EyesSelector<Selector>): void;
|
|
33
|
-
setLogHandler(handler: LogHandler): void;
|
|
33
|
+
setLogHandler(handler: LogHandlerPlain | LogHandler): void;
|
|
34
34
|
getLogHandler(): LogHandler;
|
|
35
35
|
setCutProvider(cutProvider: CutProvider): void;
|
|
36
36
|
setImageCut(cutProvider: CutProvider): void;
|
|
@@ -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>;
|
|
@@ -547,6 +550,7 @@ export class BatchClose {
|
|
|
547
550
|
setApiKey(apiKey: string): BatchClose;
|
|
548
551
|
setProxy(proxy: ProxySettingsPlain): BatchClose;
|
|
549
552
|
}
|
|
553
|
+
export const closeBatch: (options: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: ProxySettingsPlain; }) => Promise<void>;
|
|
550
554
|
export type AccessibilityGuidelinesVersionPlain = "WCAG_2_0" | "WCAG_2_1";
|
|
551
555
|
export enum AccessibilityGuidelinesVersion {
|
|
552
556
|
WCAG_2_0 = 'WCAG_2_0',
|
|
@@ -731,19 +735,19 @@ export enum AndroidDeviceName {
|
|
|
731
735
|
Xiaomi_Redmi_Note_11 = 'Xiaomi Redmi Note 11',
|
|
732
736
|
Xiaomi_Redmi_Note_11_Pro = 'Xiaomi Redmi Note 11 Pro'
|
|
733
737
|
}
|
|
734
|
-
export type AndroidVersionPlain = "latest" | "latest-1"
|
|
738
|
+
export type AndroidVersionPlain = "latest" | "latest-1";
|
|
735
739
|
export enum AndroidVersion {
|
|
736
740
|
LATEST = 'latest',
|
|
737
|
-
ONE_VERSION_BACK = 'latest-1'
|
|
738
|
-
TWO_VERSIONS_BACK = 'latest-2'
|
|
741
|
+
ONE_VERSION_BACK = 'latest-1'
|
|
739
742
|
}
|
|
740
|
-
export type MatchLevelPlain = "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "Strict" | "Exact";
|
|
743
|
+
export type MatchLevelPlain = "None" | "Layout1" | "Layout" | "Layout2" | "Content" | "IgnoreColor" | "Strict" | "Exact";
|
|
741
744
|
export enum MatchLevel {
|
|
742
745
|
None = 'None',
|
|
743
746
|
LegacyLayout = 'Layout1',
|
|
744
747
|
Layout = 'Layout',
|
|
745
748
|
Layout2 = 'Layout2',
|
|
746
749
|
Content = 'Content',
|
|
750
|
+
IgnoreColor = 'IgnoreColor',
|
|
747
751
|
Strict = 'Strict',
|
|
748
752
|
Exact = 'Exact'
|
|
749
753
|
}
|
|
@@ -1151,7 +1155,7 @@ export class Region implements Required<RegionPlain> {
|
|
|
1151
1155
|
}
|
|
1152
1156
|
export type DesktopBrowserInfo = { name?: BrowserTypePlain; width: number; height: number; };
|
|
1153
1157
|
export type ChromeEmulationInfo = { chromeEmulationInfo: { deviceName: DeviceNamePlain; screenOrientation?: ScreenOrientationPlain; }; };
|
|
1154
|
-
export type IOSDeviceInfo = { iosDeviceInfo: { deviceName: IosDeviceNamePlain; iosVersion?:
|
|
1158
|
+
export type IOSDeviceInfo = { iosDeviceInfo: { deviceName: IosDeviceNamePlain; iosVersion?: AndroidVersionPlain; screenOrientation?: ScreenOrientationPlain; }; };
|
|
1155
1159
|
export type AndroidDeviceInfo = { androidDeviceInfo: { deviceName: AndroidDeviceNamePlain; version?: AndroidVersionPlain; screenOrientation?: ScreenOrientationPlain; }; };
|
|
1156
1160
|
export type RunnerOptionsPlain = { testConcurrency?: number; };
|
|
1157
1161
|
export class RunnerOptionsFluent {
|
|
@@ -1358,7 +1362,7 @@ export type EyesSelector<TSelector = never> = string | TSelector | { selector: s
|
|
|
1358
1362
|
export class Logger {
|
|
1359
1363
|
constructor(options?: { show?: boolean; label?: string; handler?: LogHandlerPlain; });
|
|
1360
1364
|
constructor(show?: boolean);
|
|
1361
|
-
getLogHandler(): LogHandler;
|
|
1365
|
+
getLogHandler(): LogHandler | FileLogHandler | ConsoleLogHandler;
|
|
1362
1366
|
setLogHandler(handler: LogHandlerPlain): void;
|
|
1363
1367
|
verbose(...messages: Array<any>): void;
|
|
1364
1368
|
log(...messages: Array<any>): void;
|
|
@@ -1370,7 +1374,6 @@ export class Logger {
|
|
|
1370
1374
|
tag(name: string, value: any): void;
|
|
1371
1375
|
extend(label?: string): Logger;
|
|
1372
1376
|
}
|
|
1373
|
-
export function closeBatch(spec: BatchCloseSpec): (options: { batchIds: Array<string>; serverUrl: string; apiKey: string; proxy?: ProxySettingsPlain; }) => Promise<void>;
|
|
1374
1377
|
export abstract class EyesRunner {
|
|
1375
1378
|
getAllTestResults(throwErr?: boolean): Promise<TestResultsSummary>;
|
|
1376
1379
|
}
|