@appium/fake-driver 5.1.5 → 5.2.0
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/build/lib/commands/alert.d.ts +0 -37
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/contexts.d.ts +0 -39
- package/build/lib/commands/contexts.d.ts.map +1 -1
- package/build/lib/commands/element.d.ts +0 -71
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/find.d.ts +5 -45
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/general.d.ts +0 -85
- package/build/lib/commands/general.d.ts.map +1 -1
- package/build/lib/driver.d.ts +5 -5
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +1 -1
- package/build/lib/types.d.ts +2 -2
- package/build/lib/types.d.ts.map +1 -1
- package/lib/driver.js +1 -1
- package/package.json +2 -2
|
@@ -3,14 +3,6 @@ declare namespace _default {
|
|
|
3
3
|
* @this {FakeDriver}
|
|
4
4
|
*/
|
|
5
5
|
function assertNoAlert(this: import("../driver").FakeDriver): void;
|
|
6
|
-
/**
|
|
7
|
-
* @this {FakeDriver}
|
|
8
|
-
*/
|
|
9
|
-
function assertNoAlert(this: import("../driver").FakeDriver): void;
|
|
10
|
-
/**
|
|
11
|
-
* @this {FakeDriver}
|
|
12
|
-
*/
|
|
13
|
-
function assertAlert(this: import("../driver").FakeDriver): void;
|
|
14
6
|
/**
|
|
15
7
|
* @this {FakeDriver}
|
|
16
8
|
*/
|
|
@@ -22,13 +14,6 @@ declare namespace _default {
|
|
|
22
14
|
* @this {FakeDriver}
|
|
23
15
|
*/
|
|
24
16
|
function getAlertText(this: import("../driver").FakeDriver): Promise<string>;
|
|
25
|
-
/**
|
|
26
|
-
* Get the text of an alert
|
|
27
|
-
*
|
|
28
|
-
* @returns {Promise<string>}
|
|
29
|
-
* @this {FakeDriver}
|
|
30
|
-
*/
|
|
31
|
-
function getAlertText(this: import("../driver").FakeDriver): Promise<string>;
|
|
32
17
|
/**
|
|
33
18
|
* Set the text of an alert
|
|
34
19
|
*
|
|
@@ -37,21 +22,6 @@ declare namespace _default {
|
|
|
37
22
|
* @this {FakeDriver}
|
|
38
23
|
*/
|
|
39
24
|
function setAlertText(this: import("../driver").FakeDriver, text: string): Promise<void>;
|
|
40
|
-
/**
|
|
41
|
-
* Set the text of an alert
|
|
42
|
-
*
|
|
43
|
-
* @param {string} text
|
|
44
|
-
* @returns {Promise<void>}
|
|
45
|
-
* @this {FakeDriver}
|
|
46
|
-
*/
|
|
47
|
-
function setAlertText(this: import("../driver").FakeDriver, text: string): Promise<void>;
|
|
48
|
-
/**
|
|
49
|
-
* Accept an alert
|
|
50
|
-
*
|
|
51
|
-
* @returns {Promise<void>}
|
|
52
|
-
* @this {FakeDriver}
|
|
53
|
-
*/
|
|
54
|
-
function postAcceptAlert(this: import("../driver").FakeDriver): Promise<void>;
|
|
55
25
|
/**
|
|
56
26
|
* Accept an alert
|
|
57
27
|
*
|
|
@@ -66,13 +36,6 @@ declare namespace _default {
|
|
|
66
36
|
* @this {FakeDriver}
|
|
67
37
|
*/
|
|
68
38
|
function postDismissAlert(this: import("../driver").FakeDriver): Promise<void>;
|
|
69
|
-
/**
|
|
70
|
-
* Dismiss an alert
|
|
71
|
-
*
|
|
72
|
-
* @returns {Promise<void>}
|
|
73
|
-
* @this {FakeDriver}
|
|
74
|
-
*/
|
|
75
|
-
function postDismissAlert(this: import("../driver").FakeDriver): Promise<void>;
|
|
76
39
|
}
|
|
77
40
|
export default _default;
|
|
78
41
|
export type FakeDriver = import('../driver').FakeDriver;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/commands/alert.js"],"names":[],"mappings":";IAGE;;OAEG;IACH,mEAIC;
|
|
1
|
+
{"version":3,"file":"alert.d.ts","sourceRoot":"","sources":["../../../lib/commands/alert.js"],"names":[],"mappings":";IAGE;;OAEG;IACH,mEAIC;IAED;;OAEG;IACH,iEAIC;IAED;;;;;OAKG;IACH,6EAGC;IAED;;;;;;OAMG;IACH,yFAOC;IAED;;;;;OAKG;IACH,8EAGC;IAED;;;;;OAKG;IACH,+EAEC;;;yBAIU,OAAO,WAAW,EAAE,UAAU"}
|
|
@@ -6,17 +6,6 @@ declare namespace _default {
|
|
|
6
6
|
NATIVE_APP: null;
|
|
7
7
|
PROXY: null;
|
|
8
8
|
};
|
|
9
|
-
/**
|
|
10
|
-
* @this {FakeDriver}
|
|
11
|
-
*/
|
|
12
|
-
function getRawContexts(this: import("../driver").FakeDriver): {
|
|
13
|
-
NATIVE_APP: null;
|
|
14
|
-
PROXY: null;
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* @this {FakeDriver}
|
|
18
|
-
*/
|
|
19
|
-
function assertWebviewContext(this: import("../driver").FakeDriver): void;
|
|
20
9
|
/**
|
|
21
10
|
* @this {FakeDriver}
|
|
22
11
|
*/
|
|
@@ -26,18 +15,6 @@ declare namespace _default {
|
|
|
26
15
|
* @this {FakeDriver}
|
|
27
16
|
*/
|
|
28
17
|
function getCurrentContext(this: import("../driver").FakeDriver): Promise<string>;
|
|
29
|
-
/**
|
|
30
|
-
* @returns {Promise<string>}
|
|
31
|
-
* @this {FakeDriver}
|
|
32
|
-
*/
|
|
33
|
-
function getCurrentContext(this: import("../driver").FakeDriver): Promise<string>;
|
|
34
|
-
/**
|
|
35
|
-
* Get the list of available contexts
|
|
36
|
-
*
|
|
37
|
-
* @returns {Promise<string[]>}
|
|
38
|
-
* @this {FakeDriver}
|
|
39
|
-
*/
|
|
40
|
-
function getContexts(this: import("../driver").FakeDriver): Promise<string[]>;
|
|
41
18
|
/**
|
|
42
19
|
* Get the list of available contexts
|
|
43
20
|
*
|
|
@@ -53,22 +30,6 @@ declare namespace _default {
|
|
|
53
30
|
* @this {FakeDriver}
|
|
54
31
|
*/
|
|
55
32
|
function setContext(this: import("../driver").FakeDriver, context: string): Promise<void>;
|
|
56
|
-
/**
|
|
57
|
-
* Set the current context
|
|
58
|
-
*
|
|
59
|
-
* @param {string} context - name of the context
|
|
60
|
-
* @returns {Promise<void>}
|
|
61
|
-
* @this {FakeDriver}
|
|
62
|
-
*/
|
|
63
|
-
function setContext(this: import("../driver").FakeDriver, context: string): Promise<void>;
|
|
64
|
-
/**
|
|
65
|
-
* Set the active frame
|
|
66
|
-
*
|
|
67
|
-
* @param {number} frameId
|
|
68
|
-
* @returns {Promise<void>}
|
|
69
|
-
* @this {FakeDriver}
|
|
70
|
-
*/
|
|
71
|
-
function setFrame(this: import("../driver").FakeDriver, frameId: number): Promise<void>;
|
|
72
33
|
/**
|
|
73
34
|
* Set the active frame
|
|
74
35
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../lib/commands/contexts.js"],"names":[],"mappings":";IAIE;;OAEG;IACH;;;MAOC;
|
|
1
|
+
{"version":3,"file":"contexts.d.ts","sourceRoot":"","sources":["../../../lib/commands/contexts.js"],"names":[],"mappings":";IAIE;;OAEG;IACH;;;MAOC;IAED;;OAEG;IACH,0EAIC;IAED;;;OAGG;IACH,kFAEC;IAED;;;;;OAKG;IACH,8EAEC;IAED;;;;;;OAMG;IACH,0FAgBC;IAED;;;;;;OAMG;IACH,wFAWC;;;yBAIU,OAAO,WAAW,EAAE,UAAU"}
|
|
@@ -3,22 +3,10 @@ declare namespace _default {
|
|
|
3
3
|
* @this {FakeDriver}
|
|
4
4
|
*/
|
|
5
5
|
function getElements(this: import("../driver").FakeDriver, elIds: any): any;
|
|
6
|
-
/**
|
|
7
|
-
* @this {FakeDriver}
|
|
8
|
-
*/
|
|
9
|
-
function getElements(this: import("../driver").FakeDriver, elIds: any): any;
|
|
10
6
|
/**
|
|
11
7
|
* @this {FakeDriver}
|
|
12
8
|
*/
|
|
13
9
|
function getElement(this: import("../driver").FakeDriver, elId: any): any;
|
|
14
|
-
/**
|
|
15
|
-
* @this {FakeDriver}
|
|
16
|
-
*/
|
|
17
|
-
function getElement(this: import("../driver").FakeDriver, elId: any): any;
|
|
18
|
-
/**
|
|
19
|
-
* @this {FakeDriver}
|
|
20
|
-
*/
|
|
21
|
-
function getName(this: import("../driver").FakeDriver, elementId: any): Promise<any>;
|
|
22
10
|
/**
|
|
23
11
|
* @this {FakeDriver}
|
|
24
12
|
*/
|
|
@@ -27,14 +15,6 @@ declare namespace _default {
|
|
|
27
15
|
* @this {FakeDriver}
|
|
28
16
|
*/
|
|
29
17
|
function elementDisplayed(this: import("../driver").FakeDriver, elementId: any): Promise<any>;
|
|
30
|
-
/**
|
|
31
|
-
* @this {FakeDriver}
|
|
32
|
-
*/
|
|
33
|
-
function elementDisplayed(this: import("../driver").FakeDriver, elementId: any): Promise<any>;
|
|
34
|
-
/**
|
|
35
|
-
* @this {FakeDriver}
|
|
36
|
-
*/
|
|
37
|
-
function elementEnabled(this: import("../driver").FakeDriver, elementId: any): Promise<any>;
|
|
38
18
|
/**
|
|
39
19
|
* @this {FakeDriver}
|
|
40
20
|
*/
|
|
@@ -43,14 +23,6 @@ declare namespace _default {
|
|
|
43
23
|
* @this {FakeDriver}
|
|
44
24
|
*/
|
|
45
25
|
function elementSelected(this: import("../driver").FakeDriver, elementId: any): Promise<any>;
|
|
46
|
-
/**
|
|
47
|
-
* @this {FakeDriver}
|
|
48
|
-
*/
|
|
49
|
-
function elementSelected(this: import("../driver").FakeDriver, elementId: any): Promise<any>;
|
|
50
|
-
/**
|
|
51
|
-
* @this {FakeDriver}
|
|
52
|
-
*/
|
|
53
|
-
function setValue(this: import("../driver").FakeDriver, keys: any, elementId: any): Promise<void>;
|
|
54
26
|
/**
|
|
55
27
|
* @this {FakeDriver}
|
|
56
28
|
*/
|
|
@@ -59,14 +31,6 @@ declare namespace _default {
|
|
|
59
31
|
* @this {FakeDriver}
|
|
60
32
|
*/
|
|
61
33
|
function getText(this: import("../driver").FakeDriver, elementId: any): Promise<any>;
|
|
62
|
-
/**
|
|
63
|
-
* @this {FakeDriver}
|
|
64
|
-
*/
|
|
65
|
-
function getText(this: import("../driver").FakeDriver, elementId: any): Promise<any>;
|
|
66
|
-
/**
|
|
67
|
-
* @this {FakeDriver}
|
|
68
|
-
*/
|
|
69
|
-
function clear(this: import("../driver").FakeDriver, elementId: any): Promise<void>;
|
|
70
34
|
/**
|
|
71
35
|
* @this {FakeDriver}
|
|
72
36
|
*/
|
|
@@ -77,16 +41,6 @@ declare namespace _default {
|
|
|
77
41
|
* @this {FakeDriver}
|
|
78
42
|
*/
|
|
79
43
|
function click(this: import("../driver").FakeDriver, elementId: string): Promise<void>;
|
|
80
|
-
/**
|
|
81
|
-
* This comment should be displayed instead of the one from ExternalDriver
|
|
82
|
-
* @param {string} elementId
|
|
83
|
-
* @this {FakeDriver}
|
|
84
|
-
*/
|
|
85
|
-
function click(this: import("../driver").FakeDriver, elementId: string): Promise<void>;
|
|
86
|
-
/**
|
|
87
|
-
* @this {FakeDriver}
|
|
88
|
-
*/
|
|
89
|
-
function getAttribute(this: import("../driver").FakeDriver, attr: any, elementId: any): Promise<any>;
|
|
90
44
|
/**
|
|
91
45
|
* @this {FakeDriver}
|
|
92
46
|
*/
|
|
@@ -95,14 +49,6 @@ declare namespace _default {
|
|
|
95
49
|
* @this {FakeDriver}
|
|
96
50
|
*/
|
|
97
51
|
function getElementRect(this: import("../driver").FakeDriver, elementId: any): any;
|
|
98
|
-
/**
|
|
99
|
-
* @this {FakeDriver}
|
|
100
|
-
*/
|
|
101
|
-
function getElementRect(this: import("../driver").FakeDriver, elementId: any): any;
|
|
102
|
-
/**
|
|
103
|
-
* @this {FakeDriver}
|
|
104
|
-
*/
|
|
105
|
-
function getSize(this: import("../driver").FakeDriver, elementId: any): any;
|
|
106
52
|
/**
|
|
107
53
|
* @this {FakeDriver}
|
|
108
54
|
*/
|
|
@@ -111,14 +57,6 @@ declare namespace _default {
|
|
|
111
57
|
* @this {FakeDriver}
|
|
112
58
|
*/
|
|
113
59
|
function equalsElement(this: import("../driver").FakeDriver, el1Id: any, el2Id: any): any;
|
|
114
|
-
/**
|
|
115
|
-
* @this {FakeDriver}
|
|
116
|
-
*/
|
|
117
|
-
function equalsElement(this: import("../driver").FakeDriver, el1Id: any, el2Id: any): any;
|
|
118
|
-
/**
|
|
119
|
-
* @this {FakeDriver}
|
|
120
|
-
*/
|
|
121
|
-
function getCssProperty(this: import("../driver").FakeDriver, prop: any, elementId: any): Promise<any>;
|
|
122
60
|
/**
|
|
123
61
|
* @this {FakeDriver}
|
|
124
62
|
*/
|
|
@@ -128,15 +66,6 @@ declare namespace _default {
|
|
|
128
66
|
* @this {FakeDriver}
|
|
129
67
|
*/
|
|
130
68
|
function getLocation(this: import("../driver").FakeDriver, elementId: string): Promise<any>;
|
|
131
|
-
/**
|
|
132
|
-
* @param {string} elementId
|
|
133
|
-
* @this {FakeDriver}
|
|
134
|
-
*/
|
|
135
|
-
function getLocation(this: import("../driver").FakeDriver, elementId: string): Promise<any>;
|
|
136
|
-
/**
|
|
137
|
-
* @this {FakeDriver}
|
|
138
|
-
*/
|
|
139
|
-
function getLocationInView(this: import("../driver").FakeDriver, elementId: any): Promise<any>;
|
|
140
69
|
/**
|
|
141
70
|
* @this {FakeDriver}
|
|
142
71
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../lib/commands/element.js"],"names":[],"mappings":";IAGE;;OAEG;IACH,4EAOC;
|
|
1
|
+
{"version":3,"file":"element.d.ts","sourceRoot":"","sources":["../../../lib/commands/element.js"],"names":[],"mappings":";IAGE;;OAEG;IACH,4EAOC;IAED;;OAEG;IACH,0EAEC;IAED;;OAEG;IACH,qFAGC;IAED;;OAEG;IACH,8FAGC;IAED;;OAEG;IACH,4FAGC;IAED;;OAEG;IACH,6FAGC;IAED;;OAEG;IACH,kGAUC;IAED;;OAEG;IACH,qFAGC;IAED;;OAEG;IACH,oFAEC;IAED;;;;OAIG;IACH,uFAQC;IAED;;OAEG;IACH,qGAGC;IAED;;OAEG;IACH,mFAGC;IAED;;OAEG;IACH,4EAGC;IAED;;OAEG;IACH,0FAIC;IAED;;OAEG;IACH,uGAIC;IAED;;;OAGG;IACH,4FAGC;IAED;;OAEG;IACH,+FAEC;;;yBAIU,OAAO,WAAW,EAAE,UAAU"}
|
|
@@ -3,16 +3,6 @@ declare namespace _default {
|
|
|
3
3
|
* @this {FakeDriver}
|
|
4
4
|
*/
|
|
5
5
|
function getExistingElementForNode(this: import("../driver").FakeDriver, node: any): string | null;
|
|
6
|
-
/**
|
|
7
|
-
* @this {FakeDriver}
|
|
8
|
-
*/
|
|
9
|
-
function getExistingElementForNode(this: import("../driver").FakeDriver, node: any): string | null;
|
|
10
|
-
/**
|
|
11
|
-
* @this {FakeDriver}
|
|
12
|
-
*/
|
|
13
|
-
function wrapNewEl(this: import("../driver").FakeDriver, obj: any): {
|
|
14
|
-
ELEMENT: string;
|
|
15
|
-
};
|
|
16
6
|
/**
|
|
17
7
|
* @this {FakeDriver}
|
|
18
8
|
*/
|
|
@@ -29,56 +19,26 @@ declare namespace _default {
|
|
|
29
19
|
* @returns {Promise<Mult extends true ? Element[] : Element>}
|
|
30
20
|
* @this {FakeDriver}
|
|
31
21
|
*/
|
|
32
|
-
function findElOrEls<Mult extends boolean, Ctx = any>(this: import("../driver").FakeDriver, strategy: string, selector: string, mult: Mult, context?: Ctx | undefined): Promise<Mult extends true ? import("@appium/types").Element[] : import("@appium/types").Element
|
|
33
|
-
/**
|
|
34
|
-
* @template {boolean} Mult
|
|
35
|
-
* @template [Ctx=any]
|
|
36
|
-
* @param {string} strategy
|
|
37
|
-
* @param {string} selector
|
|
38
|
-
* @param {Mult} mult
|
|
39
|
-
* @param {Ctx} [context]
|
|
40
|
-
* @returns {Promise<Mult extends true ? Element[] : Element>}
|
|
41
|
-
* @this {FakeDriver}
|
|
42
|
-
*/
|
|
43
|
-
function findElOrEls<Mult extends boolean, Ctx = any>(this: import("../driver").FakeDriver, strategy: string, selector: string, mult: Mult, context?: Ctx | undefined): Promise<Mult extends true ? import("@appium/types").Element[] : import("@appium/types").Element>;
|
|
22
|
+
function findElOrEls<Mult extends boolean, Ctx = any>(this: import("../driver").FakeDriver, strategy: string, selector: string, mult: Mult, context?: Ctx | undefined): Promise<Mult extends true ? import("@appium/types").Element<string>[] : import("@appium/types").Element<string>>;
|
|
44
23
|
/**
|
|
45
24
|
* This should override whatever's in ExternalDriver
|
|
46
25
|
* @param {string} strategy Strategy
|
|
47
26
|
* @param {string} selector Selector
|
|
48
27
|
* @this {FakeDriver}
|
|
49
28
|
*/
|
|
50
|
-
function findElement(this: import("../driver").FakeDriver, strategy: string, selector: string): Promise<import("@appium/types").Element
|
|
51
|
-
/**
|
|
52
|
-
* This should override whatever's in ExternalDriver
|
|
53
|
-
* @param {string} strategy Strategy
|
|
54
|
-
* @param {string} selector Selector
|
|
55
|
-
* @this {FakeDriver}
|
|
56
|
-
*/
|
|
57
|
-
function findElement(this: import("../driver").FakeDriver, strategy: string, selector: string): Promise<import("@appium/types").Element>;
|
|
58
|
-
/**
|
|
59
|
-
* @this {FakeDriver}
|
|
60
|
-
*/
|
|
61
|
-
function findElements(this: import("../driver").FakeDriver, strategy: any, selector: any): Promise<import("@appium/types").Element[]>;
|
|
62
|
-
/**
|
|
63
|
-
* @this {FakeDriver}
|
|
64
|
-
*/
|
|
65
|
-
function findElements(this: import("../driver").FakeDriver, strategy: any, selector: any): Promise<import("@appium/types").Element[]>;
|
|
66
|
-
/**
|
|
67
|
-
* @this {FakeDriver}
|
|
68
|
-
*/
|
|
69
|
-
function findElementFromElement(this: import("../driver").FakeDriver, strategy: any, selector: any, elementId: any): Promise<import("@appium/types").Element>;
|
|
29
|
+
function findElement(this: import("../driver").FakeDriver, strategy: string, selector: string): Promise<import("@appium/types").Element<string>>;
|
|
70
30
|
/**
|
|
71
31
|
* @this {FakeDriver}
|
|
72
32
|
*/
|
|
73
|
-
function
|
|
33
|
+
function findElements(this: import("../driver").FakeDriver, strategy: any, selector: any): Promise<import("@appium/types").Element<string>[]>;
|
|
74
34
|
/**
|
|
75
35
|
* @this {FakeDriver}
|
|
76
36
|
*/
|
|
77
|
-
function
|
|
37
|
+
function findElementFromElement(this: import("../driver").FakeDriver, strategy: any, selector: any, elementId: any): Promise<import("@appium/types").Element<string>>;
|
|
78
38
|
/**
|
|
79
39
|
* @this {FakeDriver}
|
|
80
40
|
*/
|
|
81
|
-
function findElementsFromElement(this: import("../driver").FakeDriver, strategy: any, selector: any, elementId: any): Promise<import("@appium/types").Element[]>;
|
|
41
|
+
function findElementsFromElement(this: import("../driver").FakeDriver, strategy: any, selector: any, elementId: any): Promise<import("@appium/types").Element<string>[]>;
|
|
82
42
|
}
|
|
83
43
|
export default _default;
|
|
84
44
|
export type Element = import('@appium/types').Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../lib/commands/find.js"],"names":[],"mappings":";IAKE;;OAEG;IACH,mGAOC;
|
|
1
|
+
{"version":3,"file":"find.d.ts","sourceRoot":"","sources":["../../../lib/commands/find.js"],"names":[],"mappings":";IAKE;;OAEG;IACH,mGAOC;IAED;;OAEG;IACH;;MAWC;IAED;;;;;;;;;OASG;IACH,yRAmCC;IAED;;;;;OAKG;IACH,iJAEC;IAED;;OAEG;IACH,8IAEC;IAED;;OAEG;IACH,sKAGC;IAED;;OAEG;IACH,yKAGC;;;sBAIU,OAAO,eAAe,EAAE,OAAO;yBAC/B,OAAO,WAAW,EAAE,UAAU"}
|
|
@@ -3,22 +3,10 @@ declare namespace _default {
|
|
|
3
3
|
* @this {FakeDriver}
|
|
4
4
|
*/
|
|
5
5
|
function title(this: import("../driver").FakeDriver): Promise<any>;
|
|
6
|
-
/**
|
|
7
|
-
* @this {FakeDriver}
|
|
8
|
-
*/
|
|
9
|
-
function title(this: import("../driver").FakeDriver): Promise<any>;
|
|
10
6
|
/**
|
|
11
7
|
* @this {FakeDriver}
|
|
12
8
|
*/
|
|
13
9
|
function keys(this: import("../driver").FakeDriver, value: any): Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* @this {FakeDriver}
|
|
16
|
-
*/
|
|
17
|
-
function keys(this: import("../driver").FakeDriver, value: any): Promise<void>;
|
|
18
|
-
/**
|
|
19
|
-
* @this {FakeDriver}
|
|
20
|
-
*/
|
|
21
|
-
function setGeoLocation(this: import("../driver").FakeDriver, location: any): Promise<void>;
|
|
22
10
|
/**
|
|
23
11
|
* @this {FakeDriver}
|
|
24
12
|
*/
|
|
@@ -27,14 +15,6 @@ declare namespace _default {
|
|
|
27
15
|
* @this {FakeDriver}
|
|
28
16
|
*/
|
|
29
17
|
function getGeoLocation(this: import("../driver").FakeDriver): Promise<import("../../../types/build/lib").Location>;
|
|
30
|
-
/**
|
|
31
|
-
* @this {FakeDriver}
|
|
32
|
-
*/
|
|
33
|
-
function getGeoLocation(this: import("../driver").FakeDriver): Promise<import("../../../types/build/lib").Location>;
|
|
34
|
-
/**
|
|
35
|
-
* @this {FakeDriver}
|
|
36
|
-
*/
|
|
37
|
-
function getPageSource(this: import("../driver").FakeDriver): Promise<string>;
|
|
38
18
|
/**
|
|
39
19
|
* @this {FakeDriver}
|
|
40
20
|
*/
|
|
@@ -43,16 +23,6 @@ declare namespace _default {
|
|
|
43
23
|
* @this {FakeDriver}
|
|
44
24
|
*/
|
|
45
25
|
function getOrientation(this: import("../driver").FakeDriver): Promise<string>;
|
|
46
|
-
/**
|
|
47
|
-
* @this {FakeDriver}
|
|
48
|
-
*/
|
|
49
|
-
function getOrientation(this: import("../driver").FakeDriver): Promise<string>;
|
|
50
|
-
/**
|
|
51
|
-
*
|
|
52
|
-
* @param {import('../types').FakeDriverCaps['orientation']} o
|
|
53
|
-
* @this {FakeDriver}
|
|
54
|
-
*/
|
|
55
|
-
function setOrientation(this: import("../driver").FakeDriver, o: any): Promise<void>;
|
|
56
26
|
/**
|
|
57
27
|
*
|
|
58
28
|
* @param {import('../types').FakeDriverCaps['orientation']} o
|
|
@@ -63,17 +33,6 @@ declare namespace _default {
|
|
|
63
33
|
* @this {FakeDriver}
|
|
64
34
|
*/
|
|
65
35
|
function getScreenshot(this: import("../driver").FakeDriver): Promise<string>;
|
|
66
|
-
/**
|
|
67
|
-
* @this {FakeDriver}
|
|
68
|
-
*/
|
|
69
|
-
function getScreenshot(this: import("../driver").FakeDriver): Promise<string>;
|
|
70
|
-
/**
|
|
71
|
-
* @this {FakeDriver}
|
|
72
|
-
*/
|
|
73
|
-
function getWindowSize(this: import("../driver").FakeDriver): Promise<{
|
|
74
|
-
width: number;
|
|
75
|
-
height: number;
|
|
76
|
-
}>;
|
|
77
36
|
/**
|
|
78
37
|
* @this {FakeDriver}
|
|
79
38
|
*/
|
|
@@ -90,29 +49,11 @@ declare namespace _default {
|
|
|
90
49
|
x: number;
|
|
91
50
|
y: number;
|
|
92
51
|
}>;
|
|
93
|
-
/**
|
|
94
|
-
* @this {FakeDriver}
|
|
95
|
-
*/
|
|
96
|
-
function getWindowRect(this: import("../driver").FakeDriver): Promise<{
|
|
97
|
-
width: number;
|
|
98
|
-
height: number;
|
|
99
|
-
x: number;
|
|
100
|
-
y: number;
|
|
101
|
-
}>;
|
|
102
52
|
/**
|
|
103
53
|
*
|
|
104
54
|
* @this {FakeDriver}
|
|
105
55
|
*/
|
|
106
56
|
function performActions(this: import("../driver").FakeDriver, actions: any): Promise<void>;
|
|
107
|
-
/**
|
|
108
|
-
*
|
|
109
|
-
* @this {FakeDriver}
|
|
110
|
-
*/
|
|
111
|
-
function performActions(this: import("../driver").FakeDriver, actions: any): Promise<void>;
|
|
112
|
-
/**
|
|
113
|
-
* @this {FakeDriver}
|
|
114
|
-
*/
|
|
115
|
-
function releaseActions(this: import("../driver").FakeDriver): Promise<void>;
|
|
116
57
|
/**
|
|
117
58
|
* @this {FakeDriver}
|
|
118
59
|
*/
|
|
@@ -121,14 +62,6 @@ declare namespace _default {
|
|
|
121
62
|
* @this {FakeDriver}
|
|
122
63
|
*/
|
|
123
64
|
function getLog(this: import("../driver").FakeDriver, type: any): Promise<any[]>;
|
|
124
|
-
/**
|
|
125
|
-
* @this {FakeDriver}
|
|
126
|
-
*/
|
|
127
|
-
function getLog(this: import("../driver").FakeDriver, type: any): Promise<any[]>;
|
|
128
|
-
/**
|
|
129
|
-
* @this {FakeDriver}
|
|
130
|
-
*/
|
|
131
|
-
function mobileShake(this: import("../driver").FakeDriver): Promise<void>;
|
|
132
65
|
/**
|
|
133
66
|
* @this {FakeDriver}
|
|
134
67
|
*/
|
|
@@ -137,14 +70,6 @@ declare namespace _default {
|
|
|
137
70
|
* @this {FakeDriver}
|
|
138
71
|
*/
|
|
139
72
|
function doubleClick(this: import("../driver").FakeDriver): Promise<void>;
|
|
140
|
-
/**
|
|
141
|
-
* @this {FakeDriver}
|
|
142
|
-
*/
|
|
143
|
-
function doubleClick(this: import("../driver").FakeDriver): Promise<void>;
|
|
144
|
-
/**
|
|
145
|
-
* @this {FakeDriver}
|
|
146
|
-
*/
|
|
147
|
-
function execute(this: import("../driver").FakeDriver, script: any, args: any): Promise<any>;
|
|
148
73
|
/**
|
|
149
74
|
* @this {FakeDriver}
|
|
150
75
|
*/
|
|
@@ -159,16 +84,6 @@ declare namespace _default {
|
|
|
159
84
|
* @this {FakeDriver}
|
|
160
85
|
*/
|
|
161
86
|
function fakeAddition(this: import("../driver").FakeDriver, num1: number, num2: number, num3?: number | undefined): Promise<number>;
|
|
162
|
-
/**
|
|
163
|
-
* Add two or maybe even three numbers
|
|
164
|
-
*
|
|
165
|
-
* @param {number} num1
|
|
166
|
-
* @param {number} num2
|
|
167
|
-
* @param {number} [num3]
|
|
168
|
-
* @returns {Promise<number>}
|
|
169
|
-
* @this {FakeDriver}
|
|
170
|
-
*/
|
|
171
|
-
function fakeAddition(this: import("../driver").FakeDriver, num1: number, num2: number, num3?: number | undefined): Promise<number>;
|
|
172
87
|
}
|
|
173
88
|
export default _default;
|
|
174
89
|
export type FakeDriver = import('../driver').FakeDriver;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../lib/commands/general.js"],"names":[],"mappings":";IAKE;;OAEG;IACH,mEAGC;
|
|
1
|
+
{"version":3,"file":"general.d.ts","sourceRoot":"","sources":["../../../lib/commands/general.js"],"names":[],"mappings":";IAKE;;OAEG;IACH,mEAGC;IAED;;OAEG;IACH,+EAKC;IAED;;OAEG;IACH,4FAIC;IAED;;OAEG;IACH,oHAEC;IAED;;OAEG;IACH,8EAEC;IAED;;OAEG;IACH,+EAEC;IAED;;;;OAIG;IACH,qFAKC;IAED;;OAEG;IACH,8EAEC;IAED;;OAEG;IACH;;;OAEC;IAED;;OAEG;IACH;;;;;OAEC;IAED;;;OAGG;IACH,2FAEC;IAED;;OAEG;IACH,6EAAyB;IAEzB;;OAEG;IACH,iFAOC;IAED;;OAEG;IACH,0EAEC;IAED;;OAEG;IACH,0EAAsB;IAEtB;;OAEG;IACH,6FAEC;IAED;;;;;;;;OAQG;IACH,oIAEC;;;yBAIU,OAAO,WAAW,EAAE,UAAU"}
|
package/build/lib/driver.d.ts
CHANGED
|
@@ -106,7 +106,7 @@ export class FakeDriver extends BaseDriver<{
|
|
|
106
106
|
* @param {W3CFakeDriverCaps} [w3cCapabilities3] W3C Capabilities
|
|
107
107
|
* @param {import('@appium/types').DriverData[]} [driverData] Other session data
|
|
108
108
|
* @override
|
|
109
|
-
* @returns {Promise<[string,FakeDriverCaps]>}
|
|
109
|
+
* @returns {Promise<[string,FakeDriverCaps]>}
|
|
110
110
|
*/
|
|
111
111
|
override createSession(w3cCapabilities1: W3CFakeDriverCaps, w3cCapabilities2?: import("./types").W3CFakeDriverCaps | undefined, w3cCapabilities3?: import("./types").W3CFakeDriverCaps | undefined, driverData?: import("@appium/types").DriverData[] | undefined): Promise<[string, Partial<import("@appium/types").ConstraintsToCaps<typeof import("@appium/types").BASE_DESIRED_CAP_CONSTRAINTS & {
|
|
112
112
|
readonly app: {
|
|
@@ -194,10 +194,10 @@ export class FakeDriver extends BaseDriver<{
|
|
|
194
194
|
wrapNewEl: (this: FakeDriver, obj: any) => {
|
|
195
195
|
ELEMENT: string;
|
|
196
196
|
};
|
|
197
|
-
findElOrEls: <Mult extends boolean, Ctx = any>(this: FakeDriver, strategy: string, selector: string, mult: Mult, context?: Ctx | undefined) => Promise<Mult extends true ? import("@appium/types").Element[] : import("@appium/types").Element
|
|
198
|
-
findElements: (this: FakeDriver, strategy: any, selector: any) => Promise<import("@appium/types").Element[]>;
|
|
199
|
-
findElementFromElement: (this: FakeDriver, strategy: any, selector: any, elementId: any) => Promise<import("@appium/types").Element
|
|
200
|
-
findElementsFromElement: (this: FakeDriver, strategy: any, selector: any, elementId: any) => Promise<import("@appium/types").Element[]>;
|
|
197
|
+
findElOrEls: <Mult extends boolean, Ctx = any>(this: FakeDriver, strategy: string, selector: string, mult: Mult, context?: Ctx | undefined) => Promise<Mult extends true ? import("@appium/types").Element<string>[] : import("@appium/types").Element<string>>;
|
|
198
|
+
findElements: (this: FakeDriver, strategy: any, selector: any) => Promise<import("@appium/types").Element<string>[]>;
|
|
199
|
+
findElementFromElement: (this: FakeDriver, strategy: any, selector: any, elementId: any) => Promise<import("@appium/types").Element<string>>;
|
|
200
|
+
findElementsFromElement: (this: FakeDriver, strategy: any, selector: any, elementId: any) => Promise<import("@appium/types").Element<string>[]>;
|
|
201
201
|
/***********
|
|
202
202
|
* GENERAL *
|
|
203
203
|
***********/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"driver.d.ts","sourceRoot":"","sources":["../../lib/driver.js"],"names":[],"mappings":"AAgBA;;GAEG;AAEH;;;GAGG;AACH;;;;;;;;6BAF+B,qBAAqB;IAkIlD;;;;;YAGI;;eAEG;;;;;;;;;;;;;;;;;;;;;;;;MAaJ;IAEH;;;;;;;;QAKE;;WAEG;;;;;;;;;;;;;MAWF;IAEH,2CAEC;IAED,mFAMC;IA1KD,qDASC;IAhBD;;;;;;;;MAAgD;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iBAEa;IACb,0CAAsB;IACtB,sDAAoB;IACpB,mEAAwC;IACxC,gFAAwC;IAExC,sDAAwC;IACxC,4DAAwC;IACxC,qDAAsC;IACtC;;;OAAsC;IACtC;;;;;OAAsC;IACtC,kEAAwC;IACxC,wDAAwB;IACxB,iDAAkC;IAClC,iDAAkC;IAClC,oEAA0B;IAC1B,2GAAoC;IACpC,oDAAwC;CACzC;;oCAnQY,8BAA8B;6BAwQ9B,OAAO,SAAS,EAAE,cAAc;gCAChC,OAAO,SAAS,EAAE,iBAAiB;4KAKnC,OAAO,eAAe,EAAE,WAAW,CAAC,CAAC,CAAC;qGAKtC,OAAO,eAAe,EAAE,cAAc,CAAC,CAAC,CAAC"}
|
package/build/lib/driver.js
CHANGED
|
@@ -134,7 +134,7 @@ class FakeDriver extends driver_1.BaseDriver {
|
|
|
134
134
|
* @param {W3CFakeDriverCaps} [w3cCapabilities3] W3C Capabilities
|
|
135
135
|
* @param {import('@appium/types').DriverData[]} [driverData] Other session data
|
|
136
136
|
* @override
|
|
137
|
-
* @returns {Promise<[string,FakeDriverCaps]>}
|
|
137
|
+
* @returns {Promise<[string,FakeDriverCaps]>}
|
|
138
138
|
*/
|
|
139
139
|
async createSession(w3cCapabilities1, w3cCapabilities2, w3cCapabilities3, driverData = []) {
|
|
140
140
|
// TODO add validation on caps.app that we will get for free from
|
package/build/lib/types.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import type { FakeDriverConstraints } from './driver';
|
|
|
4
4
|
* W3C-style caps for {@link FakeDriver}
|
|
5
5
|
* @public
|
|
6
6
|
*/
|
|
7
|
-
export
|
|
7
|
+
export type W3CFakeDriverCaps = W3CDriverCaps<FakeDriverConstraints>;
|
|
8
8
|
/**
|
|
9
9
|
* Capabilities for {@link FakeDriver}
|
|
10
10
|
* @public
|
|
11
11
|
*/
|
|
12
|
-
export
|
|
12
|
+
export type FakeDriverCaps = DriverCaps<FakeDriverConstraints>;
|
|
13
13
|
//# sourceMappingURL=types.d.ts.map
|
package/build/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAEpD;;;GAGG;AACH,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../lib/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,UAAU,EAAE,aAAa,EAAC,MAAM,eAAe,CAAC;AAC7D,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,UAAU,CAAC;AAEpD;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC;AAErE;;;GAGG;AACH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC,CAAC"}
|
package/lib/driver.js
CHANGED
|
@@ -73,7 +73,7 @@ export class FakeDriver extends BaseDriver {
|
|
|
73
73
|
* @param {W3CFakeDriverCaps} [w3cCapabilities3] W3C Capabilities
|
|
74
74
|
* @param {import('@appium/types').DriverData[]} [driverData] Other session data
|
|
75
75
|
* @override
|
|
76
|
-
* @returns {Promise<[string,FakeDriverCaps]>}
|
|
76
|
+
* @returns {Promise<[string,FakeDriverCaps]>}
|
|
77
77
|
*/
|
|
78
78
|
async createSession(w3cCapabilities1, w3cCapabilities2, w3cCapabilities3, driverData = []) {
|
|
79
79
|
// TODO add validation on caps.app that we will get for free from
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/fake-driver",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0",
|
|
4
4
|
"description": "Mock driver used internally by Appium for testing. Ignore",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"entryPoint": "./lib/index.js"
|
|
83
83
|
},
|
|
84
84
|
"types": "./build/lib/index.d.ts",
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "7b4935632222123a4fa7422461f6312f1f0dfbe4"
|
|
86
86
|
}
|