askui 0.10.2 → 0.10.3
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/dist/cjs/execution/dsl.d.ts +133 -37
- package/dist/cjs/execution/dsl.js +552 -154
- package/dist/esm/execution/dsl.d.ts +133 -37
- package/dist/esm/execution/dsl.js +552 -154
- package/package.json +1 -1
|
@@ -32,12 +32,6 @@ export declare class FluentFilters extends FluentBase {
|
|
|
32
32
|
* @return {FluentFiltersOrRelations}
|
|
33
33
|
*/
|
|
34
34
|
otherElement(): FluentFiltersOrRelations;
|
|
35
|
-
/**
|
|
36
|
-
* Filters for a UI element 'table'.
|
|
37
|
-
*
|
|
38
|
-
* @return {FluentFiltersOrRelations}
|
|
39
|
-
*/
|
|
40
|
-
table(): FluentFiltersOrRelations;
|
|
41
35
|
/**
|
|
42
36
|
* Filters for a UI element 'switch'.
|
|
43
37
|
*
|
|
@@ -68,7 +62,13 @@ export declare class FluentFilters extends FluentBase {
|
|
|
68
62
|
*/
|
|
69
63
|
element(): FluentFiltersOrRelations;
|
|
70
64
|
/**
|
|
71
|
-
* Filters special elements
|
|
65
|
+
* Filters special elements defined over a specifically trained custom element descriptor.
|
|
66
|
+
*
|
|
67
|
+
* Custom element descriptors are trained on your elements that were not detected with our
|
|
68
|
+
* default models. Please contact us for further details on how to do this. We are working on
|
|
69
|
+
* a solution to provide this in our User Portal.
|
|
70
|
+
*
|
|
71
|
+
* In the example below circle refers to a circle shaped icon with specific properties.
|
|
72
72
|
*
|
|
73
73
|
* **Examples:**
|
|
74
74
|
* ```typescript
|
|
@@ -91,6 +91,25 @@ export declare class FluentFilters extends FluentBase {
|
|
|
91
91
|
* @return {FluentFiltersOrRelations}
|
|
92
92
|
*/
|
|
93
93
|
button(): FluentFiltersOrRelations;
|
|
94
|
+
/**
|
|
95
|
+
*
|
|
96
|
+
* @param {number} index - element index
|
|
97
|
+
*
|
|
98
|
+
* @return {FluentFiltersOrRelations}
|
|
99
|
+
*/
|
|
100
|
+
row(index: number): FluentFiltersOrRelations;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @param {number} index - element index
|
|
104
|
+
*
|
|
105
|
+
* @return {FluentFiltersOrRelations}
|
|
106
|
+
*/
|
|
107
|
+
col(index: number): FluentFiltersOrRelations;
|
|
108
|
+
/**
|
|
109
|
+
*
|
|
110
|
+
* @return {FluentFiltersOrRelations}
|
|
111
|
+
*/
|
|
112
|
+
table(): FluentFiltersOrRelations;
|
|
94
113
|
/**
|
|
95
114
|
* Filters for an UI element 'text'.
|
|
96
115
|
*
|
|
@@ -106,7 +125,7 @@ export declare class FluentFilters extends FluentBase {
|
|
|
106
125
|
*
|
|
107
126
|
* @return {FluentFiltersOrRelations}
|
|
108
127
|
*/
|
|
109
|
-
text(): FluentFiltersOrRelations;
|
|
128
|
+
text(text: string | undefined): FluentFiltersOrRelations;
|
|
110
129
|
/**
|
|
111
130
|
* Filters for a UI element 'icon'.
|
|
112
131
|
*
|
|
@@ -274,6 +293,19 @@ export declare class FluentFilters extends FluentBase {
|
|
|
274
293
|
/**
|
|
275
294
|
* Filters elements based on a textual description.
|
|
276
295
|
*
|
|
296
|
+
* ## What Should I Write as Matching Text
|
|
297
|
+
* The text description inside the `matching()` should describe the element visually.
|
|
298
|
+
* It understands color, some famous company/product names, general descriptions.
|
|
299
|
+
*
|
|
300
|
+
* It sometimes requires a bit of playing to find a matching description:
|
|
301
|
+
* E.g. `puzzle piece` can fail here while `an icon showing a puzzle piece` might work.
|
|
302
|
+
* Generally the more detail the better.
|
|
303
|
+
*
|
|
304
|
+
* **Examples:**
|
|
305
|
+
* ```typescript
|
|
306
|
+
* await aui.click().matching('a mask on purple background and a firefox logo').exec()
|
|
307
|
+
* ```
|
|
308
|
+
*
|
|
277
309
|
* @param {string} text - A description of the target element.
|
|
278
310
|
*
|
|
279
311
|
* @return {FluentFiltersOrRelations}
|
|
@@ -426,7 +458,7 @@ export declare class FluentFiltersOrRelations extends FluentFilters {
|
|
|
426
458
|
*
|
|
427
459
|
* @return {FluentFilters}
|
|
428
460
|
*/
|
|
429
|
-
rightOf(): FluentFilters;
|
|
461
|
+
rightOf(optionalIndex?: number | undefined): FluentFilters;
|
|
430
462
|
/**
|
|
431
463
|
* Filters for an element left of another element.
|
|
432
464
|
*
|
|
@@ -445,7 +477,7 @@ export declare class FluentFiltersOrRelations extends FluentFilters {
|
|
|
445
477
|
*
|
|
446
478
|
* @return {FluentFilters}
|
|
447
479
|
*/
|
|
448
|
-
leftOf(): FluentFilters;
|
|
480
|
+
leftOf(optionalIndex?: number | undefined): FluentFilters;
|
|
449
481
|
/**
|
|
450
482
|
* Filters for an element below another element.
|
|
451
483
|
*
|
|
@@ -467,7 +499,7 @@ export declare class FluentFiltersOrRelations extends FluentFilters {
|
|
|
467
499
|
*
|
|
468
500
|
* @return {FluentFilters}
|
|
469
501
|
*/
|
|
470
|
-
below(): FluentFilters;
|
|
502
|
+
below(optionalIndex?: number | undefined): FluentFilters;
|
|
471
503
|
/**
|
|
472
504
|
* Filters for an element above another element.
|
|
473
505
|
*
|
|
@@ -489,7 +521,7 @@ export declare class FluentFiltersOrRelations extends FluentFilters {
|
|
|
489
521
|
*
|
|
490
522
|
* @return {FluentFilters}
|
|
491
523
|
*/
|
|
492
|
-
above(): FluentFilters;
|
|
524
|
+
above(optionalIndex?: number | undefined): FluentFilters;
|
|
493
525
|
/**
|
|
494
526
|
* Filters for an element nearest to another element.
|
|
495
527
|
*
|
|
@@ -548,12 +580,6 @@ export declare class FluentFiltersCondition extends FluentBase {
|
|
|
548
580
|
* @return {FluentFiltersOrRelationsCondition}
|
|
549
581
|
*/
|
|
550
582
|
otherElement(): FluentFiltersOrRelationsCondition;
|
|
551
|
-
/**
|
|
552
|
-
* Filters for a UI element 'table'.
|
|
553
|
-
*
|
|
554
|
-
* @return {FluentFiltersOrRelationsCondition}
|
|
555
|
-
*/
|
|
556
|
-
table(): FluentFiltersOrRelationsCondition;
|
|
557
583
|
/**
|
|
558
584
|
* Filters for a UI element 'switch'.
|
|
559
585
|
*
|
|
@@ -584,7 +610,13 @@ export declare class FluentFiltersCondition extends FluentBase {
|
|
|
584
610
|
*/
|
|
585
611
|
element(): FluentFiltersOrRelationsCondition;
|
|
586
612
|
/**
|
|
587
|
-
* Filters special elements
|
|
613
|
+
* Filters special elements defined over a specifically trained custom element descriptor.
|
|
614
|
+
*
|
|
615
|
+
* Custom element descriptors are trained on your elements that were not detected with our
|
|
616
|
+
* default models. Please contact us for further details on how to do this. We are working on
|
|
617
|
+
* a solution to provide this in our User Portal.
|
|
618
|
+
*
|
|
619
|
+
* In the example below circle refers to a circle shaped icon with specific properties.
|
|
588
620
|
*
|
|
589
621
|
* **Examples:**
|
|
590
622
|
* ```typescript
|
|
@@ -607,6 +639,25 @@ export declare class FluentFiltersCondition extends FluentBase {
|
|
|
607
639
|
* @return {FluentFiltersOrRelationsCondition}
|
|
608
640
|
*/
|
|
609
641
|
button(): FluentFiltersOrRelationsCondition;
|
|
642
|
+
/**
|
|
643
|
+
*
|
|
644
|
+
* @param {number} index - element index
|
|
645
|
+
*
|
|
646
|
+
* @return {FluentFiltersOrRelationsCondition}
|
|
647
|
+
*/
|
|
648
|
+
row(index: number): FluentFiltersOrRelationsCondition;
|
|
649
|
+
/**
|
|
650
|
+
*
|
|
651
|
+
* @param {number} index - element index
|
|
652
|
+
*
|
|
653
|
+
* @return {FluentFiltersOrRelationsCondition}
|
|
654
|
+
*/
|
|
655
|
+
col(index: number): FluentFiltersOrRelationsCondition;
|
|
656
|
+
/**
|
|
657
|
+
*
|
|
658
|
+
* @return {FluentFiltersOrRelationsCondition}
|
|
659
|
+
*/
|
|
660
|
+
table(): FluentFiltersOrRelationsCondition;
|
|
610
661
|
/**
|
|
611
662
|
* Filters for an UI element 'text'.
|
|
612
663
|
*
|
|
@@ -622,7 +673,7 @@ export declare class FluentFiltersCondition extends FluentBase {
|
|
|
622
673
|
*
|
|
623
674
|
* @return {FluentFiltersOrRelationsCondition}
|
|
624
675
|
*/
|
|
625
|
-
text(): FluentFiltersOrRelationsCondition;
|
|
676
|
+
text(text: string | undefined): FluentFiltersOrRelationsCondition;
|
|
626
677
|
/**
|
|
627
678
|
* Filters for a UI element 'icon'.
|
|
628
679
|
*
|
|
@@ -790,6 +841,19 @@ export declare class FluentFiltersCondition extends FluentBase {
|
|
|
790
841
|
/**
|
|
791
842
|
* Filters elements based on a textual description.
|
|
792
843
|
*
|
|
844
|
+
* ## What Should I Write as Matching Text
|
|
845
|
+
* The text description inside the `matching()` should describe the element visually.
|
|
846
|
+
* It understands color, some famous company/product names, general descriptions.
|
|
847
|
+
*
|
|
848
|
+
* It sometimes requires a bit of playing to find a matching description:
|
|
849
|
+
* E.g. `puzzle piece` can fail here while `an icon showing a puzzle piece` might work.
|
|
850
|
+
* Generally the more detail the better.
|
|
851
|
+
*
|
|
852
|
+
* **Examples:**
|
|
853
|
+
* ```typescript
|
|
854
|
+
* await aui.click().matching('a mask on purple background and a firefox logo').exec()
|
|
855
|
+
* ```
|
|
856
|
+
*
|
|
793
857
|
* @param {string} text - A description of the target element.
|
|
794
858
|
*
|
|
795
859
|
* @return {FluentFiltersOrRelationsCondition}
|
|
@@ -942,7 +1006,7 @@ export declare class FluentFiltersOrRelationsCondition extends FluentFiltersCond
|
|
|
942
1006
|
*
|
|
943
1007
|
* @return {FluentFiltersCondition}
|
|
944
1008
|
*/
|
|
945
|
-
rightOf(): FluentFiltersCondition;
|
|
1009
|
+
rightOf(optionalIndex?: number | undefined): FluentFiltersCondition;
|
|
946
1010
|
/**
|
|
947
1011
|
* Filters for an element left of another element.
|
|
948
1012
|
*
|
|
@@ -961,7 +1025,7 @@ export declare class FluentFiltersOrRelationsCondition extends FluentFiltersCond
|
|
|
961
1025
|
*
|
|
962
1026
|
* @return {FluentFiltersCondition}
|
|
963
1027
|
*/
|
|
964
|
-
leftOf(): FluentFiltersCondition;
|
|
1028
|
+
leftOf(optionalIndex?: number | undefined): FluentFiltersCondition;
|
|
965
1029
|
/**
|
|
966
1030
|
* Filters for an element below another element.
|
|
967
1031
|
*
|
|
@@ -983,7 +1047,7 @@ export declare class FluentFiltersOrRelationsCondition extends FluentFiltersCond
|
|
|
983
1047
|
*
|
|
984
1048
|
* @return {FluentFiltersCondition}
|
|
985
1049
|
*/
|
|
986
|
-
below(): FluentFiltersCondition;
|
|
1050
|
+
below(optionalIndex?: number | undefined): FluentFiltersCondition;
|
|
987
1051
|
/**
|
|
988
1052
|
* Filters for an element above another element.
|
|
989
1053
|
*
|
|
@@ -1005,7 +1069,7 @@ export declare class FluentFiltersOrRelationsCondition extends FluentFiltersCond
|
|
|
1005
1069
|
*
|
|
1006
1070
|
* @return {FluentFiltersCondition}
|
|
1007
1071
|
*/
|
|
1008
|
-
above(): FluentFiltersCondition;
|
|
1072
|
+
above(optionalIndex?: number | undefined): FluentFiltersCondition;
|
|
1009
1073
|
/**
|
|
1010
1074
|
* Filters for an element nearest to another element.
|
|
1011
1075
|
*
|
|
@@ -1111,7 +1175,7 @@ export declare abstract class FluentCommand extends FluentBase {
|
|
|
1111
1175
|
/**
|
|
1112
1176
|
* Expects a condition, e.g., `exists()` or `notExits()`.
|
|
1113
1177
|
*
|
|
1114
|
-
* Use the structure `expect().<your filter>.(exists()|notExists()` as shown in the examples below.
|
|
1178
|
+
* Use the structure `expect().<your filter>.(exists()|notExists())` as shown in the examples below.
|
|
1115
1179
|
*
|
|
1116
1180
|
* **Examples:**
|
|
1117
1181
|
* ```typescript
|
|
@@ -1509,12 +1573,6 @@ export declare class FluentFiltersGetter extends FluentBase {
|
|
|
1509
1573
|
* @return {FluentFiltersOrRelationsGetter}
|
|
1510
1574
|
*/
|
|
1511
1575
|
otherElement(): FluentFiltersOrRelationsGetter;
|
|
1512
|
-
/**
|
|
1513
|
-
* Filters for a UI element 'table'.
|
|
1514
|
-
*
|
|
1515
|
-
* @return {FluentFiltersOrRelationsGetter}
|
|
1516
|
-
*/
|
|
1517
|
-
table(): FluentFiltersOrRelationsGetter;
|
|
1518
1576
|
/**
|
|
1519
1577
|
* Filters for a UI element 'switch'.
|
|
1520
1578
|
*
|
|
@@ -1545,7 +1603,13 @@ export declare class FluentFiltersGetter extends FluentBase {
|
|
|
1545
1603
|
*/
|
|
1546
1604
|
element(): FluentFiltersOrRelationsGetter;
|
|
1547
1605
|
/**
|
|
1548
|
-
* Filters special elements
|
|
1606
|
+
* Filters special elements defined over a specifically trained custom element descriptor.
|
|
1607
|
+
*
|
|
1608
|
+
* Custom element descriptors are trained on your elements that were not detected with our
|
|
1609
|
+
* default models. Please contact us for further details on how to do this. We are working on
|
|
1610
|
+
* a solution to provide this in our User Portal.
|
|
1611
|
+
*
|
|
1612
|
+
* In the example below circle refers to a circle shaped icon with specific properties.
|
|
1549
1613
|
*
|
|
1550
1614
|
* **Examples:**
|
|
1551
1615
|
* ```typescript
|
|
@@ -1568,6 +1632,25 @@ export declare class FluentFiltersGetter extends FluentBase {
|
|
|
1568
1632
|
* @return {FluentFiltersOrRelationsGetter}
|
|
1569
1633
|
*/
|
|
1570
1634
|
button(): FluentFiltersOrRelationsGetter;
|
|
1635
|
+
/**
|
|
1636
|
+
*
|
|
1637
|
+
* @param {number} index - element index
|
|
1638
|
+
*
|
|
1639
|
+
* @return {FluentFiltersOrRelationsGetter}
|
|
1640
|
+
*/
|
|
1641
|
+
row(index: number): FluentFiltersOrRelationsGetter;
|
|
1642
|
+
/**
|
|
1643
|
+
*
|
|
1644
|
+
* @param {number} index - element index
|
|
1645
|
+
*
|
|
1646
|
+
* @return {FluentFiltersOrRelationsGetter}
|
|
1647
|
+
*/
|
|
1648
|
+
col(index: number): FluentFiltersOrRelationsGetter;
|
|
1649
|
+
/**
|
|
1650
|
+
*
|
|
1651
|
+
* @return {FluentFiltersOrRelationsGetter}
|
|
1652
|
+
*/
|
|
1653
|
+
table(): FluentFiltersOrRelationsGetter;
|
|
1571
1654
|
/**
|
|
1572
1655
|
* Filters for an UI element 'text'.
|
|
1573
1656
|
*
|
|
@@ -1583,7 +1666,7 @@ export declare class FluentFiltersGetter extends FluentBase {
|
|
|
1583
1666
|
*
|
|
1584
1667
|
* @return {FluentFiltersOrRelationsGetter}
|
|
1585
1668
|
*/
|
|
1586
|
-
text(): FluentFiltersOrRelationsGetter;
|
|
1669
|
+
text(text: string | undefined): FluentFiltersOrRelationsGetter;
|
|
1587
1670
|
/**
|
|
1588
1671
|
* Filters for a UI element 'icon'.
|
|
1589
1672
|
*
|
|
@@ -1751,6 +1834,19 @@ export declare class FluentFiltersGetter extends FluentBase {
|
|
|
1751
1834
|
/**
|
|
1752
1835
|
* Filters elements based on a textual description.
|
|
1753
1836
|
*
|
|
1837
|
+
* ## What Should I Write as Matching Text
|
|
1838
|
+
* The text description inside the `matching()` should describe the element visually.
|
|
1839
|
+
* It understands color, some famous company/product names, general descriptions.
|
|
1840
|
+
*
|
|
1841
|
+
* It sometimes requires a bit of playing to find a matching description:
|
|
1842
|
+
* E.g. `puzzle piece` can fail here while `an icon showing a puzzle piece` might work.
|
|
1843
|
+
* Generally the more detail the better.
|
|
1844
|
+
*
|
|
1845
|
+
* **Examples:**
|
|
1846
|
+
* ```typescript
|
|
1847
|
+
* await aui.click().matching('a mask on purple background and a firefox logo').exec()
|
|
1848
|
+
* ```
|
|
1849
|
+
*
|
|
1754
1850
|
* @param {string} text - A description of the target element.
|
|
1755
1851
|
*
|
|
1756
1852
|
* @return {FluentFiltersOrRelationsGetter}
|
|
@@ -1903,7 +1999,7 @@ export declare class FluentFiltersOrRelationsGetter extends FluentFiltersGetter
|
|
|
1903
1999
|
*
|
|
1904
2000
|
* @return {FluentFiltersGetter}
|
|
1905
2001
|
*/
|
|
1906
|
-
rightOf(): FluentFiltersGetter;
|
|
2002
|
+
rightOf(optionalIndex?: number | undefined): FluentFiltersGetter;
|
|
1907
2003
|
/**
|
|
1908
2004
|
* Filters for an element left of another element.
|
|
1909
2005
|
*
|
|
@@ -1922,7 +2018,7 @@ export declare class FluentFiltersOrRelationsGetter extends FluentFiltersGetter
|
|
|
1922
2018
|
*
|
|
1923
2019
|
* @return {FluentFiltersGetter}
|
|
1924
2020
|
*/
|
|
1925
|
-
leftOf(): FluentFiltersGetter;
|
|
2021
|
+
leftOf(optionalIndex?: number | undefined): FluentFiltersGetter;
|
|
1926
2022
|
/**
|
|
1927
2023
|
* Filters for an element below another element.
|
|
1928
2024
|
*
|
|
@@ -1944,7 +2040,7 @@ export declare class FluentFiltersOrRelationsGetter extends FluentFiltersGetter
|
|
|
1944
2040
|
*
|
|
1945
2041
|
* @return {FluentFiltersGetter}
|
|
1946
2042
|
*/
|
|
1947
|
-
below(): FluentFiltersGetter;
|
|
2043
|
+
below(optionalIndex?: number | undefined): FluentFiltersGetter;
|
|
1948
2044
|
/**
|
|
1949
2045
|
* Filters for an element above another element.
|
|
1950
2046
|
*
|
|
@@ -1966,7 +2062,7 @@ export declare class FluentFiltersOrRelationsGetter extends FluentFiltersGetter
|
|
|
1966
2062
|
*
|
|
1967
2063
|
* @return {FluentFiltersGetter}
|
|
1968
2064
|
*/
|
|
1969
|
-
above(): FluentFiltersGetter;
|
|
2065
|
+
above(optionalIndex?: number | undefined): FluentFiltersGetter;
|
|
1970
2066
|
/**
|
|
1971
2067
|
* Filters for an element nearest to another element.
|
|
1972
2068
|
*
|