appium_lib 9.7.2 → 9.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +13 -0
- data/docs/android_docs.md +220 -168
- data/docs/docs.md +13 -37
- data/docs/ios_docs.md +278 -220
- data/docs/ios_xcuitest.md +0 -4
- data/docs/parallel.md +8 -0
- data/lib/appium_lib/android/android.rb +3 -0
- data/lib/appium_lib/android/common/helper.rb +3 -0
- data/lib/appium_lib/android/espresso.rb +9 -0
- data/lib/appium_lib/android/espresso/bridge.rb +14 -0
- data/lib/appium_lib/common/multi_touch.rb +151 -4
- data/lib/appium_lib/common/touch_actions.rb +21 -0
- data/lib/appium_lib/common/wait.rb +2 -22
- data/lib/appium_lib/core/android.rb +1 -0
- data/lib/appium_lib/core/android/espresso/bridge.rb +18 -0
- data/lib/appium_lib/core/android/touch.rb +15 -0
- data/lib/appium_lib/core/android/uiautomator1/bridge.rb +3 -1
- data/lib/appium_lib/core/android/uiautomator2/bridge.rb +3 -1
- data/lib/appium_lib/core/android_espresso.rb +5 -0
- data/lib/appium_lib/core/android_uiautomator2.rb +1 -0
- data/lib/appium_lib/core/core.rb +1 -1
- data/lib/appium_lib/core/device/touch_actions.rb +8 -23
- data/lib/appium_lib/core/driver.rb +93 -17
- data/lib/appium_lib/core/ios.rb +1 -0
- data/lib/appium_lib/core/ios/touch.rb +16 -0
- data/lib/appium_lib/core/ios/uiautomation/bridge.rb +2 -0
- data/lib/appium_lib/core/ios/xcuitest/bridge.rb +2 -0
- data/lib/appium_lib/core/ios/xcuitest/search_context.rb +23 -12
- data/lib/appium_lib/core/ios_xcuitest.rb +1 -0
- data/lib/appium_lib/driver.rb +18 -15
- data/lib/appium_lib/ios/xcuitest/bridge.rb +1 -0
- data/lib/appium_lib/ios/xcuitest/command.rb +1 -0
- data/lib/appium_lib/ios/xcuitest/command/source.rb +20 -0
- data/lib/appium_lib/version.rb +2 -2
- data/readme.md +14 -29
- data/release_notes.md +8 -0
- metadata +10 -3
- data/lib/appium_lib/core/device/multi_touch.rb +0 -213
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0fb8182eac92526a9cdeedef48e24b370ac88a2
|
4
|
+
data.tar.gz: 1d73532241050dbd09ed96dee0dff9a5046a91b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d568b3d84ca84fb21810b6e98fd2f44deb1bfc1b0286e36f3468260501417ddd1635f1e36ba7b0c96546a79a58153cbc4dc56e098d6ba20ec848b086551b63c
|
7
|
+
data.tar.gz: daadbfb1d454b4b6479a334b5857778d19a5fb75094d79ac213033227a45137126148524ff3da2eeb51b120ff405b7d299f7ef55b2699d2b378cc54702d8e8c4
|
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,19 @@ Commit based release not is [release_notes.md](./release_notes.md)
|
|
3
3
|
|
4
4
|
Release tags are https://github.com/appium/ruby_lib/releases .
|
5
5
|
|
6
|
+
|
7
|
+
## v9.7.3
|
8
|
+
|
9
|
+
### 1. Enhancements
|
10
|
+
- Get source from XCUITest with `xcuitest_source format: :json`
|
11
|
+
- https://github.com/appium/ruby_lib/pull/699
|
12
|
+
- `:espresso` support
|
13
|
+
|
14
|
+
### 2. Bug fixes
|
15
|
+
|
16
|
+
|
17
|
+
### 3. Deprecations
|
18
|
+
|
6
19
|
## v9.7.2
|
7
20
|
|
8
21
|
### 1. Enhancements
|
data/docs/android_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/appium.rb#L45)
|
2
2
|
|
3
3
|
> def load_settings(opts = {})
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/appium.rb#L79)
|
31
31
|
|
32
32
|
> def load_settings(opts = {})
|
33
33
|
|
@@ -56,7 +56,7 @@ __Returns:__
|
|
56
56
|
|
57
57
|
--
|
58
58
|
|
59
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
59
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/appium.rb#L84)
|
60
60
|
|
61
61
|
> def expand_required_files(base_dir, file_paths)
|
62
62
|
|
@@ -74,7 +74,7 @@ __Returns:__
|
|
74
74
|
|
75
75
|
--
|
76
76
|
|
77
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
77
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/appium.rb#L126)
|
78
78
|
|
79
79
|
> def promote_singleton_appium_methods(modules, driver = $driver)
|
80
80
|
|
@@ -98,7 +98,7 @@ __Parameters:__
|
|
98
98
|
|
99
99
|
--
|
100
100
|
|
101
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
101
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/appium.rb#L181)
|
102
102
|
|
103
103
|
> def promote_appium_methods(class_array, driver = $driver)
|
104
104
|
|
@@ -116,7 +116,7 @@ __Parameters:__
|
|
116
116
|
|
117
117
|
--
|
118
118
|
|
119
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
119
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L24)
|
120
120
|
|
121
121
|
> def global_webdriver_http_sleep
|
122
122
|
|
@@ -124,7 +124,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
124
124
|
|
125
125
|
--
|
126
126
|
|
127
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
127
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L24)
|
128
128
|
|
129
129
|
> def global_webdriver_http_sleep=(value)
|
130
130
|
|
@@ -132,7 +132,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
132
132
|
|
133
133
|
--
|
134
134
|
|
135
|
-
##### [sauce](https://github.com/appium/ruby_lib/blob/
|
135
|
+
##### [sauce](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L27)
|
136
136
|
|
137
137
|
> def sauce
|
138
138
|
|
@@ -140,7 +140,7 @@ SauceLab's settings
|
|
140
140
|
|
141
141
|
--
|
142
142
|
|
143
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
143
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L30)
|
144
144
|
|
145
145
|
> def sauce_username
|
146
146
|
|
@@ -149,7 +149,7 @@ same as @sauce.username
|
|
149
149
|
|
150
150
|
--
|
151
151
|
|
152
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
152
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L33)
|
153
153
|
|
154
154
|
> def sauce_access_key
|
155
155
|
|
@@ -158,7 +158,7 @@ same as @sauce.access_key
|
|
158
158
|
|
159
159
|
--
|
160
160
|
|
161
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
161
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L36)
|
162
162
|
|
163
163
|
> def sauce_endpoint
|
164
164
|
|
@@ -167,7 +167,7 @@ same as @sauce.endpoint
|
|
167
167
|
|
168
168
|
--
|
169
169
|
|
170
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
170
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L39)
|
171
171
|
|
172
172
|
> def caps
|
173
173
|
|
@@ -175,7 +175,7 @@ from Core
|
|
175
175
|
|
176
176
|
--
|
177
177
|
|
178
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
178
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L40)
|
179
179
|
|
180
180
|
> def custom_url
|
181
181
|
|
@@ -183,7 +183,7 @@ Returns the value of attribute custom_url
|
|
183
183
|
|
184
184
|
--
|
185
185
|
|
186
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
186
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L41)
|
187
187
|
|
188
188
|
> def export_session
|
189
189
|
|
@@ -191,7 +191,15 @@ Returns the value of attribute export_session
|
|
191
191
|
|
192
192
|
--
|
193
193
|
|
194
|
-
##### [
|
194
|
+
##### [export_session_path](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L42)
|
195
|
+
|
196
|
+
> def export_session_path
|
197
|
+
|
198
|
+
Returns the value of attribute export_session_path
|
199
|
+
|
200
|
+
--
|
201
|
+
|
202
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L43)
|
195
203
|
|
196
204
|
> def default_wait
|
197
205
|
|
@@ -199,7 +207,7 @@ Returns the value of attribute default_wait
|
|
199
207
|
|
200
208
|
--
|
201
209
|
|
202
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
210
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L44)
|
203
211
|
|
204
212
|
> def appium_port
|
205
213
|
|
@@ -207,7 +215,7 @@ Returns the value of attribute appium_port
|
|
207
215
|
|
208
216
|
--
|
209
217
|
|
210
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
218
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L45)
|
211
219
|
|
212
220
|
> def appium_device
|
213
221
|
|
@@ -215,7 +223,7 @@ Returns the value of attribute appium_device
|
|
215
223
|
|
216
224
|
--
|
217
225
|
|
218
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
226
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L46)
|
219
227
|
|
220
228
|
> def automation_name
|
221
229
|
|
@@ -223,7 +231,7 @@ Returns the value of attribute automation_name
|
|
223
231
|
|
224
232
|
--
|
225
233
|
|
226
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L47)
|
227
235
|
|
228
236
|
> def listener
|
229
237
|
|
@@ -231,7 +239,7 @@ Returns the value of attribute listener
|
|
231
239
|
|
232
240
|
--
|
233
241
|
|
234
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L48)
|
235
243
|
|
236
244
|
> def http_client
|
237
245
|
|
@@ -239,7 +247,7 @@ Returns the value of attribute http_client
|
|
239
247
|
|
240
248
|
--
|
241
249
|
|
242
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L49)
|
243
251
|
|
244
252
|
> def appium_wait_timeout
|
245
253
|
|
@@ -247,7 +255,7 @@ Returns the value of attribute appium_wait_timeout
|
|
247
255
|
|
248
256
|
--
|
249
257
|
|
250
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
258
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L50)
|
251
259
|
|
252
260
|
> def appium_wait_interval
|
253
261
|
|
@@ -255,7 +263,7 @@ Returns the value of attribute appium_wait_interval
|
|
255
263
|
|
256
264
|
--
|
257
265
|
|
258
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
266
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L53)
|
259
267
|
|
260
268
|
> def appium_server_status
|
261
269
|
|
@@ -263,7 +271,7 @@ Appium's server version
|
|
263
271
|
|
264
272
|
--
|
265
273
|
|
266
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
274
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L55)
|
267
275
|
|
268
276
|
> def appium_debug
|
269
277
|
|
@@ -271,7 +279,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
271
279
|
|
272
280
|
--
|
273
281
|
|
274
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
282
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L58)
|
275
283
|
|
276
284
|
> def driver
|
277
285
|
|
@@ -283,7 +291,7 @@ __Returns:__
|
|
283
291
|
|
284
292
|
--
|
285
293
|
|
286
|
-
##### [core](https://github.com/appium/ruby_lib/blob/
|
294
|
+
##### [core](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L60)
|
287
295
|
|
288
296
|
> def core
|
289
297
|
|
@@ -291,7 +299,7 @@ Instance of Appium::Core::Driver
|
|
291
299
|
|
292
300
|
--
|
293
301
|
|
294
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
302
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L111)
|
295
303
|
|
296
304
|
> def initialize(opts = {}, global_driver = nil)
|
297
305
|
|
@@ -310,7 +318,7 @@ __Returns:__
|
|
310
318
|
|
311
319
|
--
|
312
320
|
|
313
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
321
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L217)
|
314
322
|
|
315
323
|
> def driver_attributes
|
316
324
|
|
@@ -318,7 +326,7 @@ Returns a hash of the driver attributes
|
|
318
326
|
|
319
327
|
--
|
320
328
|
|
321
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
329
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L237)
|
322
330
|
|
323
331
|
> def device_is_android?
|
324
332
|
|
@@ -330,7 +338,7 @@ __Returns:__
|
|
330
338
|
|
331
339
|
--
|
332
340
|
|
333
|
-
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/
|
341
|
+
##### [device_is_ios?](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L241)
|
334
342
|
|
335
343
|
> def device_is_ios?
|
336
344
|
|
@@ -342,7 +350,7 @@ __Returns:__
|
|
342
350
|
|
343
351
|
--
|
344
352
|
|
345
|
-
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/
|
353
|
+
##### [device_is_windows?](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L245)
|
346
354
|
|
347
355
|
> def device_is_windows?
|
348
356
|
|
@@ -354,7 +362,7 @@ __Returns:__
|
|
354
362
|
|
355
363
|
--
|
356
364
|
|
357
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
365
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L251)
|
358
366
|
|
359
367
|
> def automation_name_is_uiautomator2?
|
360
368
|
|
@@ -366,7 +374,7 @@ __Returns:__
|
|
366
374
|
|
367
375
|
--
|
368
376
|
|
369
|
-
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/
|
377
|
+
##### [automation_name_is_espresso?](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L257)
|
370
378
|
|
371
379
|
> def automation_name_is_espresso?
|
372
380
|
|
@@ -378,7 +386,7 @@ __Returns:__
|
|
378
386
|
|
379
387
|
--
|
380
388
|
|
381
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
389
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L263)
|
382
390
|
|
383
391
|
> def automation_name_is_xcuitest?
|
384
392
|
|
@@ -390,7 +398,7 @@ __Returns:__
|
|
390
398
|
|
391
399
|
--
|
392
400
|
|
393
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
401
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L270)
|
394
402
|
|
395
403
|
> def check_server_version_xcuitest
|
396
404
|
|
@@ -403,7 +411,7 @@ __Returns:__
|
|
403
411
|
|
404
412
|
--
|
405
413
|
|
406
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
414
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L291)
|
407
415
|
|
408
416
|
> def appium_server_version
|
409
417
|
|
@@ -415,7 +423,7 @@ __Returns:__
|
|
415
423
|
|
416
424
|
--
|
417
425
|
|
418
|
-
##### [platform_version](https://github.com/appium/ruby_lib/blob/
|
426
|
+
##### [platform_version](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L301)
|
419
427
|
|
420
428
|
> def platform_version
|
421
429
|
|
@@ -427,7 +435,7 @@ __Returns:__
|
|
427
435
|
|
428
436
|
--
|
429
437
|
|
430
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
438
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L320)
|
431
439
|
|
432
440
|
> def appium_client_version
|
433
441
|
|
@@ -439,7 +447,7 @@ __Returns:__
|
|
439
447
|
|
440
448
|
--
|
441
449
|
|
442
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
450
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L332)
|
443
451
|
|
444
452
|
> def self.absolute_app_path(opts)
|
445
453
|
|
@@ -456,7 +464,7 @@ __Returns:__
|
|
456
464
|
|
457
465
|
--
|
458
466
|
|
459
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
467
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L365)
|
460
468
|
|
461
469
|
> def server_url
|
462
470
|
|
@@ -468,7 +476,7 @@ __Returns:__
|
|
468
476
|
|
469
477
|
--
|
470
478
|
|
471
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
479
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L373)
|
472
480
|
|
473
481
|
> def restart
|
474
482
|
|
@@ -480,7 +488,7 @@ __Returns:__
|
|
480
488
|
|
481
489
|
--
|
482
490
|
|
483
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
491
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L386)
|
484
492
|
|
485
493
|
> def screenshot(png_save_path)
|
486
494
|
|
@@ -496,7 +504,7 @@ __Returns:__
|
|
496
504
|
|
497
505
|
--
|
498
506
|
|
499
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
507
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L392)
|
500
508
|
|
501
509
|
> def driver_quit
|
502
510
|
|
@@ -508,7 +516,7 @@ __Returns:__
|
|
508
516
|
|
509
517
|
--
|
510
518
|
|
511
|
-
##### [quit_driver](https://github.com/appium/ruby_lib/blob/
|
519
|
+
##### [quit_driver](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L395)
|
512
520
|
|
513
521
|
> def driver_quit
|
514
522
|
|
@@ -520,7 +528,7 @@ __Returns:__
|
|
520
528
|
|
521
529
|
--
|
522
530
|
|
523
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
531
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L406)
|
524
532
|
|
525
533
|
> def window_size
|
526
534
|
|
@@ -532,7 +540,7 @@ __Returns:__
|
|
532
540
|
|
533
541
|
--
|
534
542
|
|
535
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
543
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L435)
|
536
544
|
|
537
545
|
> def start_driver(http_client_ops =
|
538
546
|
|
@@ -549,7 +557,7 @@ __Returns:__
|
|
549
557
|
|
550
558
|
--
|
551
559
|
|
552
|
-
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/
|
560
|
+
##### [set_implicit_wait](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L459)
|
553
561
|
|
554
562
|
> def set_implicit_wait(wait)
|
555
563
|
|
@@ -557,7 +565,7 @@ To ignore error for Espresso Driver
|
|
557
565
|
|
558
566
|
--
|
559
567
|
|
560
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
568
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L469)
|
561
569
|
|
562
570
|
> def no_wait
|
563
571
|
|
@@ -565,7 +573,7 @@ Set implicit wait to zero.
|
|
565
573
|
|
566
574
|
--
|
567
575
|
|
568
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
576
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L483)
|
569
577
|
|
570
578
|
> def set_wait(timeout = nil)
|
571
579
|
|
@@ -581,7 +589,7 @@ __Returns:__
|
|
581
589
|
|
582
590
|
--
|
583
591
|
|
584
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
592
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L500)
|
585
593
|
|
586
594
|
> def exists(pre_check = 0, post_check = @core.default_wait)
|
587
595
|
|
@@ -605,7 +613,7 @@ __Returns:__
|
|
605
613
|
|
606
614
|
--
|
607
615
|
|
608
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
616
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L524)
|
609
617
|
|
610
618
|
> def execute_script(script, *args)
|
611
619
|
|
@@ -623,7 +631,7 @@ __Returns:__
|
|
623
631
|
|
624
632
|
--
|
625
633
|
|
626
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
634
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L546)
|
627
635
|
|
628
636
|
> def find_elements(*args)
|
629
637
|
|
@@ -643,7 +651,7 @@ __Returns:__
|
|
643
651
|
|
644
652
|
--
|
645
653
|
|
646
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
654
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L561)
|
647
655
|
|
648
656
|
> def find_element(*args)
|
649
657
|
|
@@ -661,7 +669,7 @@ __Returns:__
|
|
661
669
|
|
662
670
|
--
|
663
671
|
|
664
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
672
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L574)
|
665
673
|
|
666
674
|
> def set_location(opts = {})
|
667
675
|
|
@@ -677,7 +685,7 @@ __Returns:__
|
|
677
685
|
|
678
686
|
--
|
679
687
|
|
680
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
688
|
+
##### [x](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/driver.rb#L584)
|
681
689
|
|
682
690
|
> def x
|
683
691
|
|
@@ -690,7 +698,7 @@ __Returns:__
|
|
690
698
|
|
691
699
|
--
|
692
700
|
|
693
|
-
##### [username](https://github.com/appium/ruby_lib/blob/
|
701
|
+
##### [username](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/sauce_labs.rb#L4)
|
694
702
|
|
695
703
|
> def username
|
696
704
|
|
@@ -698,7 +706,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
698
706
|
|
699
707
|
--
|
700
708
|
|
701
|
-
##### [access_key](https://github.com/appium/ruby_lib/blob/
|
709
|
+
##### [access_key](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/sauce_labs.rb#L6)
|
702
710
|
|
703
711
|
> def access_key
|
704
712
|
|
@@ -706,7 +714,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
706
714
|
|
707
715
|
--
|
708
716
|
|
709
|
-
##### [endpoint](https://github.com/appium/ruby_lib/blob/
|
717
|
+
##### [endpoint](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/sauce_labs.rb#L8)
|
710
718
|
|
711
719
|
> def endpoint
|
712
720
|
|
@@ -714,7 +722,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests. Default is 'o
|
|
714
722
|
|
715
723
|
--
|
716
724
|
|
717
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
725
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/sauce_labs.rb#L33)
|
718
726
|
|
719
727
|
> def initialize(appium_lib_opts)
|
720
728
|
|
@@ -730,7 +738,7 @@ __Returns:__
|
|
730
738
|
|
731
739
|
--
|
732
740
|
|
733
|
-
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/
|
741
|
+
##### [sauce_server_url?](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/sauce_labs.rb#L53)
|
734
742
|
|
735
743
|
> def sauce_server_url?
|
736
744
|
|
@@ -742,7 +750,7 @@ __Returns:__
|
|
742
750
|
|
743
751
|
--
|
744
752
|
|
745
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
753
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/sauce_labs.rb#L66)
|
746
754
|
|
747
755
|
> def server_url
|
748
756
|
|
@@ -754,7 +762,7 @@ __Returns:__
|
|
754
762
|
|
755
763
|
--
|
756
764
|
|
757
|
-
##### [get_log](https://github.com/appium/ruby_lib/blob/
|
765
|
+
##### [get_log](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/log.rb#L11)
|
758
766
|
|
759
767
|
> def get_log(type)
|
760
768
|
|
@@ -770,7 +778,7 @@ __Returns:__
|
|
770
778
|
|
771
779
|
--
|
772
780
|
|
773
|
-
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/
|
781
|
+
##### [get_available_log_types](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/log.rb#L23)
|
774
782
|
|
775
783
|
> def get_available_log_types
|
776
784
|
|
@@ -782,7 +790,7 @@ __Returns:__
|
|
782
790
|
|
783
791
|
--
|
784
792
|
|
785
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
793
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/wait.rb#L6)
|
786
794
|
|
787
795
|
> def initialize(opts = {})
|
788
796
|
|
@@ -794,7 +802,7 @@ __Returns:__
|
|
794
802
|
|
795
803
|
--
|
796
804
|
|
797
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
805
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/wait.rb#L26)
|
798
806
|
|
799
807
|
> def wait_true(opts = {})
|
800
808
|
|
@@ -814,7 +822,7 @@ __Parameters:__
|
|
814
822
|
|
815
823
|
--
|
816
824
|
|
817
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
825
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/wait.rb#L43)
|
818
826
|
|
819
827
|
> def wait(opts = {})
|
820
828
|
|
@@ -832,7 +840,7 @@ __Parameters:__
|
|
832
840
|
|
833
841
|
--
|
834
842
|
|
835
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
843
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L16)
|
836
844
|
|
837
845
|
> def ignore
|
838
846
|
|
@@ -840,7 +848,7 @@ Return yield and ignore any exceptions.
|
|
840
848
|
|
841
849
|
--
|
842
850
|
|
843
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
851
|
+
##### [back](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L23)
|
844
852
|
|
845
853
|
> def back
|
846
854
|
|
@@ -852,7 +860,7 @@ __Returns:__
|
|
852
860
|
|
853
861
|
--
|
854
862
|
|
855
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
863
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L34)
|
856
864
|
|
857
865
|
> def session_id
|
858
866
|
|
@@ -864,7 +872,7 @@ __Returns:__
|
|
864
872
|
|
865
873
|
--
|
866
874
|
|
867
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
875
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L42)
|
868
876
|
|
869
877
|
> def xpath(xpath_str)
|
870
878
|
|
@@ -880,7 +888,7 @@ __Returns:__
|
|
880
888
|
|
881
889
|
--
|
882
890
|
|
883
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
891
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L50)
|
884
892
|
|
885
893
|
> def xpaths(xpath_str)
|
886
894
|
|
@@ -896,7 +904,7 @@ __Returns:__
|
|
896
904
|
|
897
905
|
--
|
898
906
|
|
899
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
907
|
+
##### [result](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L61)
|
900
908
|
|
901
909
|
> def result
|
902
910
|
|
@@ -904,7 +912,7 @@ Returns the value of attribute result
|
|
904
912
|
|
905
913
|
--
|
906
914
|
|
907
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
915
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L63)
|
908
916
|
|
909
917
|
> def initialize
|
910
918
|
|
@@ -916,7 +924,7 @@ __Returns:__
|
|
916
924
|
|
917
925
|
--
|
918
926
|
|
919
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
927
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L67)
|
920
928
|
|
921
929
|
> def reset
|
922
930
|
|
@@ -924,7 +932,7 @@ __Returns:__
|
|
924
932
|
|
925
933
|
--
|
926
934
|
|
927
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
935
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L72)
|
928
936
|
|
929
937
|
> def start_element(name, attrs = [], driver = $driver)
|
930
938
|
|
@@ -932,7 +940,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
932
940
|
|
933
941
|
--
|
934
942
|
|
935
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
943
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L78)
|
936
944
|
|
937
945
|
> def formatted_result
|
938
946
|
|
@@ -940,7 +948,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
940
948
|
|
941
949
|
--
|
942
950
|
|
943
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
951
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L97)
|
944
952
|
|
945
953
|
> def get_page_class
|
946
954
|
|
@@ -952,7 +960,7 @@ __Returns:__
|
|
952
960
|
|
953
961
|
--
|
954
962
|
|
955
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
963
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L122)
|
956
964
|
|
957
965
|
> def page_class
|
958
966
|
|
@@ -965,7 +973,7 @@ __Returns:__
|
|
965
973
|
|
966
974
|
--
|
967
975
|
|
968
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
976
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L133)
|
969
977
|
|
970
978
|
> def px_to_window_rel(opts = {}, driver = $driver)
|
971
979
|
|
@@ -973,7 +981,7 @@ Converts pixel values to window relative values
|
|
973
981
|
|
974
982
|
--
|
975
983
|
|
976
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
984
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L152)
|
977
985
|
|
978
986
|
> def xml_keys(target)
|
979
987
|
|
@@ -989,7 +997,7 @@ __Returns:__
|
|
989
997
|
|
990
998
|
--
|
991
999
|
|
992
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1000
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L160)
|
993
1001
|
|
994
1002
|
> def xml_values(target)
|
995
1003
|
|
@@ -1005,7 +1013,7 @@ __Returns:__
|
|
1005
1013
|
|
1006
1014
|
--
|
1007
1015
|
|
1008
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1016
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L168)
|
1009
1017
|
|
1010
1018
|
> def resolve_id(id)
|
1011
1019
|
|
@@ -1021,7 +1029,7 @@ __Returns:__
|
|
1021
1029
|
|
1022
1030
|
--
|
1023
1031
|
|
1024
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1032
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L175)
|
1025
1033
|
|
1026
1034
|
> def filter
|
1027
1035
|
|
@@ -1029,7 +1037,7 @@ Returns the value of attribute filter
|
|
1029
1037
|
|
1030
1038
|
--
|
1031
1039
|
|
1032
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1040
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L178)
|
1033
1041
|
|
1034
1042
|
> def filter=(value)
|
1035
1043
|
|
@@ -1037,7 +1045,7 @@ convert to string to support symbols
|
|
1037
1045
|
|
1038
1046
|
--
|
1039
1047
|
|
1040
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1048
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L184)
|
1041
1049
|
|
1042
1050
|
> def initialize
|
1043
1051
|
|
@@ -1049,7 +1057,7 @@ __Returns:__
|
|
1049
1057
|
|
1050
1058
|
--
|
1051
1059
|
|
1052
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1060
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L189)
|
1053
1061
|
|
1054
1062
|
> def reset
|
1055
1063
|
|
@@ -1057,7 +1065,7 @@ __Returns:__
|
|
1057
1065
|
|
1058
1066
|
--
|
1059
1067
|
|
1060
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1068
|
+
##### [result](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L195)
|
1061
1069
|
|
1062
1070
|
> def result
|
1063
1071
|
|
@@ -1065,7 +1073,7 @@ __Returns:__
|
|
1065
1073
|
|
1066
1074
|
--
|
1067
1075
|
|
1068
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1076
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L211)
|
1069
1077
|
|
1070
1078
|
> def start_element(name, attrs = [])
|
1071
1079
|
|
@@ -1073,7 +1081,7 @@ __Returns:__
|
|
1073
1081
|
|
1074
1082
|
--
|
1075
1083
|
|
1076
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1084
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L220)
|
1077
1085
|
|
1078
1086
|
> def end_element(name)
|
1079
1087
|
|
@@ -1081,7 +1089,7 @@ __Returns:__
|
|
1081
1089
|
|
1082
1090
|
--
|
1083
1091
|
|
1084
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1092
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/helper.rb#L226)
|
1085
1093
|
|
1086
1094
|
> def characters(chars)
|
1087
1095
|
|
@@ -1089,7 +1097,7 @@ __Returns:__
|
|
1089
1097
|
|
1090
1098
|
--
|
1091
1099
|
|
1092
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
1100
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/http_client.rb#L8)
|
1093
1101
|
|
1094
1102
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
1095
1103
|
|
@@ -1097,7 +1105,7 @@ Default HTTP client inherit Appium::Core::Base::Http::Default, but has different
|
|
1097
1105
|
|
1098
1106
|
--
|
1099
1107
|
|
1100
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1108
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/multi_touch.rb#L51)
|
1101
1109
|
|
1102
1110
|
> def pinch(percentage = 25, auto_perform = true, driver = $driver)
|
1103
1111
|
|
@@ -1117,7 +1125,7 @@ __Parameters:__
|
|
1117
1125
|
|
1118
1126
|
--
|
1119
1127
|
|
1120
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1128
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/multi_touch.rb#L95)
|
1121
1129
|
|
1122
1130
|
> def zoom(percentage = 200, auto_perform = true, driver = $driver)
|
1123
1131
|
|
@@ -1137,19 +1145,47 @@ __Parameters:__
|
|
1137
1145
|
|
1138
1146
|
--
|
1139
1147
|
|
1140
|
-
##### [
|
1148
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/multi_touch.rb#L216)
|
1141
1149
|
|
1142
|
-
> def
|
1150
|
+
> def driver
|
1143
1151
|
|
1144
1152
|
self
|
1145
1153
|
|
1154
|
+
--
|
1155
|
+
|
1156
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/multi_touch.rb#L218)
|
1157
|
+
|
1158
|
+
> def initialize(driver = $driver)
|
1159
|
+
|
1160
|
+
|
1161
|
+
|
1146
1162
|
__Returns:__
|
1147
1163
|
|
1148
1164
|
[MultiTouch] a new instance of MultiTouch
|
1149
1165
|
|
1150
1166
|
--
|
1151
1167
|
|
1152
|
-
##### [
|
1168
|
+
##### [add](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/multi_touch.rb#L225)
|
1169
|
+
|
1170
|
+
> def add(chain)
|
1171
|
+
|
1172
|
+
Add a touch_action to be performed
|
1173
|
+
|
1174
|
+
__Parameters:__
|
1175
|
+
|
1176
|
+
[TouchAction] chain - The action to add to the chain
|
1177
|
+
|
1178
|
+
--
|
1179
|
+
|
1180
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/multi_touch.rb#L230)
|
1181
|
+
|
1182
|
+
> def perform
|
1183
|
+
|
1184
|
+
Ask Appium to perform the actions
|
1185
|
+
|
1186
|
+
--
|
1187
|
+
|
1188
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/touch_actions.rb#L33)
|
1153
1189
|
|
1154
1190
|
> COMPLEX_ACTIONS = ::Appium::Core::TouchAction::COMPLEX_ACTIONS
|
1155
1191
|
|
@@ -1157,7 +1193,7 @@ __Returns:__
|
|
1157
1193
|
|
1158
1194
|
--
|
1159
1195
|
|
1160
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1196
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/touch_actions.rb#L47)
|
1161
1197
|
|
1162
1198
|
> def initialize(driver = $driver)
|
1163
1199
|
|
@@ -1169,7 +1205,15 @@ __Returns:__
|
|
1169
1205
|
|
1170
1206
|
--
|
1171
1207
|
|
1172
|
-
##### [
|
1208
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/common/touch_actions.rb#L51)
|
1209
|
+
|
1210
|
+
> def swipe(opts, ele = nil)
|
1211
|
+
|
1212
|
+
|
1213
|
+
|
1214
|
+
--
|
1215
|
+
|
1216
|
+
##### [for](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/android.rb#L18) android
|
1173
1217
|
|
1174
1218
|
> def self.for(target)
|
1175
1219
|
|
@@ -1177,7 +1221,7 @@ __Returns:__
|
|
1177
1221
|
|
1178
1222
|
--
|
1179
1223
|
|
1180
|
-
##### [TextView](https://github.com/appium/ruby_lib/blob/
|
1224
|
+
##### [TextView](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/text.rb#L4) android
|
1181
1225
|
|
1182
1226
|
> TextView = 'android.widget.TextView'.freeze
|
1183
1227
|
|
@@ -1185,7 +1229,7 @@ __Returns:__
|
|
1185
1229
|
|
1186
1230
|
--
|
1187
1231
|
|
1188
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1232
|
+
##### [text](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/text.rb#L10) android
|
1189
1233
|
|
1190
1234
|
> def text(value)
|
1191
1235
|
|
@@ -1202,7 +1246,7 @@ __Returns:__
|
|
1202
1246
|
|
1203
1247
|
--
|
1204
1248
|
|
1205
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1249
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/text.rb#L19) android
|
1206
1250
|
|
1207
1251
|
> def texts(value = false)
|
1208
1252
|
|
@@ -1219,7 +1263,7 @@ __Returns:__
|
|
1219
1263
|
|
1220
1264
|
--
|
1221
1265
|
|
1222
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1266
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/text.rb#L26) android
|
1223
1267
|
|
1224
1268
|
> def first_text
|
1225
1269
|
|
@@ -1231,7 +1275,7 @@ __Returns:__
|
|
1231
1275
|
|
1232
1276
|
--
|
1233
1277
|
|
1234
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1278
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/text.rb#L32) android
|
1235
1279
|
|
1236
1280
|
> def last_text
|
1237
1281
|
|
@@ -1243,7 +1287,7 @@ __Returns:__
|
|
1243
1287
|
|
1244
1288
|
--
|
1245
1289
|
|
1246
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1290
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/text.rb#L39) android
|
1247
1291
|
|
1248
1292
|
> def text_exact(value)
|
1249
1293
|
|
@@ -1259,7 +1303,7 @@ __Returns:__
|
|
1259
1303
|
|
1260
1304
|
--
|
1261
1305
|
|
1262
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1306
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/text.rb#L46) android
|
1263
1307
|
|
1264
1308
|
> def texts_exact(value)
|
1265
1309
|
|
@@ -1275,7 +1319,7 @@ __Returns:__
|
|
1275
1319
|
|
1276
1320
|
--
|
1277
1321
|
|
1278
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1322
|
+
##### [result](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L6) android
|
1279
1323
|
|
1280
1324
|
> def result
|
1281
1325
|
|
@@ -1283,7 +1327,7 @@ Returns the value of attribute result
|
|
1283
1327
|
|
1284
1328
|
--
|
1285
1329
|
|
1286
|
-
##### [keys](https://github.com/appium/ruby_lib/blob/
|
1330
|
+
##### [keys](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L6) android
|
1287
1331
|
|
1288
1332
|
> def keys
|
1289
1333
|
|
@@ -1291,7 +1335,7 @@ Returns the value of attribute keys
|
|
1291
1335
|
|
1292
1336
|
--
|
1293
1337
|
|
1294
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1338
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L6) android
|
1295
1339
|
|
1296
1340
|
> def filter
|
1297
1341
|
|
@@ -1299,7 +1343,7 @@ Returns the value of attribute filter
|
|
1299
1343
|
|
1300
1344
|
--
|
1301
1345
|
|
1302
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1346
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L9) android
|
1303
1347
|
|
1304
1348
|
> def filter=(value)
|
1305
1349
|
|
@@ -1307,7 +1351,7 @@ convert to string to support symbols
|
|
1307
1351
|
|
1308
1352
|
--
|
1309
1353
|
|
1310
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1354
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L15) android
|
1311
1355
|
|
1312
1356
|
> def initialize
|
1313
1357
|
|
@@ -1319,7 +1363,7 @@ __Returns:__
|
|
1319
1363
|
|
1320
1364
|
--
|
1321
1365
|
|
1322
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1366
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L20) android
|
1323
1367
|
|
1324
1368
|
> def reset
|
1325
1369
|
|
@@ -1327,7 +1371,7 @@ __Returns:__
|
|
1327
1371
|
|
1328
1372
|
--
|
1329
1373
|
|
1330
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1374
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L26) android
|
1331
1375
|
|
1332
1376
|
> def start_element(name, attrs = [], driver = $driver)
|
1333
1377
|
|
@@ -1335,7 +1379,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1335
1379
|
|
1336
1380
|
--
|
1337
1381
|
|
1338
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1382
|
+
##### [source](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L76) android
|
1339
1383
|
|
1340
1384
|
> def source
|
1341
1385
|
|
@@ -1347,7 +1391,7 @@ __Returns:__
|
|
1347
1391
|
|
1348
1392
|
--
|
1349
1393
|
|
1350
|
-
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/
|
1394
|
+
##### [get_android_inspect](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L86) android
|
1351
1395
|
|
1352
1396
|
> def get_android_inspect(class_name = false)
|
1353
1397
|
|
@@ -1366,7 +1410,7 @@ __Returns:__
|
|
1366
1410
|
|
1367
1411
|
--
|
1368
1412
|
|
1369
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1413
|
+
##### [page](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L112) android
|
1370
1414
|
|
1371
1415
|
> def page(opts = {})
|
1372
1416
|
|
@@ -1385,7 +1429,7 @@ __Returns:__
|
|
1385
1429
|
|
1386
1430
|
--
|
1387
1431
|
|
1388
|
-
##### [current_app](https://github.com/appium/ruby_lib/blob/
|
1432
|
+
##### [current_app](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L124) android
|
1389
1433
|
|
1390
1434
|
> def current_app
|
1391
1435
|
|
@@ -1395,7 +1439,7 @@ example line:
|
|
1395
1439
|
|
1396
1440
|
--
|
1397
1441
|
|
1398
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1442
|
+
##### [id](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L151) android
|
1399
1443
|
|
1400
1444
|
> def id(id)
|
1401
1445
|
|
@@ -1411,7 +1455,7 @@ __Returns:__
|
|
1411
1455
|
|
1412
1456
|
--
|
1413
1457
|
|
1414
|
-
##### [ids](https://github.com/appium/ruby_lib/blob/
|
1458
|
+
##### [ids](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L159) android
|
1415
1459
|
|
1416
1460
|
> def ids(id)
|
1417
1461
|
|
@@ -1427,7 +1471,7 @@ __Returns:__
|
|
1427
1471
|
|
1428
1472
|
--
|
1429
1473
|
|
1430
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1474
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L168) android
|
1431
1475
|
|
1432
1476
|
> def ele_index(class_name, index)
|
1433
1477
|
|
@@ -1445,7 +1489,7 @@ __Returns:__
|
|
1445
1489
|
|
1446
1490
|
--
|
1447
1491
|
|
1448
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1492
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L186) android
|
1449
1493
|
|
1450
1494
|
> def first_ele(class_name)
|
1451
1495
|
|
@@ -1461,7 +1505,7 @@ __Returns:__
|
|
1461
1505
|
|
1462
1506
|
--
|
1463
1507
|
|
1464
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1508
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L193) android
|
1465
1509
|
|
1466
1510
|
> def last_ele(class_name)
|
1467
1511
|
|
@@ -1477,7 +1521,7 @@ __Returns:__
|
|
1477
1521
|
|
1478
1522
|
--
|
1479
1523
|
|
1480
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1524
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L201) android
|
1481
1525
|
|
1482
1526
|
> def tag(class_name)
|
1483
1527
|
|
@@ -1493,7 +1537,7 @@ __Returns:__
|
|
1493
1537
|
|
1494
1538
|
--
|
1495
1539
|
|
1496
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1540
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L209) android
|
1497
1541
|
|
1498
1542
|
> def tags(class_name)
|
1499
1543
|
|
@@ -1509,7 +1553,7 @@ __Returns:__
|
|
1509
1553
|
|
1510
1554
|
--
|
1511
1555
|
|
1512
|
-
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/
|
1556
|
+
##### [string_visible_contains_xpath](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L252) android
|
1513
1557
|
|
1514
1558
|
> def string_visible_contains_xpath(class_name, value)
|
1515
1559
|
|
@@ -1530,7 +1574,7 @@ __Returns:__
|
|
1530
1574
|
|
1531
1575
|
--
|
1532
1576
|
|
1533
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1577
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L272) android
|
1534
1578
|
|
1535
1579
|
> def string_visible_contains(class_name, value)
|
1536
1580
|
|
@@ -1551,7 +1595,7 @@ __Returns:__
|
|
1551
1595
|
|
1552
1596
|
--
|
1553
1597
|
|
1554
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
1598
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L290) android
|
1555
1599
|
|
1556
1600
|
> def complex_find_contains(class_name, value)
|
1557
1601
|
|
@@ -1569,7 +1613,7 @@ __Returns:__
|
|
1569
1613
|
|
1570
1614
|
--
|
1571
1615
|
|
1572
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
1616
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L298) android
|
1573
1617
|
|
1574
1618
|
> def complex_finds_contains(class_name, value)
|
1575
1619
|
|
@@ -1587,7 +1631,7 @@ __Returns:__
|
|
1587
1631
|
|
1588
1632
|
--
|
1589
1633
|
|
1590
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
1634
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L342) android
|
1591
1635
|
|
1592
1636
|
> def complex_find_exact(class_name, value)
|
1593
1637
|
|
@@ -1605,7 +1649,7 @@ __Returns:__
|
|
1605
1649
|
|
1606
1650
|
--
|
1607
1651
|
|
1608
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
1652
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L350) android
|
1609
1653
|
|
1610
1654
|
> def complex_finds_exact(class_name, value)
|
1611
1655
|
|
@@ -1623,7 +1667,7 @@ __Returns:__
|
|
1623
1667
|
|
1624
1668
|
--
|
1625
1669
|
|
1626
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1670
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/common/helper.rb#L356) android
|
1627
1671
|
|
1628
1672
|
> def get_source
|
1629
1673
|
|
@@ -1635,7 +1679,7 @@ __Returns:__
|
|
1635
1679
|
|
1636
1680
|
--
|
1637
1681
|
|
1638
|
-
##### [alert_click](https://github.com/appium/ruby_lib/blob/
|
1682
|
+
##### [alert_click](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/alert.rb#L6) android
|
1639
1683
|
|
1640
1684
|
> def alert_click(value)
|
1641
1685
|
|
@@ -1651,7 +1695,7 @@ __Returns:__
|
|
1651
1695
|
|
1652
1696
|
--
|
1653
1697
|
|
1654
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1698
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/alert.rb#L13) android
|
1655
1699
|
|
1656
1700
|
> def alert_accept
|
1657
1701
|
|
@@ -1664,7 +1708,7 @@ __Returns:__
|
|
1664
1708
|
|
1665
1709
|
--
|
1666
1710
|
|
1667
|
-
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/
|
1711
|
+
##### [alert_accept_text](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/alert.rb#L20) android
|
1668
1712
|
|
1669
1713
|
> def alert_accept_text
|
1670
1714
|
|
@@ -1677,7 +1721,7 @@ __Returns:__
|
|
1677
1721
|
|
1678
1722
|
--
|
1679
1723
|
|
1680
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1724
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/alert.rb#L27) android
|
1681
1725
|
|
1682
1726
|
> def alert_dismiss
|
1683
1727
|
|
@@ -1690,7 +1734,7 @@ __Returns:__
|
|
1690
1734
|
|
1691
1735
|
--
|
1692
1736
|
|
1693
|
-
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/
|
1737
|
+
##### [alert_dismiss_text](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/alert.rb#L34) android
|
1694
1738
|
|
1695
1739
|
> def alert_dismiss_text
|
1696
1740
|
|
@@ -1703,7 +1747,7 @@ __Returns:__
|
|
1703
1747
|
|
1704
1748
|
--
|
1705
1749
|
|
1706
|
-
##### [Button](https://github.com/appium/ruby_lib/blob/
|
1750
|
+
##### [Button](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/button.rb#L3) android
|
1707
1751
|
|
1708
1752
|
> Button = 'android.widget.Button'.freeze
|
1709
1753
|
|
@@ -1711,7 +1755,7 @@ __Returns:__
|
|
1711
1755
|
|
1712
1756
|
--
|
1713
1757
|
|
1714
|
-
##### [ImageButton](https://github.com/appium/ruby_lib/blob/
|
1758
|
+
##### [ImageButton](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/button.rb#L4) android
|
1715
1759
|
|
1716
1760
|
> ImageButton = 'android.widget.ImageButton'.freeze
|
1717
1761
|
|
@@ -1719,7 +1763,7 @@ __Returns:__
|
|
1719
1763
|
|
1720
1764
|
--
|
1721
1765
|
|
1722
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
1766
|
+
##### [button](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/button.rb#L10) android
|
1723
1767
|
|
1724
1768
|
> def button(value)
|
1725
1769
|
|
@@ -1736,7 +1780,7 @@ __Returns:__
|
|
1736
1780
|
|
1737
1781
|
--
|
1738
1782
|
|
1739
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1783
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/button.rb#L27) android
|
1740
1784
|
|
1741
1785
|
> def buttons(value = false)
|
1742
1786
|
|
@@ -1753,7 +1797,7 @@ __Returns:__
|
|
1753
1797
|
|
1754
1798
|
--
|
1755
1799
|
|
1756
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1800
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/button.rb#L34) android
|
1757
1801
|
|
1758
1802
|
> def first_button
|
1759
1803
|
|
@@ -1765,7 +1809,7 @@ __Returns:__
|
|
1765
1809
|
|
1766
1810
|
--
|
1767
1811
|
|
1768
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
1812
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/button.rb#L40) android
|
1769
1813
|
|
1770
1814
|
> def last_button
|
1771
1815
|
|
@@ -1777,7 +1821,7 @@ __Returns:__
|
|
1777
1821
|
|
1778
1822
|
--
|
1779
1823
|
|
1780
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
1824
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/button.rb#L56) android
|
1781
1825
|
|
1782
1826
|
> def button_exact(value)
|
1783
1827
|
|
@@ -1793,7 +1837,7 @@ __Returns:__
|
|
1793
1837
|
|
1794
1838
|
--
|
1795
1839
|
|
1796
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
1840
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/button.rb#L63) android
|
1797
1841
|
|
1798
1842
|
> def buttons_exact(value)
|
1799
1843
|
|
@@ -1809,7 +1853,7 @@ __Returns:__
|
|
1809
1853
|
|
1810
1854
|
--
|
1811
1855
|
|
1812
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
1856
|
+
##### [find](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/generic.rb#L6) android
|
1813
1857
|
|
1814
1858
|
> def find(value)
|
1815
1859
|
|
@@ -1825,7 +1869,7 @@ __Returns:__
|
|
1825
1869
|
|
1826
1870
|
--
|
1827
1871
|
|
1828
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
1872
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/generic.rb#L13) android
|
1829
1873
|
|
1830
1874
|
> def finds(value)
|
1831
1875
|
|
@@ -1841,7 +1885,7 @@ __Returns:__
|
|
1841
1885
|
|
1842
1886
|
--
|
1843
1887
|
|
1844
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
1888
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/generic.rb#L20) android
|
1845
1889
|
|
1846
1890
|
> def find_exact(value)
|
1847
1891
|
|
@@ -1857,7 +1901,7 @@ __Returns:__
|
|
1857
1901
|
|
1858
1902
|
--
|
1859
1903
|
|
1860
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
1904
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/generic.rb#L27) android
|
1861
1905
|
|
1862
1906
|
> def finds_exact(value)
|
1863
1907
|
|
@@ -1873,7 +1917,7 @@ __Returns:__
|
|
1873
1917
|
|
1874
1918
|
--
|
1875
1919
|
|
1876
|
-
##### [scroll_to](https://github.com/appium/ruby_lib/blob/
|
1920
|
+
##### [scroll_to](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/generic.rb#L40) android
|
1877
1921
|
|
1878
1922
|
> def scroll_to(text, scrollable_index = 0)
|
1879
1923
|
|
@@ -1891,7 +1935,7 @@ __Returns:__
|
|
1891
1935
|
|
1892
1936
|
--
|
1893
1937
|
|
1894
|
-
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/
|
1938
|
+
##### [scroll_to_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/generic.rb#L58) android
|
1895
1939
|
|
1896
1940
|
> def scroll_to_exact(text, scrollable_index = 0)
|
1897
1941
|
|
@@ -1909,7 +1953,15 @@ __Returns:__
|
|
1909
1953
|
|
1910
1954
|
--
|
1911
1955
|
|
1912
|
-
##### [
|
1956
|
+
##### [for](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/espresso/bridge.rb#L7) android
|
1957
|
+
|
1958
|
+
> def self.for(target)
|
1959
|
+
|
1960
|
+
|
1961
|
+
|
1962
|
+
--
|
1963
|
+
|
1964
|
+
##### [EditText](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/textfield.rb#L3) android
|
1913
1965
|
|
1914
1966
|
> EditText = 'android.widget.EditText'.freeze
|
1915
1967
|
|
@@ -1917,7 +1969,7 @@ __Returns:__
|
|
1917
1969
|
|
1918
1970
|
--
|
1919
1971
|
|
1920
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
1972
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/textfield.rb#L9) android
|
1921
1973
|
|
1922
1974
|
> def textfield(value)
|
1923
1975
|
|
@@ -1934,7 +1986,7 @@ __Returns:__
|
|
1934
1986
|
|
1935
1987
|
--
|
1936
1988
|
|
1937
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
1989
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/textfield.rb#L18) android
|
1938
1990
|
|
1939
1991
|
> def textfields(value = false)
|
1940
1992
|
|
@@ -1951,7 +2003,7 @@ __Returns:__
|
|
1951
2003
|
|
1952
2004
|
--
|
1953
2005
|
|
1954
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2006
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/textfield.rb#L25) android
|
1955
2007
|
|
1956
2008
|
> def first_textfield
|
1957
2009
|
|
@@ -1963,7 +2015,7 @@ __Returns:__
|
|
1963
2015
|
|
1964
2016
|
--
|
1965
2017
|
|
1966
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2018
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/textfield.rb#L31) android
|
1967
2019
|
|
1968
2020
|
> def last_textfield
|
1969
2021
|
|
@@ -1975,7 +2027,7 @@ __Returns:__
|
|
1975
2027
|
|
1976
2028
|
--
|
1977
2029
|
|
1978
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2030
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/textfield.rb#L38) android
|
1979
2031
|
|
1980
2032
|
> def textfield_exact(value)
|
1981
2033
|
|
@@ -1991,7 +2043,7 @@ __Returns:__
|
|
1991
2043
|
|
1992
2044
|
--
|
1993
2045
|
|
1994
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2046
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/element/textfield.rb#L45) android
|
1995
2047
|
|
1996
2048
|
> def textfields_exact(value)
|
1997
2049
|
|
@@ -2007,7 +2059,7 @@ __Returns:__
|
|
2007
2059
|
|
2008
2060
|
--
|
2009
2061
|
|
2010
|
-
##### [for](https://github.com/appium/ruby_lib/blob/
|
2062
|
+
##### [for](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/bridge.rb#L7) android
|
2011
2063
|
|
2012
2064
|
> def self.for(target)
|
2013
2065
|
|
@@ -2015,7 +2067,7 @@ __Returns:__
|
|
2015
2067
|
|
2016
2068
|
--
|
2017
2069
|
|
2018
|
-
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2070
|
+
##### [string_visible_contains](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/helper.rb#L13) android
|
2019
2071
|
|
2020
2072
|
> def string_visible_contains(class_name, value)
|
2021
2073
|
|
@@ -2036,7 +2088,7 @@ __Returns:__
|
|
2036
2088
|
|
2037
2089
|
--
|
2038
2090
|
|
2039
|
-
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/
|
2091
|
+
##### [complex_find_contains](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/helper.rb#L31) android
|
2040
2092
|
|
2041
2093
|
> def complex_find_contains(class_name, value)
|
2042
2094
|
|
@@ -2054,7 +2106,7 @@ __Returns:__
|
|
2054
2106
|
|
2055
2107
|
--
|
2056
2108
|
|
2057
|
-
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/
|
2109
|
+
##### [complex_finds_contains](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/helper.rb#L41) android
|
2058
2110
|
|
2059
2111
|
> def complex_finds_contains(class_name, value)
|
2060
2112
|
|
@@ -2072,7 +2124,7 @@ __Returns:__
|
|
2072
2124
|
|
2073
2125
|
--
|
2074
2126
|
|
2075
|
-
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/
|
2127
|
+
##### [complex_find_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/helper.rb#L69) android
|
2076
2128
|
|
2077
2129
|
> def complex_find_exact(class_name, value)
|
2078
2130
|
|
@@ -2090,7 +2142,7 @@ __Returns:__
|
|
2090
2142
|
|
2091
2143
|
--
|
2092
2144
|
|
2093
|
-
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/
|
2145
|
+
##### [complex_finds_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/helper.rb#L79) android
|
2094
2146
|
|
2095
2147
|
> def complex_finds_exact(class_name, value)
|
2096
2148
|
|
@@ -2108,7 +2160,7 @@ __Returns:__
|
|
2108
2160
|
|
2109
2161
|
--
|
2110
2162
|
|
2111
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2163
|
+
##### [button](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/element/button.rb#L9) android
|
2112
2164
|
|
2113
2165
|
> def button(value)
|
2114
2166
|
|
@@ -2125,7 +2177,7 @@ __Returns:__
|
|
2125
2177
|
|
2126
2178
|
--
|
2127
2179
|
|
2128
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2180
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/element/button.rb#L29) android
|
2129
2181
|
|
2130
2182
|
> def buttons(value = false)
|
2131
2183
|
|
@@ -2142,7 +2194,7 @@ __Returns:__
|
|
2142
2194
|
|
2143
2195
|
--
|
2144
2196
|
|
2145
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2197
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/element/button.rb#L36) android
|
2146
2198
|
|
2147
2199
|
> def first_button
|
2148
2200
|
|
@@ -2154,7 +2206,7 @@ __Returns:__
|
|
2154
2206
|
|
2155
2207
|
--
|
2156
2208
|
|
2157
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2209
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/element/button.rb#L43) android
|
2158
2210
|
|
2159
2211
|
> def last_button
|
2160
2212
|
|
@@ -2166,7 +2218,7 @@ __Returns:__
|
|
2166
2218
|
|
2167
2219
|
--
|
2168
2220
|
|
2169
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2221
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/element/button.rb#L60) android
|
2170
2222
|
|
2171
2223
|
> def button_exact(value)
|
2172
2224
|
|
@@ -2182,7 +2234,7 @@ __Returns:__
|
|
2182
2234
|
|
2183
2235
|
--
|
2184
2236
|
|
2185
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2237
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/07ebd5767f3e9fafdfb597ec186b0e7f5384a839/lib/appium_lib/android/uiautomator2/element/button.rb#L68) android
|
2186
2238
|
|
2187
2239
|
> def buttons_exact(value)
|
2188
2240
|
|