askui 0.22.0 → 0.23.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.
@@ -99,28 +99,6 @@ export declare class FluentFilters extends FluentBase {
99
99
  * @return {FluentFiltersOrRelations}
100
100
  */
101
101
  button(): FluentFiltersOrRelations;
102
- /**
103
- *
104
- * @param {number} index - element index
105
- *
106
- * @return {FluentFiltersOrRelations}
107
- */
108
- row(index: number): FluentFiltersOrRelations;
109
- /**
110
- *
111
- * @param {number} index - element index
112
- *
113
- * @return {FluentFiltersOrRelations}
114
- */
115
- column(index: number): FluentFiltersOrRelations;
116
- /**
117
- *
118
- * @param {number} row_index - row index
119
- * @param {number} column_index - column index
120
- *
121
- * @return {FluentFiltersOrRelations}
122
- */
123
- cell(row_index: number, column_index: number): FluentFiltersOrRelations;
124
102
  /**
125
103
  * Filters for a UI element 'table'.
126
104
  *
@@ -387,42 +365,6 @@ export declare class FluentFilters extends FluentBase {
387
365
  * @return {FluentFiltersOrRelations}
388
366
  */
389
367
  pta(text: string): FluentFiltersOrRelations;
390
- /**
391
- * Filters elements based on a textual description.
392
- *
393
- * **What Should I Write as Matching Text**
394
- *
395
- * The text description inside the `matching()` should describe the element visually.
396
- * It understands color, some famous company/product names, general descriptions.
397
- *
398
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
399
- *
400
- * A bit of playing around to find a matching description is sometimes needed:
401
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
402
- * Generally, the more detail the better.
403
- *
404
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
405
- *
406
- * **Examples:**
407
- * ```typescript
408
- * // Select the black sneaker from a bunch of sneakers
409
- * await aui.click().element().matching('a black sneaker shoe').exec();
410
- *
411
- * // Select an image that has text in it
412
- * await aui.click().element().matching('has Burger King in it').exec();
413
- * await aui.click().element().matching('has adidas in it').exec();
414
- *
415
- * // Target a logo/image by describing it
416
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
417
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
418
- * await aui.click().element().matching('logo looking like a seashell').exec();
419
- * ```
420
- *
421
- * @param {string} text - A description of the target element.
422
- *
423
- * @return {FluentFiltersOrRelations}
424
- */
425
- matching(text: string): FluentFiltersOrRelations;
426
368
  }
427
369
  export declare class FluentFiltersOrRelations extends FluentFilters {
428
370
  /**
@@ -933,28 +875,6 @@ export declare class FluentFiltersCondition extends FluentBase {
933
875
  * @return {FluentFiltersOrRelationsCondition}
934
876
  */
935
877
  button(): FluentFiltersOrRelationsCondition;
936
- /**
937
- *
938
- * @param {number} index - element index
939
- *
940
- * @return {FluentFiltersOrRelationsCondition}
941
- */
942
- row(index: number): FluentFiltersOrRelationsCondition;
943
- /**
944
- *
945
- * @param {number} index - element index
946
- *
947
- * @return {FluentFiltersOrRelationsCondition}
948
- */
949
- column(index: number): FluentFiltersOrRelationsCondition;
950
- /**
951
- *
952
- * @param {number} row_index - row index
953
- * @param {number} column_index - column index
954
- *
955
- * @return {FluentFiltersOrRelationsCondition}
956
- */
957
- cell(row_index: number, column_index: number): FluentFiltersOrRelationsCondition;
958
878
  /**
959
879
  * Filters for a UI element 'table'.
960
880
  *
@@ -1221,42 +1141,6 @@ export declare class FluentFiltersCondition extends FluentBase {
1221
1141
  * @return {FluentFiltersOrRelationsCondition}
1222
1142
  */
1223
1143
  pta(text: string): FluentFiltersOrRelationsCondition;
1224
- /**
1225
- * Filters elements based on a textual description.
1226
- *
1227
- * **What Should I Write as Matching Text**
1228
- *
1229
- * The text description inside the `matching()` should describe the element visually.
1230
- * It understands color, some famous company/product names, general descriptions.
1231
- *
1232
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
1233
- *
1234
- * A bit of playing around to find a matching description is sometimes needed:
1235
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
1236
- * Generally, the more detail the better.
1237
- *
1238
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
1239
- *
1240
- * **Examples:**
1241
- * ```typescript
1242
- * // Select the black sneaker from a bunch of sneakers
1243
- * await aui.click().element().matching('a black sneaker shoe').exec();
1244
- *
1245
- * // Select an image that has text in it
1246
- * await aui.click().element().matching('has Burger King in it').exec();
1247
- * await aui.click().element().matching('has adidas in it').exec();
1248
- *
1249
- * // Target a logo/image by describing it
1250
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
1251
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
1252
- * await aui.click().element().matching('logo looking like a seashell').exec();
1253
- * ```
1254
- *
1255
- * @param {string} text - A description of the target element.
1256
- *
1257
- * @return {FluentFiltersOrRelationsCondition}
1258
- */
1259
- matching(text: string): FluentFiltersOrRelationsCondition;
1260
1144
  }
1261
1145
  export declare class FluentFiltersOrRelationsCondition extends FluentFiltersCondition {
1262
1146
  /**
@@ -2271,28 +2155,6 @@ export declare class FluentFiltersGetter extends FluentBase {
2271
2155
  * @return {FluentFiltersOrRelationsGetter}
2272
2156
  */
2273
2157
  button(): FluentFiltersOrRelationsGetter;
2274
- /**
2275
- *
2276
- * @param {number} index - element index
2277
- *
2278
- * @return {FluentFiltersOrRelationsGetter}
2279
- */
2280
- row(index: number): FluentFiltersOrRelationsGetter;
2281
- /**
2282
- *
2283
- * @param {number} index - element index
2284
- *
2285
- * @return {FluentFiltersOrRelationsGetter}
2286
- */
2287
- column(index: number): FluentFiltersOrRelationsGetter;
2288
- /**
2289
- *
2290
- * @param {number} row_index - row index
2291
- * @param {number} column_index - column index
2292
- *
2293
- * @return {FluentFiltersOrRelationsGetter}
2294
- */
2295
- cell(row_index: number, column_index: number): FluentFiltersOrRelationsGetter;
2296
2158
  /**
2297
2159
  * Filters for a UI element 'table'.
2298
2160
  *
@@ -2559,42 +2421,6 @@ export declare class FluentFiltersGetter extends FluentBase {
2559
2421
  * @return {FluentFiltersOrRelationsGetter}
2560
2422
  */
2561
2423
  pta(text: string): FluentFiltersOrRelationsGetter;
2562
- /**
2563
- * Filters elements based on a textual description.
2564
- *
2565
- * **What Should I Write as Matching Text**
2566
- *
2567
- * The text description inside the `matching()` should describe the element visually.
2568
- * It understands color, some famous company/product names, general descriptions.
2569
- *
2570
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
2571
- *
2572
- * A bit of playing around to find a matching description is sometimes needed:
2573
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
2574
- * Generally, the more detail the better.
2575
- *
2576
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
2577
- *
2578
- * **Examples:**
2579
- * ```typescript
2580
- * // Select the black sneaker from a bunch of sneakers
2581
- * await aui.click().element().matching('a black sneaker shoe').exec();
2582
- *
2583
- * // Select an image that has text in it
2584
- * await aui.click().element().matching('has Burger King in it').exec();
2585
- * await aui.click().element().matching('has adidas in it').exec();
2586
- *
2587
- * // Target a logo/image by describing it
2588
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
2589
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
2590
- * await aui.click().element().matching('logo looking like a seashell').exec();
2591
- * ```
2592
- *
2593
- * @param {string} text - A description of the target element.
2594
- *
2595
- * @return {FluentFiltersOrRelationsGetter}
2596
- */
2597
- matching(text: string): FluentFiltersOrRelationsGetter;
2598
2424
  }
2599
2425
  export declare class FluentFiltersOrRelationsGetter extends FluentFiltersGetter {
2600
2426
  /**
@@ -196,46 +196,6 @@ class FluentFilters extends FluentBase {
196
196
  this._textStr += 'button';
197
197
  return new FluentFiltersOrRelations(this);
198
198
  }
199
- /**
200
- *
201
- * @param {number} index - element index
202
- *
203
- * @return {FluentFiltersOrRelations}
204
- */
205
- row(index) {
206
- this._textStr = '';
207
- this._textStr += 'row';
208
- this._textStr += ` ${index}`;
209
- return new FluentFiltersOrRelations(this);
210
- }
211
- /**
212
- *
213
- * @param {number} index - element index
214
- *
215
- * @return {FluentFiltersOrRelations}
216
- */
217
- column(index) {
218
- this._textStr = '';
219
- this._textStr += 'column';
220
- this._textStr += ` ${index}`;
221
- return new FluentFiltersOrRelations(this);
222
- }
223
- /**
224
- *
225
- * @param {number} row_index - row index
226
- * @param {number} column_index - column index
227
- *
228
- * @return {FluentFiltersOrRelations}
229
- */
230
- cell(row_index, column_index) {
231
- this._textStr = '';
232
- this._textStr += 'cell';
233
- this._textStr += ' row';
234
- this._textStr += ` ${row_index}`;
235
- this._textStr += ' column';
236
- this._textStr += ` ${column_index}`;
237
- return new FluentFiltersOrRelations(this);
238
- }
239
199
  /**
240
200
  * Filters for a UI element 'table'.
241
201
  *
@@ -580,47 +540,6 @@ class FluentFilters extends FluentBase {
580
540
  this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
581
541
  return new FluentFiltersOrRelations(this);
582
542
  }
583
- /**
584
- * Filters elements based on a textual description.
585
- *
586
- * **What Should I Write as Matching Text**
587
- *
588
- * The text description inside the `matching()` should describe the element visually.
589
- * It understands color, some famous company/product names, general descriptions.
590
- *
591
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
592
- *
593
- * A bit of playing around to find a matching description is sometimes needed:
594
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
595
- * Generally, the more detail the better.
596
- *
597
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
598
- *
599
- * **Examples:**
600
- * ```typescript
601
- * // Select the black sneaker from a bunch of sneakers
602
- * await aui.click().element().matching('a black sneaker shoe').exec();
603
- *
604
- * // Select an image that has text in it
605
- * await aui.click().element().matching('has Burger King in it').exec();
606
- * await aui.click().element().matching('has adidas in it').exec();
607
- *
608
- * // Target a logo/image by describing it
609
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
610
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
611
- * await aui.click().element().matching('logo looking like a seashell').exec();
612
- * ```
613
- *
614
- * @param {string} text - A description of the target element.
615
- *
616
- * @return {FluentFiltersOrRelations}
617
- */
618
- matching(text) {
619
- this._textStr = '';
620
- this._textStr += 'matching';
621
- this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
622
- return new FluentFiltersOrRelations(this);
623
- }
624
543
  }
625
544
  exports.FluentFilters = FluentFilters;
626
545
  // Relations
@@ -1232,46 +1151,6 @@ class FluentFiltersCondition extends FluentBase {
1232
1151
  this._textStr += 'button';
1233
1152
  return new FluentFiltersOrRelationsCondition(this);
1234
1153
  }
1235
- /**
1236
- *
1237
- * @param {number} index - element index
1238
- *
1239
- * @return {FluentFiltersOrRelationsCondition}
1240
- */
1241
- row(index) {
1242
- this._textStr = '';
1243
- this._textStr += 'row';
1244
- this._textStr += ` ${index}`;
1245
- return new FluentFiltersOrRelationsCondition(this);
1246
- }
1247
- /**
1248
- *
1249
- * @param {number} index - element index
1250
- *
1251
- * @return {FluentFiltersOrRelationsCondition}
1252
- */
1253
- column(index) {
1254
- this._textStr = '';
1255
- this._textStr += 'column';
1256
- this._textStr += ` ${index}`;
1257
- return new FluentFiltersOrRelationsCondition(this);
1258
- }
1259
- /**
1260
- *
1261
- * @param {number} row_index - row index
1262
- * @param {number} column_index - column index
1263
- *
1264
- * @return {FluentFiltersOrRelationsCondition}
1265
- */
1266
- cell(row_index, column_index) {
1267
- this._textStr = '';
1268
- this._textStr += 'cell';
1269
- this._textStr += ' row';
1270
- this._textStr += ` ${row_index}`;
1271
- this._textStr += ' column';
1272
- this._textStr += ` ${column_index}`;
1273
- return new FluentFiltersOrRelationsCondition(this);
1274
- }
1275
1154
  /**
1276
1155
  * Filters for a UI element 'table'.
1277
1156
  *
@@ -1616,47 +1495,6 @@ class FluentFiltersCondition extends FluentBase {
1616
1495
  this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
1617
1496
  return new FluentFiltersOrRelationsCondition(this);
1618
1497
  }
1619
- /**
1620
- * Filters elements based on a textual description.
1621
- *
1622
- * **What Should I Write as Matching Text**
1623
- *
1624
- * The text description inside the `matching()` should describe the element visually.
1625
- * It understands color, some famous company/product names, general descriptions.
1626
- *
1627
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
1628
- *
1629
- * A bit of playing around to find a matching description is sometimes needed:
1630
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
1631
- * Generally, the more detail the better.
1632
- *
1633
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
1634
- *
1635
- * **Examples:**
1636
- * ```typescript
1637
- * // Select the black sneaker from a bunch of sneakers
1638
- * await aui.click().element().matching('a black sneaker shoe').exec();
1639
- *
1640
- * // Select an image that has text in it
1641
- * await aui.click().element().matching('has Burger King in it').exec();
1642
- * await aui.click().element().matching('has adidas in it').exec();
1643
- *
1644
- * // Target a logo/image by describing it
1645
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
1646
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
1647
- * await aui.click().element().matching('logo looking like a seashell').exec();
1648
- * ```
1649
- *
1650
- * @param {string} text - A description of the target element.
1651
- *
1652
- * @return {FluentFiltersOrRelationsCondition}
1653
- */
1654
- matching(text) {
1655
- this._textStr = '';
1656
- this._textStr += 'matching';
1657
- this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
1658
- return new FluentFiltersOrRelationsCondition(this);
1659
- }
1660
1498
  }
1661
1499
  exports.FluentFiltersCondition = FluentFiltersCondition;
1662
1500
  // Relations
@@ -2951,46 +2789,6 @@ class FluentFiltersGetter extends FluentBase {
2951
2789
  this._textStr += 'button';
2952
2790
  return new FluentFiltersOrRelationsGetter(this);
2953
2791
  }
2954
- /**
2955
- *
2956
- * @param {number} index - element index
2957
- *
2958
- * @return {FluentFiltersOrRelationsGetter}
2959
- */
2960
- row(index) {
2961
- this._textStr = '';
2962
- this._textStr += 'row';
2963
- this._textStr += ` ${index}`;
2964
- return new FluentFiltersOrRelationsGetter(this);
2965
- }
2966
- /**
2967
- *
2968
- * @param {number} index - element index
2969
- *
2970
- * @return {FluentFiltersOrRelationsGetter}
2971
- */
2972
- column(index) {
2973
- this._textStr = '';
2974
- this._textStr += 'column';
2975
- this._textStr += ` ${index}`;
2976
- return new FluentFiltersOrRelationsGetter(this);
2977
- }
2978
- /**
2979
- *
2980
- * @param {number} row_index - row index
2981
- * @param {number} column_index - column index
2982
- *
2983
- * @return {FluentFiltersOrRelationsGetter}
2984
- */
2985
- cell(row_index, column_index) {
2986
- this._textStr = '';
2987
- this._textStr += 'cell';
2988
- this._textStr += ' row';
2989
- this._textStr += ` ${row_index}`;
2990
- this._textStr += ' column';
2991
- this._textStr += ` ${column_index}`;
2992
- return new FluentFiltersOrRelationsGetter(this);
2993
- }
2994
2792
  /**
2995
2793
  * Filters for a UI element 'table'.
2996
2794
  *
@@ -3335,47 +3133,6 @@ class FluentFiltersGetter extends FluentBase {
3335
3133
  this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
3336
3134
  return new FluentFiltersOrRelationsGetter(this);
3337
3135
  }
3338
- /**
3339
- * Filters elements based on a textual description.
3340
- *
3341
- * **What Should I Write as Matching Text**
3342
- *
3343
- * The text description inside the `matching()` should describe the element visually.
3344
- * It understands color, some famous company/product names, general descriptions.
3345
- *
3346
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
3347
- *
3348
- * A bit of playing around to find a matching description is sometimes needed:
3349
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
3350
- * Generally, the more detail the better.
3351
- *
3352
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
3353
- *
3354
- * **Examples:**
3355
- * ```typescript
3356
- * // Select the black sneaker from a bunch of sneakers
3357
- * await aui.click().element().matching('a black sneaker shoe').exec();
3358
- *
3359
- * // Select an image that has text in it
3360
- * await aui.click().element().matching('has Burger King in it').exec();
3361
- * await aui.click().element().matching('has adidas in it').exec();
3362
- *
3363
- * // Target a logo/image by describing it
3364
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
3365
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
3366
- * await aui.click().element().matching('logo looking like a seashell').exec();
3367
- * ```
3368
- *
3369
- * @param {string} text - A description of the target element.
3370
- *
3371
- * @return {FluentFiltersOrRelationsGetter}
3372
- */
3373
- matching(text) {
3374
- this._textStr = '';
3375
- this._textStr += 'matching';
3376
- this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
3377
- return new FluentFiltersOrRelationsGetter(this);
3378
- }
3379
3136
  }
3380
3137
  exports.FluentFiltersGetter = FluentFiltersGetter;
3381
3138
  // Relations
@@ -21,7 +21,7 @@ const inference_response_error_1 = require("./inference-response-error");
21
21
  const config_error_1 = require("./config-error");
22
22
  const logger_1 = require("../lib/logger");
23
23
  class InferenceClient {
24
- constructor(baseUrl, httpClient, resize, workspaceId, modelComposition, apiVersion = 'v3') {
24
+ constructor(baseUrl, httpClient, resize, workspaceId, modelComposition, apiVersion = 'v1') {
25
25
  this.baseUrl = baseUrl;
26
26
  this.httpClient = httpClient;
27
27
  this.resize = resize;
@@ -244,12 +244,6 @@ export declare class UiControlClient extends ApiCommands {
244
244
  * @param {string} label - The textfields label.
245
245
  */
246
246
  clickTextfieldNearestTo(label: string): Promise<void>;
247
- /**
248
- * Clicks an icon based on a description.
249
- *
250
- * @param {string} description
251
- */
252
- clickIcon(description: string): Promise<void>;
253
247
  /**
254
248
  * Wait until an AskUICommand does not fail.
255
249
  *
@@ -410,16 +410,6 @@ class UiControlClient extends dsl_1.ApiCommands {
410
410
  .exec();
411
411
  });
412
412
  }
413
- /**
414
- * Clicks an icon based on a description.
415
- *
416
- * @param {string} description
417
- */
418
- clickIcon(description) {
419
- return __awaiter(this, void 0, void 0, function* () {
420
- yield this.click().icon().matching(description).exec();
421
- });
422
- }
423
413
  /**
424
414
  * Wait until an AskUICommand does not fail.
425
415
  *
@@ -99,28 +99,6 @@ export declare class FluentFilters extends FluentBase {
99
99
  * @return {FluentFiltersOrRelations}
100
100
  */
101
101
  button(): FluentFiltersOrRelations;
102
- /**
103
- *
104
- * @param {number} index - element index
105
- *
106
- * @return {FluentFiltersOrRelations}
107
- */
108
- row(index: number): FluentFiltersOrRelations;
109
- /**
110
- *
111
- * @param {number} index - element index
112
- *
113
- * @return {FluentFiltersOrRelations}
114
- */
115
- column(index: number): FluentFiltersOrRelations;
116
- /**
117
- *
118
- * @param {number} row_index - row index
119
- * @param {number} column_index - column index
120
- *
121
- * @return {FluentFiltersOrRelations}
122
- */
123
- cell(row_index: number, column_index: number): FluentFiltersOrRelations;
124
102
  /**
125
103
  * Filters for a UI element 'table'.
126
104
  *
@@ -387,42 +365,6 @@ export declare class FluentFilters extends FluentBase {
387
365
  * @return {FluentFiltersOrRelations}
388
366
  */
389
367
  pta(text: string): FluentFiltersOrRelations;
390
- /**
391
- * Filters elements based on a textual description.
392
- *
393
- * **What Should I Write as Matching Text**
394
- *
395
- * The text description inside the `matching()` should describe the element visually.
396
- * It understands color, some famous company/product names, general descriptions.
397
- *
398
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
399
- *
400
- * A bit of playing around to find a matching description is sometimes needed:
401
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
402
- * Generally, the more detail the better.
403
- *
404
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
405
- *
406
- * **Examples:**
407
- * ```typescript
408
- * // Select the black sneaker from a bunch of sneakers
409
- * await aui.click().element().matching('a black sneaker shoe').exec();
410
- *
411
- * // Select an image that has text in it
412
- * await aui.click().element().matching('has Burger King in it').exec();
413
- * await aui.click().element().matching('has adidas in it').exec();
414
- *
415
- * // Target a logo/image by describing it
416
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
417
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
418
- * await aui.click().element().matching('logo looking like a seashell').exec();
419
- * ```
420
- *
421
- * @param {string} text - A description of the target element.
422
- *
423
- * @return {FluentFiltersOrRelations}
424
- */
425
- matching(text: string): FluentFiltersOrRelations;
426
368
  }
427
369
  export declare class FluentFiltersOrRelations extends FluentFilters {
428
370
  /**
@@ -933,28 +875,6 @@ export declare class FluentFiltersCondition extends FluentBase {
933
875
  * @return {FluentFiltersOrRelationsCondition}
934
876
  */
935
877
  button(): FluentFiltersOrRelationsCondition;
936
- /**
937
- *
938
- * @param {number} index - element index
939
- *
940
- * @return {FluentFiltersOrRelationsCondition}
941
- */
942
- row(index: number): FluentFiltersOrRelationsCondition;
943
- /**
944
- *
945
- * @param {number} index - element index
946
- *
947
- * @return {FluentFiltersOrRelationsCondition}
948
- */
949
- column(index: number): FluentFiltersOrRelationsCondition;
950
- /**
951
- *
952
- * @param {number} row_index - row index
953
- * @param {number} column_index - column index
954
- *
955
- * @return {FluentFiltersOrRelationsCondition}
956
- */
957
- cell(row_index: number, column_index: number): FluentFiltersOrRelationsCondition;
958
878
  /**
959
879
  * Filters for a UI element 'table'.
960
880
  *
@@ -1221,42 +1141,6 @@ export declare class FluentFiltersCondition extends FluentBase {
1221
1141
  * @return {FluentFiltersOrRelationsCondition}
1222
1142
  */
1223
1143
  pta(text: string): FluentFiltersOrRelationsCondition;
1224
- /**
1225
- * Filters elements based on a textual description.
1226
- *
1227
- * **What Should I Write as Matching Text**
1228
- *
1229
- * The text description inside the `matching()` should describe the element visually.
1230
- * It understands color, some famous company/product names, general descriptions.
1231
- *
1232
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
1233
- *
1234
- * A bit of playing around to find a matching description is sometimes needed:
1235
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
1236
- * Generally, the more detail the better.
1237
- *
1238
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
1239
- *
1240
- * **Examples:**
1241
- * ```typescript
1242
- * // Select the black sneaker from a bunch of sneakers
1243
- * await aui.click().element().matching('a black sneaker shoe').exec();
1244
- *
1245
- * // Select an image that has text in it
1246
- * await aui.click().element().matching('has Burger King in it').exec();
1247
- * await aui.click().element().matching('has adidas in it').exec();
1248
- *
1249
- * // Target a logo/image by describing it
1250
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
1251
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
1252
- * await aui.click().element().matching('logo looking like a seashell').exec();
1253
- * ```
1254
- *
1255
- * @param {string} text - A description of the target element.
1256
- *
1257
- * @return {FluentFiltersOrRelationsCondition}
1258
- */
1259
- matching(text: string): FluentFiltersOrRelationsCondition;
1260
1144
  }
1261
1145
  export declare class FluentFiltersOrRelationsCondition extends FluentFiltersCondition {
1262
1146
  /**
@@ -2271,28 +2155,6 @@ export declare class FluentFiltersGetter extends FluentBase {
2271
2155
  * @return {FluentFiltersOrRelationsGetter}
2272
2156
  */
2273
2157
  button(): FluentFiltersOrRelationsGetter;
2274
- /**
2275
- *
2276
- * @param {number} index - element index
2277
- *
2278
- * @return {FluentFiltersOrRelationsGetter}
2279
- */
2280
- row(index: number): FluentFiltersOrRelationsGetter;
2281
- /**
2282
- *
2283
- * @param {number} index - element index
2284
- *
2285
- * @return {FluentFiltersOrRelationsGetter}
2286
- */
2287
- column(index: number): FluentFiltersOrRelationsGetter;
2288
- /**
2289
- *
2290
- * @param {number} row_index - row index
2291
- * @param {number} column_index - column index
2292
- *
2293
- * @return {FluentFiltersOrRelationsGetter}
2294
- */
2295
- cell(row_index: number, column_index: number): FluentFiltersOrRelationsGetter;
2296
2158
  /**
2297
2159
  * Filters for a UI element 'table'.
2298
2160
  *
@@ -2559,42 +2421,6 @@ export declare class FluentFiltersGetter extends FluentBase {
2559
2421
  * @return {FluentFiltersOrRelationsGetter}
2560
2422
  */
2561
2423
  pta(text: string): FluentFiltersOrRelationsGetter;
2562
- /**
2563
- * Filters elements based on a textual description.
2564
- *
2565
- * **What Should I Write as Matching Text**
2566
- *
2567
- * The text description inside the `matching()` should describe the element visually.
2568
- * It understands color, some famous company/product names, general descriptions.
2569
- *
2570
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
2571
- *
2572
- * A bit of playing around to find a matching description is sometimes needed:
2573
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
2574
- * Generally, the more detail the better.
2575
- *
2576
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
2577
- *
2578
- * **Examples:**
2579
- * ```typescript
2580
- * // Select the black sneaker from a bunch of sneakers
2581
- * await aui.click().element().matching('a black sneaker shoe').exec();
2582
- *
2583
- * // Select an image that has text in it
2584
- * await aui.click().element().matching('has Burger King in it').exec();
2585
- * await aui.click().element().matching('has adidas in it').exec();
2586
- *
2587
- * // Target a logo/image by describing it
2588
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
2589
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
2590
- * await aui.click().element().matching('logo looking like a seashell').exec();
2591
- * ```
2592
- *
2593
- * @param {string} text - A description of the target element.
2594
- *
2595
- * @return {FluentFiltersOrRelationsGetter}
2596
- */
2597
- matching(text: string): FluentFiltersOrRelationsGetter;
2598
2424
  }
2599
2425
  export declare class FluentFiltersOrRelationsGetter extends FluentFiltersGetter {
2600
2426
  /**
@@ -192,46 +192,6 @@ export class FluentFilters extends FluentBase {
192
192
  this._textStr += 'button';
193
193
  return new FluentFiltersOrRelations(this);
194
194
  }
195
- /**
196
- *
197
- * @param {number} index - element index
198
- *
199
- * @return {FluentFiltersOrRelations}
200
- */
201
- row(index) {
202
- this._textStr = '';
203
- this._textStr += 'row';
204
- this._textStr += ` ${index}`;
205
- return new FluentFiltersOrRelations(this);
206
- }
207
- /**
208
- *
209
- * @param {number} index - element index
210
- *
211
- * @return {FluentFiltersOrRelations}
212
- */
213
- column(index) {
214
- this._textStr = '';
215
- this._textStr += 'column';
216
- this._textStr += ` ${index}`;
217
- return new FluentFiltersOrRelations(this);
218
- }
219
- /**
220
- *
221
- * @param {number} row_index - row index
222
- * @param {number} column_index - column index
223
- *
224
- * @return {FluentFiltersOrRelations}
225
- */
226
- cell(row_index, column_index) {
227
- this._textStr = '';
228
- this._textStr += 'cell';
229
- this._textStr += ' row';
230
- this._textStr += ` ${row_index}`;
231
- this._textStr += ' column';
232
- this._textStr += ` ${column_index}`;
233
- return new FluentFiltersOrRelations(this);
234
- }
235
195
  /**
236
196
  * Filters for a UI element 'table'.
237
197
  *
@@ -576,47 +536,6 @@ export class FluentFilters extends FluentBase {
576
536
  this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
577
537
  return new FluentFiltersOrRelations(this);
578
538
  }
579
- /**
580
- * Filters elements based on a textual description.
581
- *
582
- * **What Should I Write as Matching Text**
583
- *
584
- * The text description inside the `matching()` should describe the element visually.
585
- * It understands color, some famous company/product names, general descriptions.
586
- *
587
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
588
- *
589
- * A bit of playing around to find a matching description is sometimes needed:
590
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
591
- * Generally, the more detail the better.
592
- *
593
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
594
- *
595
- * **Examples:**
596
- * ```typescript
597
- * // Select the black sneaker from a bunch of sneakers
598
- * await aui.click().element().matching('a black sneaker shoe').exec();
599
- *
600
- * // Select an image that has text in it
601
- * await aui.click().element().matching('has Burger King in it').exec();
602
- * await aui.click().element().matching('has adidas in it').exec();
603
- *
604
- * // Target a logo/image by describing it
605
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
606
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
607
- * await aui.click().element().matching('logo looking like a seashell').exec();
608
- * ```
609
- *
610
- * @param {string} text - A description of the target element.
611
- *
612
- * @return {FluentFiltersOrRelations}
613
- */
614
- matching(text) {
615
- this._textStr = '';
616
- this._textStr += 'matching';
617
- this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
618
- return new FluentFiltersOrRelations(this);
619
- }
620
539
  }
621
540
  // Relations
622
541
  export class FluentFiltersOrRelations extends FluentFilters {
@@ -1226,46 +1145,6 @@ export class FluentFiltersCondition extends FluentBase {
1226
1145
  this._textStr += 'button';
1227
1146
  return new FluentFiltersOrRelationsCondition(this);
1228
1147
  }
1229
- /**
1230
- *
1231
- * @param {number} index - element index
1232
- *
1233
- * @return {FluentFiltersOrRelationsCondition}
1234
- */
1235
- row(index) {
1236
- this._textStr = '';
1237
- this._textStr += 'row';
1238
- this._textStr += ` ${index}`;
1239
- return new FluentFiltersOrRelationsCondition(this);
1240
- }
1241
- /**
1242
- *
1243
- * @param {number} index - element index
1244
- *
1245
- * @return {FluentFiltersOrRelationsCondition}
1246
- */
1247
- column(index) {
1248
- this._textStr = '';
1249
- this._textStr += 'column';
1250
- this._textStr += ` ${index}`;
1251
- return new FluentFiltersOrRelationsCondition(this);
1252
- }
1253
- /**
1254
- *
1255
- * @param {number} row_index - row index
1256
- * @param {number} column_index - column index
1257
- *
1258
- * @return {FluentFiltersOrRelationsCondition}
1259
- */
1260
- cell(row_index, column_index) {
1261
- this._textStr = '';
1262
- this._textStr += 'cell';
1263
- this._textStr += ' row';
1264
- this._textStr += ` ${row_index}`;
1265
- this._textStr += ' column';
1266
- this._textStr += ` ${column_index}`;
1267
- return new FluentFiltersOrRelationsCondition(this);
1268
- }
1269
1148
  /**
1270
1149
  * Filters for a UI element 'table'.
1271
1150
  *
@@ -1610,47 +1489,6 @@ export class FluentFiltersCondition extends FluentBase {
1610
1489
  this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
1611
1490
  return new FluentFiltersOrRelationsCondition(this);
1612
1491
  }
1613
- /**
1614
- * Filters elements based on a textual description.
1615
- *
1616
- * **What Should I Write as Matching Text**
1617
- *
1618
- * The text description inside the `matching()` should describe the element visually.
1619
- * It understands color, some famous company/product names, general descriptions.
1620
- *
1621
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
1622
- *
1623
- * A bit of playing around to find a matching description is sometimes needed:
1624
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
1625
- * Generally, the more detail the better.
1626
- *
1627
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
1628
- *
1629
- * **Examples:**
1630
- * ```typescript
1631
- * // Select the black sneaker from a bunch of sneakers
1632
- * await aui.click().element().matching('a black sneaker shoe').exec();
1633
- *
1634
- * // Select an image that has text in it
1635
- * await aui.click().element().matching('has Burger King in it').exec();
1636
- * await aui.click().element().matching('has adidas in it').exec();
1637
- *
1638
- * // Target a logo/image by describing it
1639
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
1640
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
1641
- * await aui.click().element().matching('logo looking like a seashell').exec();
1642
- * ```
1643
- *
1644
- * @param {string} text - A description of the target element.
1645
- *
1646
- * @return {FluentFiltersOrRelationsCondition}
1647
- */
1648
- matching(text) {
1649
- this._textStr = '';
1650
- this._textStr += 'matching';
1651
- this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
1652
- return new FluentFiltersOrRelationsCondition(this);
1653
- }
1654
1492
  }
1655
1493
  // Relations
1656
1494
  export class FluentFiltersOrRelationsCondition extends FluentFiltersCondition {
@@ -2941,46 +2779,6 @@ export class FluentFiltersGetter extends FluentBase {
2941
2779
  this._textStr += 'button';
2942
2780
  return new FluentFiltersOrRelationsGetter(this);
2943
2781
  }
2944
- /**
2945
- *
2946
- * @param {number} index - element index
2947
- *
2948
- * @return {FluentFiltersOrRelationsGetter}
2949
- */
2950
- row(index) {
2951
- this._textStr = '';
2952
- this._textStr += 'row';
2953
- this._textStr += ` ${index}`;
2954
- return new FluentFiltersOrRelationsGetter(this);
2955
- }
2956
- /**
2957
- *
2958
- * @param {number} index - element index
2959
- *
2960
- * @return {FluentFiltersOrRelationsGetter}
2961
- */
2962
- column(index) {
2963
- this._textStr = '';
2964
- this._textStr += 'column';
2965
- this._textStr += ` ${index}`;
2966
- return new FluentFiltersOrRelationsGetter(this);
2967
- }
2968
- /**
2969
- *
2970
- * @param {number} row_index - row index
2971
- * @param {number} column_index - column index
2972
- *
2973
- * @return {FluentFiltersOrRelationsGetter}
2974
- */
2975
- cell(row_index, column_index) {
2976
- this._textStr = '';
2977
- this._textStr += 'cell';
2978
- this._textStr += ' row';
2979
- this._textStr += ` ${row_index}`;
2980
- this._textStr += ' column';
2981
- this._textStr += ` ${column_index}`;
2982
- return new FluentFiltersOrRelationsGetter(this);
2983
- }
2984
2782
  /**
2985
2783
  * Filters for a UI element 'table'.
2986
2784
  *
@@ -3325,47 +3123,6 @@ export class FluentFiltersGetter extends FluentBase {
3325
3123
  this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
3326
3124
  return new FluentFiltersOrRelationsGetter(this);
3327
3125
  }
3328
- /**
3329
- * Filters elements based on a textual description.
3330
- *
3331
- * **What Should I Write as Matching Text**
3332
- *
3333
- * The text description inside the `matching()` should describe the element visually.
3334
- * It understands color, some famous company/product names, general descriptions.
3335
- *
3336
- * **Important: _Matching only returns the best matching element when you use it with `get()`_**
3337
- *
3338
- * A bit of playing around to find a matching description is sometimes needed:
3339
- * For example, `puzzle piece` can fail while `an icon showing a puzzle piece` might work.
3340
- * Generally, the more detail the better.
3341
- *
3342
- * We also recommend to not restrict the type of element by using the general selector `element()` as shown in the examples below.
3343
- *
3344
- * **Examples:**
3345
- * ```typescript
3346
- * // Select the black sneaker from a bunch of sneakers
3347
- * await aui.click().element().matching('a black sneaker shoe').exec();
3348
- *
3349
- * // Select an image that has text in it
3350
- * await aui.click().element().matching('has Burger King in it').exec();
3351
- * await aui.click().element().matching('has adidas in it').exec();
3352
- *
3353
- * // Target a logo/image by describing it
3354
- * await aui.click().element().matching('a mask on purple background and a firefox logo').exec();
3355
- * await aui.click().element().matching('logo looking like an apple with one bite bitten off').exec();
3356
- * await aui.click().element().matching('logo looking like a seashell').exec();
3357
- * ```
3358
- *
3359
- * @param {string} text - A description of the target element.
3360
- *
3361
- * @return {FluentFiltersOrRelationsGetter}
3362
- */
3363
- matching(text) {
3364
- this._textStr = '';
3365
- this._textStr += 'matching';
3366
- this._textStr += ` ${Separators.STRING}${text}${Separators.STRING}`;
3367
- return new FluentFiltersOrRelationsGetter(this);
3368
- }
3369
3126
  }
3370
3127
  // Relations
3371
3128
  export class FluentFiltersOrRelationsGetter extends FluentFiltersGetter {
@@ -15,7 +15,7 @@ import { InferenceResponseError } from './inference-response-error';
15
15
  import { ConfigurationError } from './config-error';
16
16
  import { logger } from '../lib/logger';
17
17
  export class InferenceClient {
18
- constructor(baseUrl, httpClient, resize, workspaceId, modelComposition, apiVersion = 'v3') {
18
+ constructor(baseUrl, httpClient, resize, workspaceId, modelComposition, apiVersion = 'v1') {
19
19
  this.baseUrl = baseUrl;
20
20
  this.httpClient = httpClient;
21
21
  this.resize = resize;
@@ -244,12 +244,6 @@ export declare class UiControlClient extends ApiCommands {
244
244
  * @param {string} label - The textfields label.
245
245
  */
246
246
  clickTextfieldNearestTo(label: string): Promise<void>;
247
- /**
248
- * Clicks an icon based on a description.
249
- *
250
- * @param {string} description
251
- */
252
- clickIcon(description: string): Promise<void>;
253
247
  /**
254
248
  * Wait until an AskUICommand does not fail.
255
249
  *
@@ -407,16 +407,6 @@ export class UiControlClient extends ApiCommands {
407
407
  .exec();
408
408
  });
409
409
  }
410
- /**
411
- * Clicks an icon based on a description.
412
- *
413
- * @param {string} description
414
- */
415
- clickIcon(description) {
416
- return __awaiter(this, void 0, void 0, function* () {
417
- yield this.click().icon().matching(description).exec();
418
- });
419
- }
420
410
  /**
421
411
  * Wait until an AskUICommand does not fail.
422
412
  *
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "askui",
3
- "version": "0.22.0",
3
+ "version": "0.23.1",
4
4
  "license": "MIT",
5
5
  "author": "askui GmbH <info@askui.com> (http://www.askui.com/)",
6
6
  "description": "Reliable, automated end-to-end-testing that depends on what is shown on your screen instead of the technology you are running on",