appium-xcuitest-driver 10.2.2 → 10.4.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/CHANGELOG.md +12 -0
- package/build/lib/commands/active-app-info.d.ts +9 -0
- package/build/lib/commands/active-app-info.d.ts.map +1 -0
- package/build/lib/commands/active-app-info.js +14 -0
- package/build/lib/commands/active-app-info.js.map +1 -0
- package/build/lib/commands/alert.d.ts +42 -45
- package/build/lib/commands/alert.d.ts.map +1 -1
- package/build/lib/commands/alert.js +66 -62
- package/build/lib/commands/alert.js.map +1 -1
- package/build/lib/commands/app-management.d.ts +150 -153
- package/build/lib/commands/app-management.d.ts.map +1 -1
- package/build/lib/commands/app-management.js +300 -286
- package/build/lib/commands/app-management.js.map +1 -1
- package/build/lib/commands/app-strings.d.ts +14 -17
- package/build/lib/commands/app-strings.d.ts.map +1 -1
- package/build/lib/commands/app-strings.js +23 -24
- package/build/lib/commands/app-strings.js.map +1 -1
- package/build/lib/commands/appearance.d.ts +19 -22
- package/build/lib/commands/appearance.d.ts.map +1 -1
- package/build/lib/commands/appearance.js +56 -56
- package/build/lib/commands/appearance.js.map +1 -1
- package/build/lib/commands/audit.d.ts +22 -17
- package/build/lib/commands/audit.d.ts.map +1 -1
- package/build/lib/commands/audit.js +17 -18
- package/build/lib/commands/audit.js.map +1 -1
- package/build/lib/commands/battery.d.ts +11 -14
- package/build/lib/commands/battery.d.ts.map +1 -1
- package/build/lib/commands/battery.js +36 -37
- package/build/lib/commands/battery.js.map +1 -1
- package/build/lib/commands/biometric.d.ts +30 -33
- package/build/lib/commands/biometric.d.ts.map +1 -1
- package/build/lib/commands/biometric.js +42 -41
- package/build/lib/commands/biometric.js.map +1 -1
- package/build/lib/commands/certificate.d.ts +48 -45
- package/build/lib/commands/certificate.d.ts.map +1 -1
- package/build/lib/commands/certificate.js +218 -205
- package/build/lib/commands/certificate.js.map +1 -1
- package/build/lib/commands/clipboard.d.ts +19 -22
- package/build/lib/commands/clipboard.d.ts.map +1 -1
- package/build/lib/commands/clipboard.js +30 -30
- package/build/lib/commands/clipboard.js.map +1 -1
- package/build/lib/commands/condition.d.ts +49 -26
- package/build/lib/commands/condition.d.ts.map +1 -1
- package/build/lib/commands/condition.js +87 -86
- package/build/lib/commands/condition.js.map +1 -1
- package/build/lib/commands/content-size.d.ts +26 -29
- package/build/lib/commands/content-size.d.ts.map +1 -1
- package/build/lib/commands/content-size.js +36 -36
- package/build/lib/commands/content-size.js.map +1 -1
- package/build/lib/commands/context.d.ts +161 -108
- package/build/lib/commands/context.d.ts.map +1 -1
- package/build/lib/commands/context.js +530 -517
- package/build/lib/commands/context.js.map +1 -1
- package/build/lib/commands/deviceInfo.d.ts +9 -12
- package/build/lib/commands/deviceInfo.d.ts.map +1 -1
- package/build/lib/commands/deviceInfo.js +17 -18
- package/build/lib/commands/deviceInfo.js.map +1 -1
- package/build/lib/commands/element.d.ts +102 -105
- package/build/lib/commands/element.d.ts.map +1 -1
- package/build/lib/commands/element.js +337 -323
- package/build/lib/commands/element.js.map +1 -1
- package/build/lib/commands/execute.d.ts +24 -19
- package/build/lib/commands/execute.d.ts.map +1 -1
- package/build/lib/commands/execute.js +63 -62
- package/build/lib/commands/execute.js.map +1 -1
- package/build/lib/commands/file-movement.d.ts +77 -80
- package/build/lib/commands/file-movement.d.ts.map +1 -1
- package/build/lib/commands/file-movement.js +130 -124
- package/build/lib/commands/file-movement.js.map +1 -1
- package/build/lib/commands/find.d.ts +18 -21
- package/build/lib/commands/find.d.ts.map +1 -1
- package/build/lib/commands/find.js +158 -156
- package/build/lib/commands/find.js.map +1 -1
- package/build/lib/commands/general.d.ts +124 -116
- package/build/lib/commands/general.d.ts.map +1 -1
- package/build/lib/commands/general.js +248 -232
- package/build/lib/commands/general.js.map +1 -1
- package/build/lib/commands/geolocation.d.ts +43 -46
- package/build/lib/commands/geolocation.d.ts.map +1 -1
- package/build/lib/commands/geolocation.js +10 -11
- package/build/lib/commands/geolocation.js.map +1 -1
- package/build/lib/commands/gesture.d.ts +273 -276
- package/build/lib/commands/gesture.d.ts.map +1 -1
- package/build/lib/commands/gesture.js +506 -492
- package/build/lib/commands/gesture.js.map +1 -1
- package/build/lib/commands/increase-contrast.d.ts +20 -23
- package/build/lib/commands/increase-contrast.d.ts.map +1 -1
- package/build/lib/commands/increase-contrast.js +30 -30
- package/build/lib/commands/increase-contrast.js.map +1 -1
- package/build/lib/commands/iohid.d.ts +1370 -1373
- package/build/lib/commands/iohid.d.ts.map +1 -1
- package/build/lib/commands/iohid.js +30 -31
- package/build/lib/commands/iohid.js.map +1 -1
- package/build/lib/commands/keyboard.d.ts +29 -32
- package/build/lib/commands/keyboard.d.ts.map +1 -1
- package/build/lib/commands/keyboard.js +53 -51
- package/build/lib/commands/keyboard.js.map +1 -1
- package/build/lib/commands/keychains.d.ts +9 -12
- package/build/lib/commands/keychains.d.ts.map +1 -1
- package/build/lib/commands/keychains.js +13 -14
- package/build/lib/commands/keychains.js.map +1 -1
- package/build/lib/commands/localization.d.ts +16 -19
- package/build/lib/commands/localization.d.ts.map +1 -1
- package/build/lib/commands/localization.js +25 -26
- package/build/lib/commands/localization.js.map +1 -1
- package/build/lib/commands/location.d.ts +36 -39
- package/build/lib/commands/location.d.ts.map +1 -1
- package/build/lib/commands/location.js +99 -98
- package/build/lib/commands/location.js.map +1 -1
- package/build/lib/commands/lock.d.ts +21 -24
- package/build/lib/commands/lock.d.ts.map +1 -1
- package/build/lib/commands/lock.js +39 -38
- package/build/lib/commands/lock.js.map +1 -1
- package/build/lib/commands/log.d.ts +43 -37
- package/build/lib/commands/log.d.ts.map +1 -1
- package/build/lib/commands/log.js +174 -171
- package/build/lib/commands/log.js.map +1 -1
- package/build/lib/commands/memory.d.ts +9 -12
- package/build/lib/commands/memory.d.ts.map +1 -1
- package/build/lib/commands/memory.js +37 -39
- package/build/lib/commands/memory.js.map +1 -1
- package/build/lib/commands/navigation.d.ts +30 -33
- package/build/lib/commands/navigation.d.ts.map +1 -1
- package/build/lib/commands/navigation.js +92 -92
- package/build/lib/commands/navigation.js.map +1 -1
- package/build/lib/commands/notifications.d.ts +26 -29
- package/build/lib/commands/notifications.d.ts.map +1 -1
- package/build/lib/commands/notifications.js +53 -53
- package/build/lib/commands/notifications.js.map +1 -1
- package/build/lib/commands/pasteboard.d.ts +21 -24
- package/build/lib/commands/pasteboard.d.ts.map +1 -1
- package/build/lib/commands/pasteboard.js +37 -37
- package/build/lib/commands/pasteboard.js.map +1 -1
- package/build/lib/commands/pcap.d.ts +39 -26
- package/build/lib/commands/pcap.d.ts.map +1 -1
- package/build/lib/commands/pcap.js +81 -81
- package/build/lib/commands/pcap.js.map +1 -1
- package/build/lib/commands/performance.d.ts +63 -44
- package/build/lib/commands/performance.d.ts.map +1 -1
- package/build/lib/commands/performance.js +105 -105
- package/build/lib/commands/performance.js.map +1 -1
- package/build/lib/commands/permissions.d.ts +33 -36
- package/build/lib/commands/permissions.d.ts.map +1 -1
- package/build/lib/commands/permissions.js +66 -65
- package/build/lib/commands/permissions.js.map +1 -1
- package/build/lib/commands/proxy-helper.d.ts +12 -15
- package/build/lib/commands/proxy-helper.d.ts.map +1 -1
- package/build/lib/commands/proxy-helper.js +53 -54
- package/build/lib/commands/proxy-helper.js.map +1 -1
- package/build/lib/commands/record-audio.d.ts +49 -29
- package/build/lib/commands/record-audio.d.ts.map +1 -1
- package/build/lib/commands/record-audio.js +100 -104
- package/build/lib/commands/record-audio.js.map +1 -1
- package/build/lib/commands/recordscreen.d.ts +54 -18
- package/build/lib/commands/recordscreen.d.ts.map +1 -1
- package/build/lib/commands/recordscreen.js +127 -129
- package/build/lib/commands/recordscreen.js.map +1 -1
- package/build/lib/commands/screenshots.d.ts +14 -17
- package/build/lib/commands/screenshots.d.ts.map +1 -1
- package/build/lib/commands/screenshots.js +108 -107
- package/build/lib/commands/screenshots.js.map +1 -1
- package/build/lib/commands/simctl.d.ts +11 -14
- package/build/lib/commands/simctl.d.ts.map +1 -1
- package/build/lib/commands/simctl.js +23 -26
- package/build/lib/commands/simctl.js.map +1 -1
- package/build/lib/commands/source.d.ts +14 -17
- package/build/lib/commands/source.d.ts.map +1 -1
- package/build/lib/commands/source.js +40 -43
- package/build/lib/commands/source.js.map +1 -1
- package/build/lib/commands/timeouts.d.ts +44 -33
- package/build/lib/commands/timeouts.d.ts.map +1 -1
- package/build/lib/commands/timeouts.js +65 -63
- package/build/lib/commands/timeouts.js.map +1 -1
- package/build/lib/commands/web.d.ts +247 -197
- package/build/lib/commands/web.d.ts.map +1 -1
- package/build/lib/commands/web.js +815 -786
- package/build/lib/commands/web.js.map +1 -1
- package/build/lib/commands/xctest-record-screen.d.ts +63 -66
- package/build/lib/commands/xctest-record-screen.d.ts.map +1 -1
- package/build/lib/commands/xctest-record-screen.js +103 -102
- package/build/lib/commands/xctest-record-screen.js.map +1 -1
- package/build/lib/commands/xctest.d.ts +55 -51
- package/build/lib/commands/xctest.d.ts.map +1 -1
- package/build/lib/commands/xctest.js +116 -117
- package/build/lib/commands/xctest.js.map +1 -1
- package/build/lib/driver.d.ts +278 -1597
- package/build/lib/driver.d.ts.map +1 -1
- package/build/lib/driver.js +320 -236
- package/build/lib/driver.js.map +1 -1
- package/build/lib/execute-method-map.d.ts.map +1 -1
- package/build/lib/execute-method-map.js +9 -0
- package/build/lib/execute-method-map.js.map +1 -1
- package/build/lib/real-device.d.ts +1 -1
- package/build/lib/real-device.d.ts.map +1 -1
- package/build/lib/real-device.js +2 -2
- package/build/lib/real-device.js.map +1 -1
- package/lib/commands/active-app-info.js +12 -0
- package/lib/commands/alert.js +68 -65
- package/lib/commands/app-management.js +308 -301
- package/lib/commands/app-strings.js +24 -26
- package/lib/commands/appearance.js +54 -56
- package/lib/commands/audit.js +18 -20
- package/lib/commands/battery.js +35 -37
- package/lib/commands/biometric.js +44 -46
- package/lib/commands/certificate.js +226 -215
- package/lib/commands/clipboard.js +30 -32
- package/lib/commands/condition.js +98 -100
- package/lib/commands/content-size.js +36 -38
- package/lib/commands/context.js +495 -490
- package/lib/commands/deviceInfo.js +19 -20
- package/lib/commands/element.js +367 -357
- package/lib/commands/execute.js +72 -72
- package/lib/commands/file-movement.js +132 -134
- package/lib/commands/find.js +160 -159
- package/lib/commands/general.js +238 -231
- package/lib/commands/geolocation.js +6 -14
- package/lib/commands/gesture.js +525 -515
- package/lib/commands/increase-contrast.js +30 -32
- package/lib/commands/iohid.js +32 -34
- package/lib/commands/keyboard.js +49 -51
- package/lib/commands/keychains.js +12 -14
- package/lib/commands/localization.js +24 -26
- package/lib/commands/location.js +102 -104
- package/lib/commands/lock.js +38 -38
- package/lib/commands/log.js +197 -198
- package/lib/commands/memory.js +40 -43
- package/lib/commands/navigation.js +96 -100
- package/lib/commands/notifications.js +57 -59
- package/lib/commands/pasteboard.js +37 -39
- package/lib/commands/pcap.js +84 -86
- package/lib/commands/performance.js +132 -133
- package/lib/commands/permissions.js +67 -69
- package/lib/commands/proxy-helper.js +60 -61
- package/lib/commands/record-audio.js +115 -120
- package/lib/commands/recordscreen.js +145 -149
- package/lib/commands/screenshots.js +116 -116
- package/lib/commands/simctl.js +25 -29
- package/lib/commands/source.js +42 -46
- package/lib/commands/timeouts.js +59 -63
- package/lib/commands/web.js +878 -858
- package/lib/commands/xctest-record-screen.js +103 -105
- package/lib/commands/xctest.js +134 -139
- package/lib/driver.js +288 -236
- package/lib/execute-method-map.ts +9 -0
- package/lib/real-device.js +2 -2
- package/npm-shrinkwrap.json +440 -76
- package/package.json +2 -1
- package/build/lib/commands/activeAppInfo.d.ts +0 -12
- package/build/lib/commands/activeAppInfo.d.ts.map +0 -1
- package/build/lib/commands/activeAppInfo.js +0 -15
- package/build/lib/commands/activeAppInfo.js.map +0 -1
- package/build/lib/commands/index.d.ts +0 -96
- package/build/lib/commands/index.d.ts.map +0 -1
- package/build/lib/commands/index.js +0 -100
- package/build/lib/commands/index.js.map +0 -1
- package/build/lib/real-device-clients/devicectl.d.ts +0 -204
- package/build/lib/real-device-clients/devicectl.d.ts.map +0 -1
- package/build/lib/real-device-clients/devicectl.js +0 -264
- package/build/lib/real-device-clients/devicectl.js.map +0 -1
- package/lib/commands/activeAppInfo.js +0 -14
- package/lib/commands/index.js +0 -95
- package/lib/real-device-clients/devicectl.js +0 -291
|
@@ -1,144 +1,256 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @this {XCUITestDriver}
|
|
3
|
+
* @group Mobile Web Only
|
|
4
|
+
* @param {number|string|null} frame
|
|
5
|
+
* @returns {Promise<void>}
|
|
6
|
+
*/
|
|
7
|
+
export function setFrame(this: import("../driver").XCUITestDriver, frame: number | string | null): Promise<void>;
|
|
8
|
+
export class setFrame {
|
|
2
9
|
/**
|
|
3
10
|
* @this {XCUITestDriver}
|
|
4
11
|
* @group Mobile Web Only
|
|
5
|
-
|
|
6
|
-
function setFrame(this: import("../driver").XCUITestDriver, frame: any): Promise<void>;
|
|
7
|
-
/**
|
|
8
|
-
* @this {XCUITestDriver}
|
|
9
|
-
* @group Mobile Web Only
|
|
10
|
-
*/
|
|
11
|
-
function getCssProperty(this: import("../driver").XCUITestDriver, propertyName: any, el: any): Promise<any>;
|
|
12
|
-
/**
|
|
13
|
-
* Submit the form an element is in
|
|
14
|
-
*
|
|
15
|
-
* @param {string|Element} el - the element ID
|
|
16
|
-
* @group Mobile Web Only
|
|
17
|
-
* @this {XCUITestDriver}
|
|
18
|
-
*/
|
|
19
|
-
function submit(this: import("../driver").XCUITestDriver, el: string | Element): Promise<void>;
|
|
20
|
-
/**
|
|
21
|
-
* @this {XCUITestDriver}
|
|
22
|
-
* @group Mobile Web Only
|
|
23
|
-
*/
|
|
24
|
-
function refresh(this: import("../driver").XCUITestDriver): Promise<void>;
|
|
25
|
-
/**
|
|
26
|
-
* @this {XCUITestDriver}
|
|
27
|
-
* @group Mobile Web Only
|
|
28
|
-
*/
|
|
29
|
-
function getUrl(this: import("../driver").XCUITestDriver): Promise<any>;
|
|
30
|
-
/**
|
|
31
|
-
* @this {XCUITestDriver}
|
|
32
|
-
* @group Mobile Web Only
|
|
33
|
-
*/
|
|
34
|
-
function title(this: import("../driver").XCUITestDriver): Promise<any>;
|
|
35
|
-
/**
|
|
36
|
-
* @this {XCUITestDriver}
|
|
37
|
-
* @group Mobile Web Only
|
|
38
|
-
*/
|
|
39
|
-
function getCookies(this: import("../driver").XCUITestDriver): Promise<any>;
|
|
40
|
-
/**
|
|
41
|
-
* @this {XCUITestDriver}
|
|
42
|
-
* @group Mobile Web Only
|
|
43
|
-
*/
|
|
44
|
-
function setCookie(this: import("../driver").XCUITestDriver, cookie: any): Promise<void>;
|
|
45
|
-
/**
|
|
46
|
-
* @this {XCUITestDriver}
|
|
47
|
-
* @group Mobile Web Only
|
|
48
|
-
*/
|
|
49
|
-
function deleteCookie(this: import("../driver").XCUITestDriver, cookieName: any): Promise<void>;
|
|
50
|
-
/**
|
|
51
|
-
* @this {XCUITestDriver}
|
|
52
|
-
* @group Mobile Web Only
|
|
53
|
-
*/
|
|
54
|
-
function deleteCookies(this: import("../driver").XCUITestDriver): Promise<void>;
|
|
55
|
-
/**
|
|
56
|
-
* @this {XCUITestDriver}
|
|
57
|
-
*/
|
|
58
|
-
function findWebElementOrElements(this: import("../driver").XCUITestDriver, strategy: any, selector: any, many: any, ctx: any): Promise<any>;
|
|
59
|
-
/**
|
|
60
|
-
* @this {XCUITestDriver}
|
|
61
|
-
* @param {number} x
|
|
62
|
-
* @param {number} y
|
|
63
|
-
*/
|
|
64
|
-
function clickWebCoords(this: import("../driver").XCUITestDriver, x: number, y: number): Promise<void>;
|
|
65
|
-
/**
|
|
66
|
-
* @this {XCUITestDriver}
|
|
67
|
-
* @returns {Promise<boolean>}
|
|
68
|
-
*/
|
|
69
|
-
function getSafariIsIphone(this: import("../driver").XCUITestDriver): Promise<boolean>;
|
|
70
|
-
/**
|
|
71
|
-
* @this {XCUITestDriver}
|
|
72
|
-
* @returns {Promise<import('@appium/types').Size>}
|
|
73
|
-
*/
|
|
74
|
-
function getSafariDeviceSize(this: import("../driver").XCUITestDriver): Promise<import("@appium/types").Size>;
|
|
75
|
-
/**
|
|
76
|
-
* @this {XCUITestDriver}
|
|
77
|
-
* @returns {Promise<boolean>}
|
|
78
|
-
*/
|
|
79
|
-
function getSafariIsNotched(this: import("../driver").XCUITestDriver): Promise<boolean>;
|
|
80
|
-
/**
|
|
81
|
-
* @this {XCUITestDriver}
|
|
82
|
-
*/
|
|
83
|
-
function getExtraTranslateWebCoordsOffset(this: import("../driver").XCUITestDriver, wvPos: any, realDims: any): Promise<void>;
|
|
84
|
-
/**
|
|
85
|
-
* @this {XCUITestDriver}
|
|
86
|
-
* @param {boolean} isIphone
|
|
87
|
-
* @param {string} bannerVisibility
|
|
88
|
-
* @returns {Promise<number>}
|
|
89
|
-
*/
|
|
90
|
-
function getExtraNativeWebTapOffset(this: import("../driver").XCUITestDriver, isIphone: boolean, bannerVisibility: string): Promise<number>;
|
|
91
|
-
/**
|
|
92
|
-
* @this {XCUITestDriver}
|
|
93
|
-
* @param {any} el
|
|
12
|
+
* @param {number|string|null} frame
|
|
94
13
|
* @returns {Promise<void>}
|
|
95
14
|
*/
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
15
|
+
constructor(this: import("../driver").XCUITestDriver, frame: number | string | null);
|
|
16
|
+
curWebFrames: any[] | undefined;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* @this {XCUITestDriver}
|
|
20
|
+
* @group Mobile Web Only
|
|
21
|
+
*/
|
|
22
|
+
export function getCssProperty(this: import("../driver").XCUITestDriver, propertyName: any, el: any): Promise<any>;
|
|
23
|
+
/**
|
|
24
|
+
* Submit the form an element is in
|
|
25
|
+
*
|
|
26
|
+
* @param {string|Element} el - the element ID
|
|
27
|
+
* @group Mobile Web Only
|
|
28
|
+
* @this {XCUITestDriver}
|
|
29
|
+
*/
|
|
30
|
+
export function submit(this: import("../driver").XCUITestDriver, el: string | Element): Promise<void>;
|
|
31
|
+
/**
|
|
32
|
+
* @this {XCUITestDriver}
|
|
33
|
+
* @group Mobile Web Only
|
|
34
|
+
*/
|
|
35
|
+
export function refresh(this: import("../driver").XCUITestDriver): Promise<void>;
|
|
36
|
+
/**
|
|
37
|
+
* @this {XCUITestDriver}
|
|
38
|
+
* @group Mobile Web Only
|
|
39
|
+
*/
|
|
40
|
+
export function getUrl(this: import("../driver").XCUITestDriver): Promise<any>;
|
|
41
|
+
/**
|
|
42
|
+
* @this {XCUITestDriver}
|
|
43
|
+
* @group Mobile Web Only
|
|
44
|
+
*/
|
|
45
|
+
export function title(this: import("../driver").XCUITestDriver): Promise<any>;
|
|
46
|
+
/**
|
|
47
|
+
* @this {XCUITestDriver}
|
|
48
|
+
* @group Mobile Web Only
|
|
49
|
+
*/
|
|
50
|
+
export function getCookies(this: import("../driver").XCUITestDriver): Promise<any>;
|
|
51
|
+
/**
|
|
52
|
+
* @this {XCUITestDriver}
|
|
53
|
+
* @group Mobile Web Only
|
|
54
|
+
*/
|
|
55
|
+
export function setCookie(this: import("../driver").XCUITestDriver, cookie: any): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* @this {XCUITestDriver}
|
|
58
|
+
* @group Mobile Web Only
|
|
59
|
+
*/
|
|
60
|
+
export function deleteCookie(this: import("../driver").XCUITestDriver, cookieName: any): Promise<void>;
|
|
61
|
+
/**
|
|
62
|
+
* @this {XCUITestDriver}
|
|
63
|
+
* @group Mobile Web Only
|
|
64
|
+
*/
|
|
65
|
+
export function deleteCookies(this: import("../driver").XCUITestDriver): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* @this {XCUITestDriver}
|
|
68
|
+
*/
|
|
69
|
+
export function _deleteCookie(this: import("../driver").XCUITestDriver, cookie: any): Promise<any>;
|
|
70
|
+
/**
|
|
71
|
+
* @this {XCUITestDriver}
|
|
72
|
+
*/
|
|
73
|
+
export function cacheWebElement(this: import("../driver").XCUITestDriver, el: any): any;
|
|
74
|
+
/**
|
|
75
|
+
* @this {XCUITestDriver}
|
|
76
|
+
*/
|
|
77
|
+
export function cacheWebElements(this: import("../driver").XCUITestDriver, response: any): any;
|
|
78
|
+
/**
|
|
79
|
+
* @param {string} atom
|
|
80
|
+
* @param {unknown[]} args
|
|
81
|
+
* @returns {Promise<any>}
|
|
82
|
+
* @privateRemarks This should return `Promise<T>` where `T` extends `unknown`, but that's going to cause a lot of things to break.
|
|
83
|
+
* @this {XCUITestDriver}
|
|
84
|
+
*/
|
|
85
|
+
export function executeAtom(this: import("../driver").XCUITestDriver, atom: string, args: unknown[], alwaysDefaultFrame?: boolean): Promise<any>;
|
|
86
|
+
/**
|
|
87
|
+
* @this {XCUITestDriver}
|
|
88
|
+
* @param {string} atom
|
|
89
|
+
* @param {any[]} args
|
|
90
|
+
*/
|
|
91
|
+
export function executeAtomAsync(this: import("../driver").XCUITestDriver, atom: string, args: any[]): Promise<any>;
|
|
92
|
+
export class executeAtomAsync {
|
|
125
93
|
/**
|
|
126
|
-
* Calibrates web to real coordinates translation.
|
|
127
|
-
* This API can only be called from Safari web context.
|
|
128
|
-
* It must load a custom page to the browser, and then restore
|
|
129
|
-
* the original one, so don't call it if you can potentially
|
|
130
|
-
* lose the current web app state.
|
|
131
|
-
* The outcome of this API is then used in nativeWebTap mode.
|
|
132
|
-
* The returned value could also be used to manually transform web coordinates
|
|
133
|
-
* to real devices ones in client scripts.
|
|
134
|
-
*
|
|
135
94
|
* @this {XCUITestDriver}
|
|
136
|
-
* @
|
|
95
|
+
* @param {string} atom
|
|
96
|
+
* @param {any[]} args
|
|
137
97
|
*/
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
98
|
+
constructor(this: import("../driver").XCUITestDriver, atom: string, args: any[]);
|
|
99
|
+
asyncPromise: {
|
|
100
|
+
resolve: (thenableOrResult?: any) => void;
|
|
101
|
+
reject: (error?: any) => void;
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* @template {string} S
|
|
106
|
+
* @param {S|Element<S>} elOrId
|
|
107
|
+
* @returns {import('./types').AtomsElement<S>}
|
|
108
|
+
* @this {XCUITestDriver}
|
|
109
|
+
*/
|
|
110
|
+
export function getAtomsElement<S extends string>(this: import("../driver").XCUITestDriver, elOrId: S | Element<S>): import("./types").AtomsElement<S>;
|
|
111
|
+
/**
|
|
112
|
+
* @param {readonly any[]} [args]
|
|
113
|
+
* @this {XCUITestDriver}
|
|
114
|
+
*/
|
|
115
|
+
export function convertElementsForAtoms(this: import("../driver").XCUITestDriver, args?: readonly any[]): any;
|
|
116
|
+
export function getElementId(element: any): any;
|
|
117
|
+
/**
|
|
118
|
+
* @param {any} element
|
|
119
|
+
* @returns {element is Element}
|
|
120
|
+
*/
|
|
121
|
+
export function hasElementId(element: any): element is Element;
|
|
122
|
+
/**
|
|
123
|
+
* @this {XCUITestDriver}
|
|
124
|
+
*/
|
|
125
|
+
export function findWebElementOrElements(this: import("../driver").XCUITestDriver, strategy: any, selector: any, many: any, ctx: any): Promise<any>;
|
|
126
|
+
/**
|
|
127
|
+
* @this {XCUITestDriver}
|
|
128
|
+
* @param {number} x
|
|
129
|
+
* @param {number} y
|
|
130
|
+
*/
|
|
131
|
+
export function clickWebCoords(this: import("../driver").XCUITestDriver, x: number, y: number): Promise<void>;
|
|
132
|
+
/**
|
|
133
|
+
* @this {XCUITestDriver}
|
|
134
|
+
* @returns {Promise<boolean>}
|
|
135
|
+
*/
|
|
136
|
+
export function getSafariIsIphone(this: import("../driver").XCUITestDriver): Promise<boolean>;
|
|
137
|
+
export class getSafariIsIphone {
|
|
138
|
+
_isSafariIphone: boolean | undefined;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @this {XCUITestDriver}
|
|
142
|
+
* @returns {Promise<import('@appium/types').Size>}
|
|
143
|
+
*/
|
|
144
|
+
export function getSafariDeviceSize(this: import("../driver").XCUITestDriver): Promise<import("@appium/types").Size>;
|
|
145
|
+
/**
|
|
146
|
+
* @this {XCUITestDriver}
|
|
147
|
+
* @returns {Promise<boolean>}
|
|
148
|
+
*/
|
|
149
|
+
export function getSafariIsNotched(this: import("../driver").XCUITestDriver): Promise<boolean>;
|
|
150
|
+
export class getSafariIsNotched {
|
|
151
|
+
_isSafariNotched: boolean | undefined;
|
|
152
|
+
}
|
|
153
|
+
/**
|
|
154
|
+
* @this {XCUITestDriver}
|
|
155
|
+
*/
|
|
156
|
+
export function getExtraTranslateWebCoordsOffset(this: import("../driver").XCUITestDriver, wvPos: any, realDims: any): Promise<void>;
|
|
157
|
+
/**
|
|
158
|
+
* @this {XCUITestDriver}
|
|
159
|
+
* @param {boolean} isIphone
|
|
160
|
+
* @param {string} bannerVisibility
|
|
161
|
+
* @returns {Promise<number>}
|
|
162
|
+
*/
|
|
163
|
+
export function getExtraNativeWebTapOffset(this: import("../driver").XCUITestDriver, isIphone: boolean, bannerVisibility: string): Promise<number>;
|
|
164
|
+
/**
|
|
165
|
+
* @this {XCUITestDriver}
|
|
166
|
+
* @param {any} el
|
|
167
|
+
* @returns {Promise<void>}
|
|
168
|
+
*/
|
|
169
|
+
export function nativeWebTap(this: import("../driver").XCUITestDriver, el: any): Promise<void>;
|
|
170
|
+
/**
|
|
171
|
+
* @this {XCUITestDriver}
|
|
172
|
+
* @param {number} x
|
|
173
|
+
* @param {number} y
|
|
174
|
+
* @returns {Promise<import('@appium/types').Position>}
|
|
175
|
+
*/
|
|
176
|
+
export function translateWebCoords(this: import("../driver").XCUITestDriver, x: number, y: number): Promise<import("@appium/types").Position>;
|
|
177
|
+
/**
|
|
178
|
+
* @this {XCUITestDriver}
|
|
179
|
+
* @returns {Promise<boolean>}
|
|
180
|
+
*/
|
|
181
|
+
export function checkForAlert(this: import("../driver").XCUITestDriver): Promise<boolean>;
|
|
182
|
+
/**
|
|
183
|
+
* @param {Promise<any>} promise
|
|
184
|
+
* @this {XCUITestDriver}
|
|
185
|
+
*/
|
|
186
|
+
export function waitForAtom(this: import("../driver").XCUITestDriver, promise: Promise<any>): Promise<any>;
|
|
187
|
+
/**
|
|
188
|
+
* @param {string} navType
|
|
189
|
+
* @this {XCUITestDriver}
|
|
190
|
+
*/
|
|
191
|
+
export function mobileWebNav(this: import("../driver").XCUITestDriver, navType: string): Promise<void>;
|
|
192
|
+
/**
|
|
193
|
+
* @this {XCUITestDriver}
|
|
194
|
+
* @returns {string} The base url which could be used to access WDA HTTP endpoints
|
|
195
|
+
* FROM THE SAME DEVICE where WDA is running
|
|
196
|
+
*/
|
|
197
|
+
export function getWdaLocalhostRoot(this: import("../driver").XCUITestDriver): string;
|
|
198
|
+
/**
|
|
199
|
+
* Calibrates web to real coordinates translation.
|
|
200
|
+
* This API can only be called from Safari web context.
|
|
201
|
+
* It must load a custom page to the browser, and then restore
|
|
202
|
+
* the original one, so don't call it if you can potentially
|
|
203
|
+
* lose the current web app state.
|
|
204
|
+
* The outcome of this API is then used in nativeWebTap mode.
|
|
205
|
+
* The returned value could also be used to manually transform web coordinates
|
|
206
|
+
* to real devices ones in client scripts.
|
|
207
|
+
*
|
|
208
|
+
* @this {XCUITestDriver}
|
|
209
|
+
* @returns {Promise<import('../types').CalibrationData>}
|
|
210
|
+
*/
|
|
211
|
+
export function mobileCalibrateWebToRealCoordinatesTranslation(this: import("../driver").XCUITestDriver): Promise<import("../types").CalibrationData>;
|
|
212
|
+
export class mobileCalibrateWebToRealCoordinatesTranslation {
|
|
213
|
+
webviewCalibrationResult: {
|
|
214
|
+
offsetX: number;
|
|
215
|
+
offsetY: number;
|
|
216
|
+
pixelRatioX: number;
|
|
217
|
+
pixelRatioY: number;
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @typedef {Object} SafariOpts
|
|
222
|
+
* @property {object} preferences An object containing Safari settings to be updated.
|
|
223
|
+
* The list of available setting names and their values could be retrieved by
|
|
224
|
+
* changing the corresponding Safari settings in the UI and then inspecting
|
|
225
|
+
* 'Library/Preferences/com.apple.mobilesafari.plist' file inside of
|
|
226
|
+
* com.apple.mobilesafari app container.
|
|
227
|
+
* The full path to the Mobile Safari's container could be retrieved from
|
|
228
|
+
* `xcrun simctl get_app_container <sim_udid> com.apple.mobilesafari data`
|
|
229
|
+
* command output.
|
|
230
|
+
* Use the `xcrun simctl spawn <sim_udid> defaults read <path_to_plist>` command
|
|
231
|
+
* to print the plist content to the Terminal.
|
|
232
|
+
*/
|
|
233
|
+
/**
|
|
234
|
+
* Updates Mobile Safari preferences on an iOS Simulator
|
|
235
|
+
*
|
|
236
|
+
* @param {import('@appium/types').StringRecord} preferences - An object containing Safari settings to be updated.
|
|
237
|
+
* The list of available setting names and their values can be retrieved by changing the
|
|
238
|
+
* corresponding Safari settings in the UI and then inspecting
|
|
239
|
+
* `Library/Preferences/com.apple.mobilesafari.plist` file inside of the `com.apple.mobilesafari`
|
|
240
|
+
* app container within the simulator filesystem. The full path to Mobile Safari's container can
|
|
241
|
+
* be retrieved by running `xcrun simctl get_app_container <sim_udid> com.apple.mobilesafari
|
|
242
|
+
* data`. Use the `xcrun simctl spawn <sim_udid> defaults read <path_to_plist>` command to print
|
|
243
|
+
* the plist content to the Terminal.
|
|
244
|
+
*
|
|
245
|
+
* @group Simulator Only
|
|
246
|
+
* @returns {Promise<void>}
|
|
247
|
+
* @throws {Error} if run on a real device or if the preferences argument is invalid
|
|
248
|
+
* @this {XCUITestDriver}
|
|
249
|
+
*/
|
|
250
|
+
export function mobileUpdateSafariPreferences(this: import("../driver").XCUITestDriver, preferences: import("@appium/types").StringRecord): Promise<void>;
|
|
251
|
+
export type SafariOpts = {
|
|
252
|
+
/**
|
|
253
|
+
* An object containing Safari settings to be updated.
|
|
142
254
|
* The list of available setting names and their values could be retrieved by
|
|
143
255
|
* changing the corresponding Safari settings in the UI and then inspecting
|
|
144
256
|
* 'Library/Preferences/com.apple.mobilesafari.plist' file inside of
|
|
@@ -149,70 +261,8 @@ declare namespace _default {
|
|
|
149
261
|
* Use the `xcrun simctl spawn <sim_udid> defaults read <path_to_plist>` command
|
|
150
262
|
* to print the plist content to the Terminal.
|
|
151
263
|
*/
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
*
|
|
155
|
-
* @param {import('@appium/types').StringRecord} preferences - An object containing Safari settings to be updated.
|
|
156
|
-
* The list of available setting names and their values can be retrieved by changing the
|
|
157
|
-
* corresponding Safari settings in the UI and then inspecting
|
|
158
|
-
* `Library/Preferences/com.apple.mobilesafari.plist` file inside of the `com.apple.mobilesafari`
|
|
159
|
-
* app container within the simulator filesystem. The full path to Mobile Safari's container can
|
|
160
|
-
* be retrieved by running `xcrun simctl get_app_container <sim_udid> com.apple.mobilesafari
|
|
161
|
-
* data`. Use the `xcrun simctl spawn <sim_udid> defaults read <path_to_plist>` command to print
|
|
162
|
-
* the plist content to the Terminal.
|
|
163
|
-
*
|
|
164
|
-
* @group Simulator Only
|
|
165
|
-
* @returns {Promise<void>}
|
|
166
|
-
* @throws {Error} if run on a real device or if the preferences argument is invalid
|
|
167
|
-
* @this {XCUITestDriver}
|
|
168
|
-
*/
|
|
169
|
-
function mobileUpdateSafariPreferences(this: import("../driver").XCUITestDriver, preferences: import("@appium/types").StringRecord): Promise<void>;
|
|
170
|
-
/**
|
|
171
|
-
* @this {XCUITestDriver}
|
|
172
|
-
*/
|
|
173
|
-
function _deleteCookie(this: import("../driver").XCUITestDriver, cookie: any): Promise<any>;
|
|
174
|
-
/**
|
|
175
|
-
* @this {XCUITestDriver}
|
|
176
|
-
*/
|
|
177
|
-
function cacheWebElement(this: import("../driver").XCUITestDriver, el: any): any;
|
|
178
|
-
/**
|
|
179
|
-
* @this {XCUITestDriver}
|
|
180
|
-
*/
|
|
181
|
-
function cacheWebElements(this: import("../driver").XCUITestDriver, response: any): any;
|
|
182
|
-
/**
|
|
183
|
-
* @param {string} atom
|
|
184
|
-
* @param {unknown[]} args
|
|
185
|
-
* @returns {Promise<any>}
|
|
186
|
-
* @privateRemarks This should return `Promise<T>` where `T` extends `unknown`, but that's going to cause a lot of things to break.
|
|
187
|
-
* @this {XCUITestDriver}
|
|
188
|
-
*/
|
|
189
|
-
function executeAtom(this: import("../driver").XCUITestDriver, atom: string, args: unknown[], alwaysDefaultFrame?: boolean): Promise<any>;
|
|
190
|
-
/**
|
|
191
|
-
* @this {XCUITestDriver}
|
|
192
|
-
* @param {string} atom
|
|
193
|
-
* @param {any[]} args
|
|
194
|
-
*/
|
|
195
|
-
function executeAtomAsync(this: import("../driver").XCUITestDriver, atom: string, args: any[]): Promise<any>;
|
|
196
|
-
/**
|
|
197
|
-
* @template {string} S
|
|
198
|
-
* @param {S|Element<S>} elOrId
|
|
199
|
-
* @returns {import('./types').AtomsElement<S>}
|
|
200
|
-
* @this {XCUITestDriver}
|
|
201
|
-
*/
|
|
202
|
-
function getAtomsElement<S extends string>(this: import("../driver").XCUITestDriver, elOrId: S | Element<S>): import("./types").AtomsElement<S>;
|
|
203
|
-
/**
|
|
204
|
-
* @param {readonly any[]} [args]
|
|
205
|
-
* @this {XCUITestDriver}
|
|
206
|
-
*/
|
|
207
|
-
function convertElementsForAtoms(this: import("../driver").XCUITestDriver, args?: readonly any[]): any;
|
|
208
|
-
function getElementId(element: any): any;
|
|
209
|
-
/**
|
|
210
|
-
* @param {any} element
|
|
211
|
-
* @returns {element is Element}
|
|
212
|
-
*/
|
|
213
|
-
function hasElementId(element: any): element is Element;
|
|
214
|
-
}
|
|
215
|
-
export default _default;
|
|
264
|
+
preferences: object;
|
|
265
|
+
};
|
|
216
266
|
export type XCUITestDriver = import("../driver").XCUITestDriver;
|
|
217
267
|
export type Rect = import("@appium/types").Rect;
|
|
218
268
|
export type Element<S extends string = string> = import("@appium/types").Element<S>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../lib/commands/web.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"web.d.ts","sourceRoot":"","sources":["../../../lib/commands/web.js"],"names":[],"mappings":"AAsDA;;;;;GAKG;AACH,0EAHW,MAAM,GAAC,MAAM,GAAC,IAAI,GAChB,OAAO,CAAC,IAAI,CAAC,CA2BzB;;IA/BD;;;;;OAKG;IACH,6DAHW,MAAM,GAAC,MAAM,GAAC,IAAI,EA4B5B;IAnBG,gCAAsB;;AAqB1B;;;GAGG;AACH,mHAOC;AAED;;;;;;GAMG;AACH,qEAJW,MAAM,GAAC,OAAO,iBAWxB;AAED;;;GAGG;AACH,iFAMC;AAED;;;GAGG;AACH,+EAMC;AAED;;;GAGG;AACH,8EAMC;AAED;;;GAGG;AACH,mFAuBC;AAED;;;GAGG;AACH,gGAuBC;AAED;;;GAGG;AACH,uGAaC;AAED;;;GAGG;AACH,uFAOC;AAED;;GAEG;AACH,mGAGC;AAED;;GAEG;AACH,wFAaC;AAED;;GAEG;AACH,+FAaC;AAED;;;;;;GAMG;AACH,4EANW,MAAM,QACN,OAAO,EAAE,iCACP,OAAO,CAAC,GAAG,CAAC,CAQxB;AAED;;;;GAIG;AACH,iFAHW,MAAM,QACN,GAAG,EAAE,gBASf;;IAZD;;;;OAIG;IACH,4DAHW,MAAM,QACN,GAAG,EAAE,EASf;IAJG;;;MAAqC;;AAMzC;;;;;GAKG;AACH,gCALsB,CAAC,SAAV,MAAQ,oDACV,CAAC,GAAC,OAAO,CAAC,CAAC,CAAC,GACV,OAAO,SAAS,EAAE,YAAY,CAAC,CAAC,CAAC,CAS7C;AAED;;;GAGG;AACH,yFAHW,SAAS,GAAG,EAAE,OAiBxB;AAED,gDAEC;AAED;;;GAGG;AACH,sCAHW,GAAG,GACD,OAAO,IAAI,OAAO,CAO9B;AAED;;GAEG;AACH,oJA0BC;AAED;;;;GAIG;AACH,4EAHW,MAAM,KACN,MAAM,iBAKhB;AAED;;;GAGG;AACH,6EAFa,OAAO,CAAC,OAAO,CAAC,CAc5B;;IANG,qCAAiE;;AAQrE;;;GAGG;AACH,+EAFa,OAAO,CAAC,OAAO,eAAe,EAAE,IAAI,CAAC,CAajD;AAED;;;GAGG;AACH,8EAFa,OAAO,CAAC,OAAO,CAAC,CAqB5B;;IAVO,sCAA4B;;AAYpC;;GAEG;AACH,qIA0FC;AAED;;;;;GAKG;AACH,+FAJW,OAAO,oBACP,MAAM,GACJ,OAAO,CAAC,MAAM,CAAC,CAuB3B;AAED;;;;GAIG;AACH,2EAHW,GAAG,GACD,OAAO,CAAC,IAAI,CAAC,CAwBzB;AAED;;;;;GAKG;AACH,gFAJW,MAAM,KACN,MAAM,GACJ,OAAO,CAAC,OAAO,eAAe,EAAE,QAAQ,CAAC,CA4FrD;AAED;;;GAGG;AACH,yEAFa,OAAO,CAAC,OAAO,CAAC,CAI5B;AAED;;;GAGG;AACH,+EAHW,OAAO,CAAC,GAAG,CAAC,gBA+EtB;AAED;;;GAGG;AACH,gFAHW,MAAM,iBAUhB;AAED;;;;GAIG;AACH,+EAHa,MAAM,CAUlB;AAED;;;;;;;;;;;;GAYG;AACH,0GAFa,OAAO,CAAC,OAAO,UAAU,EAAE,eAAe,CAAC,CAgEvD;;IAnBK;;;;;MAKC;;AAgBP;;;;;;;;;;;;GAYG;AAEH;;;;;;;;;;;;;;;;GAgBG;AACH,qGAdW,OAAO,eAAe,EAAE,YAAY,GAUlC,OAAO,CAAC,IAAI,CAAC,CAczB;;;;;;;;;;;;;;iBAvCa,MAAM;;6BA0IP,OAAO,WAAW,EAAE,cAAc;mBAClC,OAAO,eAAe,EAAE,IAAI;oBAIlB,CAAC,SAAX,MAAQ,aACR,OAAO,eAAe,EAAE,OAAO,CAAC,CAAC,CAAC;6BAIlC,OAAO,wBAAwB,EAAE,cAAc"}
|