@applitools/eyes-selenium 4.67.3 → 4.67.5

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 CHANGED
@@ -1,5 +1,125 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.67.5](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-selenium@4.67.4...js/eyes-selenium@4.67.5) (2023-09-04)
4
+
5
+
6
+ ### Dependencies
7
+
8
+ * @applitools/utils bumped to 1.6.0
9
+ #### Features
10
+
11
+ * add support for fallback in `req` ([#1899](https://github.com/applitools/eyes.sdk.javascript1/issues/1899)) ([d69c4b5](https://github.com/applitools/eyes.sdk.javascript1/commit/d69c4b5830370c471dfc25b6e2caddca8b458df9))
12
+ * @applitools/logger bumped to 2.0.10
13
+
14
+ * @applitools/socket bumped to 1.1.10
15
+
16
+ * @applitools/req bumped to 1.6.0
17
+ #### Features
18
+
19
+ * add support for fallback in `req` ([#1899](https://github.com/applitools/eyes.sdk.javascript1/issues/1899)) ([d69c4b5](https://github.com/applitools/eyes.sdk.javascript1/commit/d69c4b5830370c471dfc25b6e2caddca8b458df9))
20
+ * update testcafe ([#1884](https://github.com/applitools/eyes.sdk.javascript1/issues/1884)) ([104f1b6](https://github.com/applitools/eyes.sdk.javascript1/commit/104f1b6cc0d4f107ba46404383de2fa11fe99dcf))
21
+
22
+
23
+
24
+ * @applitools/image bumped to 1.1.5
25
+
26
+ * @applitools/spec-driver-webdriver bumped to 1.0.44
27
+
28
+ * @applitools/spec-driver-selenium bumped to 1.5.58
29
+
30
+ * @applitools/spec-driver-puppeteer bumped to 1.2.0
31
+ #### Features
32
+
33
+ * update testcafe ([#1884](https://github.com/applitools/eyes.sdk.javascript1/issues/1884)) ([104f1b6](https://github.com/applitools/eyes.sdk.javascript1/commit/104f1b6cc0d4f107ba46404383de2fa11fe99dcf))
34
+
35
+
36
+
37
+ * @applitools/driver bumped to 1.14.0
38
+ #### Features
39
+
40
+ * update testcafe ([#1884](https://github.com/applitools/eyes.sdk.javascript1/issues/1884)) ([104f1b6](https://github.com/applitools/eyes.sdk.javascript1/commit/104f1b6cc0d4f107ba46404383de2fa11fe99dcf))
41
+
42
+
43
+
44
+ * @applitools/screenshoter bumped to 3.8.10
45
+
46
+ * @applitools/nml-client bumped to 1.5.10
47
+
48
+ * @applitools/tunnel-client bumped to 1.2.2
49
+
50
+ * @applitools/ufg-client bumped to 1.8.0
51
+ #### Features
52
+
53
+ * add support for fallback in `req` ([#1899](https://github.com/applitools/eyes.sdk.javascript1/issues/1899)) ([d69c4b5](https://github.com/applitools/eyes.sdk.javascript1/commit/d69c4b5830370c471dfc25b6e2caddca8b458df9))
54
+
55
+
56
+
57
+ * @applitools/ec-client bumped to 1.7.7
58
+
59
+ * @applitools/core-base bumped to 1.5.3
60
+
61
+ * @applitools/core bumped to 3.10.1
62
+
63
+ * @applitools/eyes bumped to 1.8.1
64
+
65
+
66
+ ## [4.67.4](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-selenium@4.67.3...js/eyes-selenium@4.67.4) (2023-08-30)
67
+
68
+
69
+ ### Dependencies
70
+
71
+ * @applitools/utils bumped to 1.5.2
72
+ #### Bug Fixes
73
+
74
+ * fixed some types ([498b1d7](https://github.com/applitools/eyes.sdk.javascript1/commit/498b1d7c547df04773b64b66ee39cccb402c093e))
75
+ * @applitools/nml-client bumped to 1.5.9
76
+ #### Bug Fixes
77
+
78
+ * update broker url when server respond with error ([#1882](https://github.com/applitools/eyes.sdk.javascript1/issues/1882)) ([ab5a6ae](https://github.com/applitools/eyes.sdk.javascript1/commit/ab5a6ae8976b061bda8b56a9cc11c149e47d6dea))
79
+
80
+
81
+
82
+ * @applitools/core bumped to 3.10.0
83
+ #### Features
84
+
85
+ * allowed running multiple classic test with different devices for applitoolsified native apps ([#1891](https://github.com/applitools/eyes.sdk.javascript1/issues/1891)) ([a84311f](https://github.com/applitools/eyes.sdk.javascript1/commit/a84311f88e6f532268543a96f841ae5ad87d5659))
86
+
87
+
88
+
89
+ * @applitools/logger bumped to 2.0.9
90
+
91
+ * @applitools/socket bumped to 1.1.9
92
+
93
+ * @applitools/req bumped to 1.5.4
94
+
95
+ * @applitools/image bumped to 1.1.4
96
+
97
+ * @applitools/spec-driver-webdriver bumped to 1.0.43
98
+
99
+ * @applitools/spec-driver-selenium bumped to 1.5.57
100
+
101
+ * @applitools/spec-driver-puppeteer bumped to 1.1.74
102
+
103
+ * @applitools/driver bumped to 1.13.6
104
+
105
+ * @applitools/screenshoter bumped to 3.8.9
106
+
107
+ * @applitools/tunnel-client bumped to 1.2.1
108
+
109
+ * @applitools/ufg-client bumped to 1.7.2
110
+
111
+ * @applitools/ec-client bumped to 1.7.6
112
+
113
+ * @applitools/core-base bumped to 1.5.2
114
+
115
+ * @applitools/eyes bumped to 1.8.0
116
+ #### Features
117
+
118
+ * added more iOS devices ([a84311f](https://github.com/applitools/eyes.sdk.javascript1/commit/a84311f88e6f532268543a96f841ae5ad87d5659))
119
+
120
+
121
+
122
+
3
123
  ## [4.67.3](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-selenium@4.67.2...js/eyes-selenium@4.67.3) (2023-08-18)
4
124
 
5
125
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-selenium",
3
- "version": "4.67.3",
3
+ "version": "4.67.5",
4
4
  "description": "Applitools Eyes SDK for Selenium WebDriver",
5
5
  "keywords": [
6
6
  "eyes-selenium",
@@ -49,13 +49,13 @@
49
49
  "up:framework": "yarn add --dev --caret selenium-webdriver${APPLITOOLS_FRAMEWORK_VERSION:+@$APPLITOOLS_FRAMEWORK_VERSION}"
50
50
  },
51
51
  "dependencies": {
52
- "@applitools/eyes": "1.7.3",
53
- "@applitools/spec-driver-selenium": "1.5.56"
52
+ "@applitools/eyes": "1.8.1",
53
+ "@applitools/spec-driver-selenium": "1.5.58"
54
54
  },
55
55
  "devDependencies": {
56
- "@applitools/api-extractor": "^1.2.21",
56
+ "@applitools/api-extractor": "^1.2.22",
57
57
  "@applitools/bongo": "^5.6.1",
58
- "@applitools/generic": "^3.3.9",
58
+ "@applitools/generic": "^3.3.10",
59
59
  "@applitools/test-utils": "^1.5.17",
60
60
  "@types/node": "^12.20.55",
61
61
  "@types/selenium-webdriver": "^4.1.1",
package/types/index.d.ts CHANGED
@@ -357,7 +357,21 @@ export type TargetAutomation = {
357
357
  webview(webview?: undefined | string): CheckSettingsAutomation;
358
358
  webview(webview?: undefined | boolean): CheckSettingsAutomation;
359
359
  };
360
+ export const TargetAutomation: {
361
+ window(): CheckSettingsAutomation;
362
+ region(region: (RegionPlain | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })))): CheckSettingsAutomation;
363
+ region(region: LegacyRegionPlain): CheckSettingsAutomation;
364
+ frame(context: { frame: number | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })); scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })); }): CheckSettingsAutomation;
365
+ frame(frame: number, scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }))): CheckSettingsAutomation;
366
+ frame(frame: (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; })), scrollRootElement?: undefined | (Element | (string | Selector | { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }))): CheckSettingsAutomation;
367
+ shadow(selector: string): CheckSettingsAutomation;
368
+ shadow(selector: Selector): CheckSettingsAutomation;
369
+ shadow(selector: { selector: string | Selector; type?: undefined | string; shadow?: undefined | EyesSelector<Selector>; frame?: undefined | EyesSelector<Selector>; }): CheckSettingsAutomation;
370
+ webview(webview?: undefined | string): CheckSettingsAutomation;
371
+ webview(webview?: undefined | boolean): CheckSettingsAutomation;
372
+ };
360
373
  export type Target = TargetImage & TargetAutomation;
374
+ export const Target: TargetImage & TargetAutomation;
361
375
  export type OCRRegion = { target: Element | RegionPlain | EyesSelector<Selector>; hint?: undefined | string; minMatch?: undefined | number; language?: undefined | string; };
362
376
  export type ConfigurationPlain = {
363
377
  debugScreenshots?: undefined | { save: boolean; path?: undefined | string; prefix?: undefined | string; };
@@ -774,33 +788,66 @@ export enum FailureReport {
774
788
  IMMEDIATE = 'IMMEDIATE',
775
789
  ON_CLOSE = 'ON_CLOSE'
776
790
  }
777
- export type IosDeviceNamePlain = "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 14 Pro Max" | "iPhone 14" | "iPhone 13 Pro Max" | "iPhone 13 Pro" | "iPhone 13" | "iPhone 12 Pro Max" | "iPhone 12 Pro" | "iPhone 12" | "iPhone 12 mini" | "iPhone Xs" | "iPhone 8" | "iPhone 8 Plus" | "iPhone 7" | "iPhone SE (1st generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad (7th generation)" | "iPad (9th generation)" | "iPad Air (2nd generation)" | "iPad Air (4th generation)";
791
+ export type IosDeviceNamePlain = "iPad Air 2" | "iPhone 11" | "iPhone 11 Pro" | "iPhone 11 Pro Max" | "iPhone X" | "iPhone XR" | "iPhone 6s" | "iPhone 6s Plus" | "iPhone 7" | "iPhone 7 Plus" | "iPhone 8" | "iPhone 8 Plus" | "iPhone Xs" | "iPhone Xs Max" | "iPhone 12" | "iPhone 12 mini" | "iPhone 12 Pro" | "iPhone 12 Pro Max" | "iPhone 13" | "iPhone 13 mini" | "iPhone 13 Pro" | "iPhone 13 Pro Max" | "iPhone 14" | "iPhone 14 Plus" | "iPhone 14 Pro" | "iPhone 14 Pro Max" | "iPhone SE (1st generation)" | "iPhone SE (2nd generation)" | "iPhone SE (3rd generation)" | "iPad (5th generation)" | "iPad (6th generation)" | "iPad (7th generation)" | "iPad (8th generation)" | "iPad (9th generation)" | "iPad (10th generation)" | "iPad Air (3rd generation)" | "iPad Air (4th generation)" | "iPad Air (5th generation)" | "iPad mini 4" | "iPad mini (5th generation)" | "iPad mini (6th generation)" | "iPad Pro (9.7-inch)" | "iPad Pro (10.5-inch)" | "iPad Pro (11-inch) (1st generation)" | "iPad Pro (12.9-inch) (1st generation)" | "iPad Pro (11-inch) (2nd generation)" | "iPad Pro (12.9-inch) (2nd generation)" | "iPad Pro (11-inch) (3rd generation)" | "iPad Pro (12.9-inch) (3rd generation)" | "iPad Pro (11-inch) (4th generation)" | "iPad Pro (12.9-inch) (4th generation)" | "iPad Pro (12.9-inch) (5th generation)" | "iPad Pro (12.9-inch) (6th generation)" | "iPod touch (7th generation)";
778
792
  export enum IosDeviceName {
779
- iPhone_14_Pro_Max = 'iPhone 14 Pro Max',
780
- iPhone_14 = 'iPhone 14',
781
- iPhone_13_Pro_Max = 'iPhone 13 Pro Max',
782
- iPhone_13_Pro = 'iPhone 13 Pro',
783
- iPhone_13 = 'iPhone 13',
784
- iPhone_12_Pro_Max = 'iPhone 12 Pro Max',
785
- iPhone_12_Pro = 'iPhone 12 Pro',
786
- iPhone_12 = 'iPhone 12',
787
- iPhone_12_mini = 'iPhone 12 mini',
788
- iPhone_11_Pro = 'iPhone 11 Pro',
789
- iPhone_11_Pro_Max = 'iPhone 11 Pro Max',
790
- iPhone_11 = 'iPhone 11',
791
- iPhone_XR = 'iPhone XR',
792
- iPhone_XS = 'iPhone Xs',
793
- iPhone_X = 'iPhone X',
793
+ iPhone_6s = 'iPhone 6s',
794
+ iPhone_6s_Plus = 'iPhone 6s Plus',
795
+ iPhone_7 = 'iPhone 7',
796
+ iPhone_7_Plus = 'iPhone 7 Plus',
794
797
  iPhone_8 = 'iPhone 8',
795
798
  iPhone_8_Plus = 'iPhone 8 Plus',
796
- iPhone_7 = 'iPhone 7',
799
+ iPhone_X = 'iPhone X',
800
+ iPhone_XR = 'iPhone XR',
801
+ iPhone_Xs = 'iPhone Xs',
802
+ iPhone_XS = 'iPhone Xs',
803
+ iPhone_Xs_Max = 'iPhone Xs Max',
804
+ iPhone_11 = 'iPhone 11',
805
+ iPhone_11_Pro = 'iPhone 11 Pro',
806
+ iPhone_11_Pro_Max = 'iPhone 11 Pro Max',
807
+ iPhone_12 = 'iPhone 12',
808
+ iPhone_12_mini = 'iPhone 12 mini',
809
+ iPhone_12_Pro = 'iPhone 12 Pro',
810
+ iPhone_12_Pro_Max = 'iPhone 12 Pro Max',
811
+ iPhone_13 = 'iPhone 13',
812
+ iPhone_13_mini = 'iPhone 13 mini',
813
+ iPhone_13_Pro = 'iPhone 13 Pro',
814
+ iPhone_13_Pro_Max = 'iPhone 13 Pro Max',
815
+ iPhone_14 = 'iPhone 14',
816
+ iPhone_14_Plus = 'iPhone 14 Plus',
817
+ iPhone_14_Pro = 'iPhone 14 Pro',
818
+ iPhone_14_Pro_Max = 'iPhone 14 Pro Max',
797
819
  iPhone_SE = 'iPhone SE (1st generation)',
798
- iPad_Pro_3 = 'iPad Pro (12.9-inch) (3rd generation)',
799
- iPad_Pro_4 = 'iPad Pro (11-inch) (4th generation)',
820
+ iPhone_SE_1 = 'iPhone SE (1st generation)',
821
+ iPhone_SE_2 = 'iPhone SE (2nd generation)',
822
+ iPhone_SE_3 = 'iPhone SE (3rd generation)',
823
+ iPad_5 = 'iPad (5th generation)',
824
+ iPad_6 = 'iPad (6th generation)',
800
825
  iPad_7 = 'iPad (7th generation)',
826
+ iPad_8 = 'iPad (8th generation)',
801
827
  iPad_9 = 'iPad (9th generation)',
802
- iPad_Air_2 = 'iPad Air (2nd generation)',
803
- iPad_Air_4 = 'iPad Air (4th generation)'
828
+ iPad_10 = 'iPad (10th generation)',
829
+ iPad_Air_2 = 'iPad Air 2',
830
+ iPad_Air_3 = 'iPad Air (3rd generation)',
831
+ iPad_Air_4 = 'iPad Air (4th generation)',
832
+ iPad_Air_5 = 'iPad Air (5th generation)',
833
+ iPad_mini_4 = 'iPad mini 4',
834
+ iPad_mini_5 = 'iPad mini (5th generation)',
835
+ iPad_mini_6 = 'iPad mini (6th generation)',
836
+ iPad_Pro_9_7_inch_1 = 'iPad Pro (9.7-inch)',
837
+ iPad_Pro_10_5_inch_1 = 'iPad Pro (10.5-inch)',
838
+ iPad_Pro_11_inch_1 = 'iPad Pro (11-inch) (1st generation)',
839
+ iPad_Pro_12_9_inch_1 = 'iPad Pro (12.9-inch) (1st generation)',
840
+ iPad_Pro_11_inch_2 = 'iPad Pro (11-inch) (2nd generation)',
841
+ iPad_Pro_12_9_inch_2 = 'iPad Pro (12.9-inch) (2nd generation)',
842
+ iPad_Pro_11_inch_3 = 'iPad Pro (11-inch) (3rd generation)',
843
+ iPad_Pro_12_9_inch_3 = 'iPad Pro (12.9-inch) (3rd generation)',
844
+ iPad_Pro_3 = 'iPad Pro (12.9-inch) (3rd generation)',
845
+ iPad_Pro_11_inch_4 = 'iPad Pro (11-inch) (4th generation)',
846
+ iPad_Pro_4 = 'iPad Pro (11-inch) (4th generation)',
847
+ iPad_Pro_12_9_inch_4 = 'iPad Pro (12.9-inch) (4th generation)',
848
+ iPad_Pro_12_9_inch_5 = 'iPad Pro (12.9-inch) (5th generation)',
849
+ iPad_Pro_12_9_inch_6 = 'iPad Pro (12.9-inch) (6th generation)',
850
+ iPod_touch_7 = 'iPod touch (7th generation)'
804
851
  }
805
852
  export type IosVersionPlain = AndroidVersionPlain;
806
853
  export enum IosVersion {
@@ -1145,6 +1192,16 @@ export type TargetImage = {
1145
1192
  url(imageUrl: string): CheckSettingsImage;
1146
1193
  url(imageUrl: URL): CheckSettingsImage;
1147
1194
  };
1195
+ export const TargetImage: {
1196
+ image(image: string): CheckSettingsImage;
1197
+ image(image: Buffer): CheckSettingsImage;
1198
+ image(image: URL): CheckSettingsImage;
1199
+ buffer(imageBuffer: Buffer): CheckSettingsImage;
1200
+ base64(imageBase64: string): CheckSettingsImage;
1201
+ path(imagePath: string): CheckSettingsImage;
1202
+ url(imageUrl: string): CheckSettingsImage;
1203
+ url(imageUrl: URL): CheckSettingsImage;
1204
+ };
1148
1205
  export type CutProviderPlain = { top: number; right: number; bottom: number; left: number; } | { x: number; y: number; width: number; height: number; };
1149
1206
  export class CutProvider implements Required<{
1150
1207
  x: number;