-
-
Notifications
You must be signed in to change notification settings - Fork 211
/
Copy pathmethod-map.js
167 lines (167 loc) · 5.76 KB
/
method-map.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
export const newMethodMap = /** @type {const} */ ({
'/session/:sessionId/timeouts/implicit_wait': {
POST: {command: 'implicitWait', payloadParams: {required: ['ms']}},
},
'/session/:sessionId/ime/available_engines': {GET: {command: 'availableIMEEngines'}},
'/session/:sessionId/ime/active_engine': {GET: {command: 'getActiveIMEEngine'}},
'/session/:sessionId/ime/activated': {GET: {command: 'isIMEActivated'}},
'/session/:sessionId/ime/deactivate': {POST: {command: 'deactivateIMEEngine'}},
'/session/:sessionId/ime/activate': {
POST: {
command: 'activateIMEEngine',
payloadParams: {required: ['engine']},
},
},
'/session/:sessionId/window/:windowhandle/size': {GET: {command: 'getWindowSize'}},
'/session/:sessionId/keys': {
POST: {command: 'keys', payloadParams: {required: ['value']}},
},
'/session/:sessionId/element/:elementId/location': {GET: {command: 'getLocation'}},
'/session/:sessionId/element/:elementId/location_in_view': {GET: {command: 'getLocationInView'}},
'/session/:sessionId/element/:elementId/size': {GET: {command: 'getSize'}},
'/session/:sessionId/appium/device/lock': {
POST: {command: 'lock', payloadParams: {optional: ['seconds']}},
},
'/session/:sessionId/appium/device/unlock': {POST: {command: 'unlock'}},
'/session/:sessionId/appium/device/is_locked': {POST: {command: 'isLocked'}},
'/session/:sessionId/appium/start_recording_screen': {
POST: {
command: 'startRecordingScreen',
payloadParams: {optional: ['options']},
},
},
'/session/:sessionId/appium/stop_recording_screen': {
POST: {
command: 'stopRecordingScreen',
payloadParams: {optional: ['options']},
},
},
'/session/:sessionId/appium/performanceData/types': {POST: {command: 'getPerformanceDataTypes'}},
'/session/:sessionId/appium/getPerformanceData': {
POST: {
command: 'getPerformanceData',
payloadParams: {
required: ['packageName', 'dataType'],
optional: ['dataReadTimeout'],
},
},
},
'/session/:sessionId/appium/device/press_keycode': {
POST: {
command: 'pressKeyCode',
payloadParams: {required: ['keycode'], optional: ['metastate', 'flags']},
},
},
'/session/:sessionId/appium/device/long_press_keycode': {
POST: {
command: 'longPressKeyCode',
payloadParams: {required: ['keycode'], optional: ['metastate', 'flags']},
},
},
'/session/:sessionId/appium/device/finger_print': {
POST: {
command: 'fingerprint',
payloadParams: {required: ['fingerprintId']},
},
},
'/session/:sessionId/appium/device/send_sms': {
POST: {
command: 'sendSMS',
payloadParams: {required: ['phoneNumber', 'message']},
},
},
'/session/:sessionId/appium/device/gsm_call': {
POST: {
command: 'gsmCall',
payloadParams: {required: ['phoneNumber', 'action']},
},
},
'/session/:sessionId/appium/device/gsm_signal': {
POST: {
command: 'gsmSignal',
payloadParams: {required: ['signalStrength']},
},
},
'/session/:sessionId/appium/device/gsm_voice': {
POST: {command: 'gsmVoice', payloadParams: {required: ['state']}},
},
'/session/:sessionId/appium/device/power_capacity': {
POST: {
command: 'powerCapacity',
payloadParams: {required: ['percent']},
},
},
'/session/:sessionId/appium/device/power_ac': {
POST: {command: 'powerAC', payloadParams: {required: ['state']}},
},
'/session/:sessionId/appium/device/network_speed': {
POST: {
command: 'networkSpeed',
payloadParams: {required: ['netspeed']},
},
},
'/session/:sessionId/appium/device/keyevent': {
POST: {
command: 'keyevent',
payloadParams: {required: ['keycode'], optional: ['metastate']},
},
},
'/session/:sessionId/appium/device/current_activity': {GET: {command: 'getCurrentActivity'}},
'/session/:sessionId/appium/device/current_package': {GET: {command: 'getCurrentPackage'}},
'/session/:sessionId/appium/device/app_state': {
POST: {
command: 'queryAppState',
payloadParams: {required: [['appId'], ['bundleId']]},
},
},
'/session/:sessionId/appium/device/toggle_airplane_mode': {POST: {command: 'toggleFlightMode'}},
'/session/:sessionId/appium/device/toggle_data': {POST: {command: 'toggleData'}},
'/session/:sessionId/appium/device/toggle_wifi': {POST: {command: 'toggleWiFi'}},
'/session/:sessionId/appium/device/toggle_location_services': {
POST: {command: 'toggleLocationServices'},
},
'/session/:sessionId/appium/device/open_notifications': {POST: {command: 'openNotifications'}},
'/session/:sessionId/appium/device/start_activity': {
POST: {
command: 'startActivity',
payloadParams: {
required: ['appPackage', 'appActivity'],
optional: [
'appWaitPackage',
'appWaitActivity',
'intentAction',
'intentCategory',
'intentFlags',
'optionalIntentArguments',
'dontStopAppOnReset',
],
},
},
},
'/session/:sessionId/appium/device/system_bars': {GET: {command: 'getSystemBars'}},
'/session/:sessionId/appium/device/display_density': {GET: {command: 'getDisplayDensity'}},
'/session/:sessionId/appium/app/background': {
POST: {
command: 'background',
payloadParams: {required: ['seconds']},
},
},
'/session/:sessionId/appium/app/strings': {
POST: {
command: 'getStrings',
payloadParams: {optional: ['language', 'stringFile']},
},
},
'/session/:sessionId/appium/element/:elementId/value': {
POST: {
command: 'setValueImmediate',
payloadParams: {required: ['text']},
},
},
'/session/:sessionId/appium/element/:elementId/replace_value': {
POST: {
command: 'replaceValue',
payloadParams: {required: ['text']},
},
},
});