@applitools/eyes-selenium 4.67.2 → 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,271 @@
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
+
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)
124
+
125
+
126
+ ### Code Refactoring
127
+
128
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
129
+
130
+
131
+ ### Dependencies
132
+
133
+ * @applitools/utils bumped to 1.5.1
134
+ #### Code Refactoring
135
+
136
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
137
+ * @applitools/logger bumped to 2.0.8
138
+ #### Code Refactoring
139
+
140
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
141
+
142
+
143
+
144
+ * @applitools/socket bumped to 1.1.8
145
+ #### Code Refactoring
146
+
147
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
148
+
149
+
150
+
151
+ * @applitools/req bumped to 1.5.3
152
+ #### Code Refactoring
153
+
154
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
155
+
156
+
157
+
158
+ * @applitools/image bumped to 1.1.3
159
+ #### Code Refactoring
160
+
161
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
162
+
163
+
164
+
165
+ * @applitools/snippets bumped to 2.4.23
166
+ #### Code Refactoring
167
+
168
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
169
+ * @applitools/spec-driver-webdriver bumped to 1.0.42
170
+ #### Code Refactoring
171
+
172
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
173
+
174
+
175
+
176
+ * @applitools/spec-driver-selenium bumped to 1.5.56
177
+ #### Code Refactoring
178
+
179
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
180
+
181
+
182
+
183
+ * @applitools/spec-driver-puppeteer bumped to 1.1.73
184
+ #### Code Refactoring
185
+
186
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
187
+
188
+
189
+
190
+ * @applitools/driver bumped to 1.13.5
191
+ #### Bug Fixes
192
+
193
+ * optimize driver usage in close ([#1867](https://github.com/applitools/eyes.sdk.javascript1/issues/1867)) ([60dff6b](https://github.com/applitools/eyes.sdk.javascript1/commit/60dff6b160e69d3893c91a1125d668fa18b43072))
194
+
195
+
196
+ #### Code Refactoring
197
+
198
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
199
+
200
+
201
+
202
+ * @applitools/screenshoter bumped to 3.8.8
203
+ #### Code Refactoring
204
+
205
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
206
+
207
+
208
+
209
+ * @applitools/nml-client bumped to 1.5.8
210
+ #### Code Refactoring
211
+
212
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
213
+
214
+
215
+
216
+ * @applitools/tunnel-client bumped to 1.2.0
217
+ #### Features
218
+
219
+ * replace and destroy tunnels by tunnel id ([#1878](https://github.com/applitools/eyes.sdk.javascript1/issues/1878)) ([22bcc15](https://github.com/applitools/eyes.sdk.javascript1/commit/22bcc15b31457e3da56cdb6f73bee3dcb7e051a1))
220
+
221
+
222
+ #### Code Refactoring
223
+
224
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
225
+
226
+
227
+
228
+ * @applitools/ufg-client bumped to 1.7.1
229
+ #### Code Refactoring
230
+
231
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
232
+
233
+
234
+
235
+ * @applitools/ec-client bumped to 1.7.5
236
+ #### Code Refactoring
237
+
238
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
239
+
240
+
241
+
242
+ * @applitools/core-base bumped to 1.5.1
243
+ #### Code Refactoring
244
+
245
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
246
+
247
+
248
+
249
+ * @applitools/core bumped to 3.9.1
250
+ #### Bug Fixes
251
+
252
+ * optimize driver usage in close ([#1867](https://github.com/applitools/eyes.sdk.javascript1/issues/1867)) ([60dff6b](https://github.com/applitools/eyes.sdk.javascript1/commit/60dff6b160e69d3893c91a1125d668fa18b43072))
253
+
254
+
255
+ #### Code Refactoring
256
+
257
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
258
+
259
+
260
+
261
+ * @applitools/eyes bumped to 1.7.3
262
+ #### Code Refactoring
263
+
264
+ * refactored spec driver interface ([#1839](https://github.com/applitools/eyes.sdk.javascript1/issues/1839)) ([aa49ec2](https://github.com/applitools/eyes.sdk.javascript1/commit/aa49ec2a7d14b8529acc3a8a4c2baecfa113d98a))
265
+
266
+
267
+
268
+
3
269
  ## [4.67.2](https://github.com/applitools/eyes.sdk.javascript1/compare/js/eyes-selenium@4.67.1...js/eyes-selenium@4.67.2) (2023-08-10)
4
270
 
5
271
 
package/dist/api.js CHANGED
@@ -29,10 +29,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.closeBatch = exports.BatchClose = exports.Configuration = exports.Target = exports.TargetAutomation = exports.CheckSettings = exports.CheckSettingsAutomation = exports.Eyes = void 0;
30
30
  const extract_environment_1 = require("./extract-environment");
31
31
  const eyes = __importStar(require("@applitools/eyes"));
32
- const spec = __importStar(require("@applitools/spec-driver-selenium"));
32
+ const spec = __importStar(require("./spec-driver"));
33
33
  __exportStar(require("@applitools/eyes"), exports);
34
34
  const environment = (0, extract_environment_1.extractEnvironment)();
35
- const sdk = { spec, agentId: `eyes.selenium/${require('../package.json').version}`, environment };
35
+ const sdk = {
36
+ spec: spec,
37
+ agentId: `eyes.selenium/${require('../package.json').version}`,
38
+ environment,
39
+ };
36
40
  class Eyes extends eyes.Eyes {
37
41
  }
38
42
  exports.Eyes = Eyes;
@@ -40,16 +44,16 @@ Eyes._sdk = sdk;
40
44
  class CheckSettingsAutomation extends eyes.CheckSettingsAutomation {
41
45
  }
42
46
  exports.CheckSettingsAutomation = CheckSettingsAutomation;
43
- CheckSettingsAutomation._spec = spec;
47
+ CheckSettingsAutomation._spec = sdk.spec;
44
48
  class CheckSettings extends CheckSettingsAutomation {
45
49
  }
46
50
  exports.CheckSettings = CheckSettings;
47
- exports.TargetAutomation = { ...eyes.TargetAutomation, spec };
48
- exports.Target = { ...eyes.Target, spec };
51
+ exports.TargetAutomation = { ...eyes.TargetAutomation, spec: sdk.spec };
52
+ exports.Target = { ...eyes.Target, spec: sdk.spec };
49
53
  class Configuration extends eyes.Configuration {
50
54
  }
51
55
  exports.Configuration = Configuration;
52
- Configuration._spec = spec;
56
+ Configuration._spec = sdk.spec;
53
57
  class BatchClose extends eyes.BatchClose {
54
58
  }
55
59
  exports.BatchClose = BatchClose;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@applitools/eyes-selenium",
3
- "version": "4.67.2",
3
+ "version": "4.67.5",
4
4
  "description": "Applitools Eyes SDK for Selenium WebDriver",
5
5
  "keywords": [
6
6
  "eyes-selenium",
@@ -46,20 +46,20 @@
46
46
  "test:sauce": "MOCHA_ONLY_TAGS=sauce run test:coverage",
47
47
  "test:coverage": "APPLITOOLS_BATCH_NAME='JS Coverage Tests: eyes-selenium' APPLITOOLS_BATCH_ID=$(uuidgen) MOCHA_GROUP=coverage run --top-level mocha './test/generated-coverage/*.spec.js' -r @applitools/test-utils/mocha-hooks/docker --parallel --jobs ${MOCHA_JOBS:-15} --exit",
48
48
  "setup": "run --top-level browsers:setup",
49
- "up:framework": "run --top-level add-silent selenium-webdriver"
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.2",
53
- "@applitools/spec-driver-selenium": "1.5.55"
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",
57
- "@applitools/bongo": "^5.4.3",
58
- "@applitools/generic": "^3.3.8",
56
+ "@applitools/api-extractor": "^1.2.22",
57
+ "@applitools/bongo": "^5.6.1",
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",
62
- "chromedriver": "^114.0.3",
62
+ "chromedriver": "^115.0.1",
63
63
  "selenium-webdriver": "4.4.0"
64
64
  },
65
65
  "peerDependencies": {
package/types/index.d.ts CHANGED
@@ -1,7 +1,13 @@
1
1
  export type Driver = import('selenium-webdriver').WebDriver & { __applitoolsBrand?: undefined; };
2
2
  export type Element = import('selenium-webdriver').WebElement & { __applitoolsBrand?: undefined; };
3
3
  export type Selector = (import('selenium-webdriver').By | import('selenium-webdriver').ByHash | import('selenium-webdriver').RelativeBy | { using: string; value: string; } | ((webdriver: import('selenium-webdriver').WebDriver) => Promise<any>)) & { __applitoolsBrand?: undefined; };
4
- export type SpecType = { driver: Driver; context: Driver; element: Element; selector: Selector; };
4
+ export type SpecType = {
5
+ driver: Driver;
6
+ context: Driver;
7
+ element: Element;
8
+ selector: Selector;
9
+ secondary: never;
10
+ };
5
11
  export class Eyes {
6
12
  static setViewportSize: (driver: Driver, viewportSize: RectangleSize) => Promise<void>;
7
13
  static getExecutionCloudUrl(config?: undefined | ConfigurationPlain): Promise<string>;
@@ -351,6 +357,20 @@ export type TargetAutomation = {
351
357
  webview(webview?: undefined | string): CheckSettingsAutomation;
352
358
  webview(webview?: undefined | boolean): CheckSettingsAutomation;
353
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
+ };
373
+ export type Target = TargetImage & TargetAutomation;
354
374
  export const Target: TargetImage & TargetAutomation;
355
375
  export type OCRRegion = { target: Element | RegionPlain | EyesSelector<Selector>; hint?: undefined | string; minMatch?: undefined | number; language?: undefined | string; };
356
376
  export type ConfigurationPlain = {
@@ -768,33 +788,66 @@ export enum FailureReport {
768
788
  IMMEDIATE = 'IMMEDIATE',
769
789
  ON_CLOSE = 'ON_CLOSE'
770
790
  }
771
- 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)";
772
792
  export enum IosDeviceName {
773
- iPhone_14_Pro_Max = 'iPhone 14 Pro Max',
774
- iPhone_14 = 'iPhone 14',
775
- iPhone_13_Pro_Max = 'iPhone 13 Pro Max',
776
- iPhone_13_Pro = 'iPhone 13 Pro',
777
- iPhone_13 = 'iPhone 13',
778
- iPhone_12_Pro_Max = 'iPhone 12 Pro Max',
779
- iPhone_12_Pro = 'iPhone 12 Pro',
780
- iPhone_12 = 'iPhone 12',
781
- iPhone_12_mini = 'iPhone 12 mini',
782
- iPhone_11_Pro = 'iPhone 11 Pro',
783
- iPhone_11_Pro_Max = 'iPhone 11 Pro Max',
784
- iPhone_11 = 'iPhone 11',
785
- iPhone_XR = 'iPhone XR',
786
- iPhone_XS = 'iPhone Xs',
787
- 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',
788
797
  iPhone_8 = 'iPhone 8',
789
798
  iPhone_8_Plus = 'iPhone 8 Plus',
790
- 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',
791
819
  iPhone_SE = 'iPhone SE (1st generation)',
792
- iPad_Pro_3 = 'iPad Pro (12.9-inch) (3rd generation)',
793
- 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)',
794
825
  iPad_7 = 'iPad (7th generation)',
826
+ iPad_8 = 'iPad (8th generation)',
795
827
  iPad_9 = 'iPad (9th generation)',
796
- iPad_Air_2 = 'iPad Air (2nd generation)',
797
- 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)'
798
851
  }
799
852
  export type IosVersionPlain = AndroidVersionPlain;
800
853
  export enum IosVersion {
@@ -1139,6 +1192,16 @@ export type TargetImage = {
1139
1192
  url(imageUrl: string): CheckSettingsImage;
1140
1193
  url(imageUrl: URL): CheckSettingsImage;
1141
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
+ };
1142
1205
  export type CutProviderPlain = { top: number; right: number; bottom: number; left: number; } | { x: number; y: number; width: number; height: number; };
1143
1206
  export class CutProvider implements Required<{
1144
1207
  x: number;