appium_lib 9.4.9 → 9.4.10
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.
- checksums.yaml +4 -4
- data/.github/ISSUE_TEMPLATE.md +21 -0
- data/.gitignore +3 -1
- data/CHANGELOG.md +9 -0
- data/Rakefile +9 -1
- data/appium_lib.gemspec +1 -1
- data/contributing.md +14 -1
- data/docs/android_docs.md +256 -229
- data/docs/ios_docs.md +282 -255
- data/lib/appium_lib.rb +0 -1
- data/lib/appium_lib/android/helper.rb +1 -7
- data/lib/appium_lib/common/error.rb +3 -0
- data/lib/appium_lib/common/patch.rb +17 -7
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +77 -40
- data/lib/appium_lib/ios/mobile_methods.rb +20 -14
- data/lib/appium_lib/ios/xcuitest_gestures.rb +182 -180
- data/lib/appium_lib/logger.rb +6 -0
- data/release_notes.md +6 -0
- metadata +3 -3
- data/lib/appium_lib/rails/duplicable.rb +0 -118
data/docs/ios_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/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L76)
|
2
2
|
|
3
3
|
> def self.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/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L112)
|
31
31
|
|
32
32
|
> def self.load_settings(opts = {})
|
33
33
|
|
@@ -57,7 +57,7 @@ __Returns:__
|
|
57
57
|
|
58
58
|
--
|
59
59
|
|
60
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L118)
|
61
61
|
|
62
62
|
> def self.expand_required_files(base_dir, file_paths)
|
63
63
|
|
@@ -75,7 +75,7 @@ __Returns:__
|
|
75
75
|
|
76
76
|
--
|
77
77
|
|
78
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L150)
|
79
79
|
|
80
80
|
> def self.symbolize_keys(hash)
|
81
81
|
|
@@ -86,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L171)
|
90
90
|
|
91
91
|
> def self.promote_singleton_appium_methods(modules)
|
92
92
|
|
@@ -104,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
104
104
|
|
105
105
|
--
|
106
106
|
|
107
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L224)
|
108
108
|
|
109
109
|
> def self.promote_appium_methods(class_array)
|
110
110
|
|
@@ -134,7 +134,19 @@ __Parameters:__
|
|
134
134
|
|
135
135
|
--
|
136
136
|
|
137
|
-
##### [
|
137
|
+
##### [selenium_webdriver_version_more?](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L251)
|
138
|
+
|
139
|
+
> def self.selenium_webdriver_version_more?(version)
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
__Returns:__
|
144
|
+
|
145
|
+
[Boolean]
|
146
|
+
|
147
|
+
--
|
148
|
+
|
149
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L264)
|
138
150
|
|
139
151
|
> def self.init_caps_for_appium(opts_caps = {})
|
140
152
|
|
@@ -153,7 +165,7 @@ __Returns:__
|
|
153
165
|
|
154
166
|
--
|
155
167
|
|
156
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
168
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L282)
|
157
169
|
|
158
170
|
> def global_webdriver_http_sleep
|
159
171
|
|
@@ -161,7 +173,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
161
173
|
|
162
174
|
--
|
163
175
|
|
164
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
176
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L282)
|
165
177
|
|
166
178
|
> def global_webdriver_http_sleep=(value)
|
167
179
|
|
@@ -169,7 +181,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
169
181
|
|
170
182
|
--
|
171
183
|
|
172
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
184
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L284)
|
173
185
|
|
174
186
|
> def caps
|
175
187
|
|
@@ -177,7 +189,7 @@ Selenium webdriver capabilities
|
|
177
189
|
|
178
190
|
--
|
179
191
|
|
180
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
192
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L286)
|
181
193
|
|
182
194
|
> def custom_url
|
183
195
|
|
@@ -185,7 +197,7 @@ Custom URL for the selenium server
|
|
185
197
|
|
186
198
|
--
|
187
199
|
|
188
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
200
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L288)
|
189
201
|
|
190
202
|
> def export_session
|
191
203
|
|
@@ -193,7 +205,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
193
205
|
|
194
206
|
--
|
195
207
|
|
196
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
208
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L293)
|
197
209
|
|
198
210
|
> def default_wait
|
199
211
|
|
@@ -207,7 +219,7 @@ __Returns:__
|
|
207
219
|
|
208
220
|
--
|
209
221
|
|
210
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
222
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L295)
|
211
223
|
|
212
224
|
> def sauce_username
|
213
225
|
|
@@ -215,7 +227,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
215
227
|
|
216
228
|
--
|
217
229
|
|
218
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
230
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L297)
|
219
231
|
|
220
232
|
> def sauce_access_key
|
221
233
|
|
@@ -223,7 +235,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
223
235
|
|
224
236
|
--
|
225
237
|
|
226
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
238
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L299)
|
227
239
|
|
228
240
|
> def sauce_endpoint
|
229
241
|
|
@@ -231,7 +243,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
231
243
|
|
232
244
|
--
|
233
245
|
|
234
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
246
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L301)
|
235
247
|
|
236
248
|
> def appium_port
|
237
249
|
|
@@ -239,7 +251,7 @@ Appium's server port
|
|
239
251
|
|
240
252
|
--
|
241
253
|
|
242
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
254
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L303)
|
243
255
|
|
244
256
|
> def appium_device
|
245
257
|
|
@@ -247,7 +259,7 @@ Device type to request from the appium server
|
|
247
259
|
|
248
260
|
--
|
249
261
|
|
250
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
262
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L306)
|
251
263
|
|
252
264
|
> def automation_name
|
253
265
|
|
@@ -256,7 +268,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
256
268
|
|
257
269
|
--
|
258
270
|
|
259
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
271
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L308)
|
260
272
|
|
261
273
|
> def appium_server_status
|
262
274
|
|
@@ -264,7 +276,7 @@ Appium's server version
|
|
264
276
|
|
265
277
|
--
|
266
278
|
|
267
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
279
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L310)
|
268
280
|
|
269
281
|
> def appium_debug
|
270
282
|
|
@@ -272,7 +284,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
272
284
|
|
273
285
|
--
|
274
286
|
|
275
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
287
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L312)
|
276
288
|
|
277
289
|
> def listener
|
278
290
|
|
@@ -280,7 +292,7 @@ instance of AbstractEventListener for logging support
|
|
280
292
|
|
281
293
|
--
|
282
294
|
|
283
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
295
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L315)
|
284
296
|
|
285
297
|
> def driver
|
286
298
|
|
@@ -292,7 +304,7 @@ __Returns:__
|
|
292
304
|
|
293
305
|
--
|
294
306
|
|
295
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
307
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L318)
|
296
308
|
|
297
309
|
> def http_client
|
298
310
|
|
@@ -304,7 +316,7 @@ __Returns:__
|
|
304
316
|
|
305
317
|
--
|
306
318
|
|
307
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
319
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L323)
|
308
320
|
|
309
321
|
> def appium_wait_timeout
|
310
322
|
|
@@ -318,7 +330,7 @@ __Returns:__
|
|
318
330
|
|
319
331
|
--
|
320
332
|
|
321
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
333
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L328)
|
322
334
|
|
323
335
|
> def appium_wait_interval
|
324
336
|
|
@@ -332,7 +344,7 @@ __Returns:__
|
|
332
344
|
|
333
345
|
--
|
334
346
|
|
335
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
347
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L368)
|
336
348
|
|
337
349
|
> def initialize(opts = {})
|
338
350
|
|
@@ -348,7 +360,15 @@ __Returns:__
|
|
348
360
|
|
349
361
|
--
|
350
362
|
|
351
|
-
##### [
|
363
|
+
##### [set_appium_lib_specific_values](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L434)
|
364
|
+
|
365
|
+
> def set_appium_lib_specific_values(appium_lib_opts)
|
366
|
+
|
367
|
+
|
368
|
+
|
369
|
+
--
|
370
|
+
|
371
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L460)
|
352
372
|
|
353
373
|
> def driver_attributes
|
354
374
|
|
@@ -356,7 +376,7 @@ Returns a hash of the driver attributes
|
|
356
376
|
|
357
377
|
--
|
358
378
|
|
359
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
379
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L479)
|
360
380
|
|
361
381
|
> def device_is_android?
|
362
382
|
|
@@ -368,7 +388,7 @@ __Returns:__
|
|
368
388
|
|
369
389
|
--
|
370
390
|
|
371
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
391
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L485)
|
372
392
|
|
373
393
|
> def automation_name_is_xcuitest?
|
374
394
|
|
@@ -380,7 +400,7 @@ __Returns:__
|
|
380
400
|
|
381
401
|
--
|
382
402
|
|
383
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
403
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L491)
|
384
404
|
|
385
405
|
> def automation_name_is_uiautomator2?
|
386
406
|
|
@@ -392,7 +412,7 @@ __Returns:__
|
|
392
412
|
|
393
413
|
--
|
394
414
|
|
395
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
415
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L498)
|
396
416
|
|
397
417
|
> def check_server_version_xcuitest
|
398
418
|
|
@@ -405,7 +425,7 @@ __Returns:__
|
|
405
425
|
|
406
426
|
--
|
407
427
|
|
408
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
428
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L525)
|
409
429
|
|
410
430
|
> def appium_server_version
|
411
431
|
|
@@ -432,7 +452,7 @@ __Returns:__
|
|
432
452
|
|
433
453
|
--
|
434
454
|
|
435
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
455
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L546)
|
436
456
|
|
437
457
|
> def appium_client_version
|
438
458
|
|
@@ -450,7 +470,7 @@ __Returns:__
|
|
450
470
|
|
451
471
|
--
|
452
472
|
|
453
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
473
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L558)
|
454
474
|
|
455
475
|
> def self.absolute_app_path(opts)
|
456
476
|
|
@@ -467,7 +487,7 @@ __Returns:__
|
|
467
487
|
|
468
488
|
--
|
469
489
|
|
470
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
490
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L591)
|
471
491
|
|
472
492
|
> def server_url
|
473
493
|
|
@@ -479,7 +499,7 @@ __Returns:__
|
|
479
499
|
|
480
500
|
--
|
481
501
|
|
482
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
502
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L602)
|
483
503
|
|
484
504
|
> def restart
|
485
505
|
|
@@ -491,7 +511,7 @@ __Returns:__
|
|
491
511
|
|
492
512
|
--
|
493
513
|
|
494
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
514
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L613)
|
495
515
|
|
496
516
|
> def screenshot(png_save_path)
|
497
517
|
|
@@ -509,7 +529,7 @@ __Returns:__
|
|
509
529
|
|
510
530
|
--
|
511
531
|
|
512
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
532
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L620)
|
513
533
|
|
514
534
|
> def driver_quit
|
515
535
|
|
@@ -521,11 +541,12 @@ __Returns:__
|
|
521
541
|
|
522
542
|
--
|
523
543
|
|
524
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
544
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L651)
|
525
545
|
|
526
|
-
> def start_driver
|
546
|
+
> def start_driver(http_client =
|
527
547
|
|
528
548
|
Creates a new global driver and quits the old one if it exists.
|
549
|
+
You can customise http_client as the following
|
529
550
|
|
530
551
|
__Returns:__
|
531
552
|
|
@@ -533,7 +554,7 @@ __Returns:__
|
|
533
554
|
|
534
555
|
--
|
535
556
|
|
536
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
557
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L685)
|
537
558
|
|
538
559
|
> def no_wait
|
539
560
|
|
@@ -541,7 +562,7 @@ Set implicit wait to zero.
|
|
541
562
|
|
542
563
|
--
|
543
564
|
|
544
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
565
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L699)
|
545
566
|
|
546
567
|
> def set_wait(timeout = nil)
|
547
568
|
|
@@ -563,7 +584,7 @@ __Returns:__
|
|
563
584
|
|
564
585
|
--
|
565
586
|
|
566
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
587
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L716)
|
567
588
|
|
568
589
|
> def exists(pre_check = 0, post_check = @default_wait)
|
569
590
|
|
@@ -587,7 +608,7 @@ __Returns:__
|
|
587
608
|
|
588
609
|
--
|
589
610
|
|
590
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
611
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L740)
|
591
612
|
|
592
613
|
> def execute_script(script, *args)
|
593
614
|
|
@@ -605,7 +626,7 @@ __Returns:__
|
|
605
626
|
|
606
627
|
--
|
607
628
|
|
608
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
629
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L762)
|
609
630
|
|
610
631
|
> def find_elements(*args)
|
611
632
|
|
@@ -631,7 +652,7 @@ __Returns:__
|
|
631
652
|
|
632
653
|
--
|
633
654
|
|
634
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
655
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L777)
|
635
656
|
|
636
657
|
> def find_element(*args)
|
637
658
|
|
@@ -652,7 +673,7 @@ __Returns:__
|
|
652
673
|
|
653
674
|
--
|
654
675
|
|
655
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
676
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L790)
|
656
677
|
|
657
678
|
> def set_location(opts = {})
|
658
679
|
|
@@ -668,7 +689,7 @@ __Returns:__
|
|
668
689
|
|
669
690
|
--
|
670
691
|
|
671
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
692
|
+
##### [x](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L800)
|
672
693
|
|
673
694
|
> def x
|
674
695
|
|
@@ -681,7 +702,15 @@ __Returns:__
|
|
681
702
|
|
682
703
|
--
|
683
704
|
|
684
|
-
##### [
|
705
|
+
##### [write_session_id](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L807)
|
706
|
+
|
707
|
+
> def write_session_id(session_id)
|
708
|
+
|
709
|
+
|
710
|
+
|
711
|
+
--
|
712
|
+
|
713
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/driver.rb#L816)
|
685
714
|
|
686
715
|
> def set_automation_name_if_nil
|
687
716
|
|
@@ -690,7 +719,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
690
719
|
|
691
720
|
--
|
692
721
|
|
693
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
722
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/logger.rb#L18)
|
694
723
|
|
695
724
|
> def logger=(value)
|
696
725
|
|
@@ -702,7 +731,7 @@ __Parameters:__
|
|
702
731
|
|
703
732
|
--
|
704
733
|
|
705
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
734
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/logger.rb#L22)
|
706
735
|
|
707
736
|
> def logger
|
708
737
|
|
@@ -710,7 +739,7 @@ __Parameters:__
|
|
710
739
|
|
711
740
|
--
|
712
741
|
|
713
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
742
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L7)
|
714
743
|
|
715
744
|
> def app_strings
|
716
745
|
|
@@ -721,7 +750,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
721
750
|
|
722
751
|
--
|
723
752
|
|
724
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
753
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L13)
|
725
754
|
|
726
755
|
> def background_app
|
727
756
|
|
@@ -730,7 +759,7 @@ This is a blocking application
|
|
730
759
|
|
731
760
|
--
|
732
761
|
|
733
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
762
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L24)
|
734
763
|
|
735
764
|
> def current_activity
|
736
765
|
|
@@ -745,7 +774,7 @@ __Returns:__
|
|
745
774
|
|
746
775
|
--
|
747
776
|
|
748
|
-
##### [current_package](https://github.com/appium/ruby_lib/blob/
|
777
|
+
##### [current_package](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L32)
|
749
778
|
|
750
779
|
> def current_package
|
751
780
|
|
@@ -760,7 +789,7 @@ __Returns:__
|
|
760
789
|
|
761
790
|
--
|
762
791
|
|
763
|
-
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/
|
792
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L40)
|
764
793
|
|
765
794
|
> def get_system_bars
|
766
795
|
|
@@ -775,7 +804,7 @@ __Returns:__
|
|
775
804
|
|
776
805
|
--
|
777
806
|
|
778
|
-
##### [get_display_density](https://github.com/appium/ruby_lib/blob/
|
807
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L48)
|
779
808
|
|
780
809
|
> def get_display_density
|
781
810
|
|
@@ -790,7 +819,7 @@ __Returns:__
|
|
790
819
|
|
791
820
|
--
|
792
821
|
|
793
|
-
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/
|
822
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L56)
|
794
823
|
|
795
824
|
> def is_keyboard_shown
|
796
825
|
|
@@ -805,7 +834,7 @@ __Returns:__
|
|
805
834
|
|
806
835
|
--
|
807
836
|
|
808
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
837
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L64)
|
809
838
|
|
810
839
|
> def launch_app
|
811
840
|
|
@@ -813,7 +842,7 @@ Start the simulator and application configured with desired capabilities
|
|
813
842
|
|
814
843
|
--
|
815
844
|
|
816
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
845
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L67)
|
817
846
|
|
818
847
|
> def reset
|
819
848
|
|
@@ -821,7 +850,7 @@ Reset the device, relaunching the application.
|
|
821
850
|
|
822
851
|
--
|
823
852
|
|
824
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
853
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L70)
|
825
854
|
|
826
855
|
> def shake
|
827
856
|
|
@@ -829,7 +858,7 @@ Cause the device to shake
|
|
829
858
|
|
830
859
|
--
|
831
860
|
|
832
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
861
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L73)
|
833
862
|
|
834
863
|
> def toggle_flight_mode
|
835
864
|
|
@@ -837,7 +866,7 @@ Toggle flight mode on or off
|
|
837
866
|
|
838
867
|
--
|
839
868
|
|
840
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
869
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L76)
|
841
870
|
|
842
871
|
> def device_locked?
|
843
872
|
|
@@ -845,7 +874,7 @@ Toggle flight mode on or off
|
|
845
874
|
|
846
875
|
--
|
847
876
|
|
848
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
877
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L78)
|
849
878
|
|
850
879
|
> def hide_keyboard
|
851
880
|
|
@@ -862,7 +891,7 @@ Default for iOS is `:pressKey`. Default for Android is `:tapOutside`.
|
|
862
891
|
|
863
892
|
--
|
864
893
|
|
865
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
894
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L91)
|
866
895
|
|
867
896
|
> def press_keycode
|
868
897
|
|
@@ -877,7 +906,7 @@ __Parameters:__
|
|
877
906
|
|
878
907
|
--
|
879
908
|
|
880
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
909
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L97)
|
881
910
|
|
882
911
|
> def long_press_keycode
|
883
912
|
|
@@ -892,7 +921,7 @@ __Parameters:__
|
|
892
921
|
|
893
922
|
--
|
894
923
|
|
895
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
924
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L103)
|
896
925
|
|
897
926
|
> def push_file
|
898
927
|
|
@@ -906,7 +935,7 @@ __Parameters:__
|
|
906
935
|
|
907
936
|
--
|
908
937
|
|
909
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
938
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L108)
|
910
939
|
|
911
940
|
> def pull_file
|
912
941
|
|
@@ -923,7 +952,7 @@ __Parameters:__
|
|
923
952
|
|
924
953
|
--
|
925
954
|
|
926
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
955
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L118)
|
927
956
|
|
928
957
|
> def pull_folder
|
929
958
|
|
@@ -938,7 +967,7 @@ __Parameters:__
|
|
938
967
|
|
939
968
|
--
|
940
969
|
|
941
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
970
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L126)
|
942
971
|
|
943
972
|
> def touch_id
|
944
973
|
|
@@ -955,7 +984,7 @@ Defaults to true.
|
|
955
984
|
|
956
985
|
--
|
957
986
|
|
958
|
-
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/
|
987
|
+
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L135)
|
959
988
|
|
960
989
|
> def toggle_touch_id_enrollment
|
961
990
|
|
@@ -963,7 +992,7 @@ iOS Simulator only: Toggle touch id enrollment on an iOS Simulator.
|
|
963
992
|
|
964
993
|
--
|
965
994
|
|
966
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
995
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L138)
|
967
996
|
|
968
997
|
> def end_coverage
|
969
998
|
|
@@ -977,7 +1006,7 @@ __Parameters:__
|
|
977
1006
|
|
978
1007
|
--
|
979
1008
|
|
980
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
1009
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L143)
|
981
1010
|
|
982
1011
|
> def get_settings
|
983
1012
|
|
@@ -985,7 +1014,7 @@ Get appium Settings for current test session
|
|
985
1014
|
|
986
1015
|
--
|
987
1016
|
|
988
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
1017
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L146)
|
989
1018
|
|
990
1019
|
> def update_settings
|
991
1020
|
|
@@ -997,7 +1026,7 @@ __Parameters:__
|
|
997
1026
|
|
998
1027
|
--
|
999
1028
|
|
1000
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
1029
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L150)
|
1001
1030
|
|
1002
1031
|
> def start_activity
|
1003
1032
|
|
@@ -1011,7 +1040,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
1011
1040
|
|
1012
1041
|
--
|
1013
1042
|
|
1014
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
1043
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L164)
|
1015
1044
|
|
1016
1045
|
> def get_network_connection
|
1017
1046
|
|
@@ -1020,7 +1049,7 @@ See set_network_connection method for return value
|
|
1020
1049
|
|
1021
1050
|
--
|
1022
1051
|
|
1023
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
1052
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L168)
|
1024
1053
|
|
1025
1054
|
> def set_network_connection
|
1026
1055
|
|
@@ -1039,7 +1068,7 @@ __Parameters:__
|
|
1039
1068
|
|
1040
1069
|
--
|
1041
1070
|
|
1042
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
1071
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L181)
|
1043
1072
|
|
1044
1073
|
> def set_immediate_value
|
1045
1074
|
|
@@ -1053,7 +1082,7 @@ set_immediate_value element, 'hello'
|
|
1053
1082
|
|
1054
1083
|
--
|
1055
1084
|
|
1056
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
1085
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L190)
|
1057
1086
|
|
1058
1087
|
> def get_performance_data_types
|
1059
1088
|
|
@@ -1067,7 +1096,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1067
1096
|
|
1068
1097
|
--
|
1069
1098
|
|
1070
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
1099
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L453)
|
1071
1100
|
|
1072
1101
|
> def extend_search_contexts
|
1073
1102
|
|
@@ -1075,7 +1104,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1075
1104
|
|
1076
1105
|
--
|
1077
1106
|
|
1078
|
-
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/
|
1107
|
+
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L453)
|
1079
1108
|
|
1080
1109
|
> def find_element_with_appium
|
1081
1110
|
|
@@ -1083,7 +1112,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1083
1112
|
|
1084
1113
|
--
|
1085
1114
|
|
1086
|
-
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/
|
1115
|
+
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L453)
|
1087
1116
|
|
1088
1117
|
> def find_elements_with_appium
|
1089
1118
|
|
@@ -1095,7 +1124,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1095
1124
|
|
1096
1125
|
--
|
1097
1126
|
|
1098
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1127
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L484)
|
1099
1128
|
|
1100
1129
|
> def add_touch_actions
|
1101
1130
|
|
@@ -1103,7 +1132,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1103
1132
|
|
1104
1133
|
--
|
1105
1134
|
|
1106
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1135
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L507)
|
1107
1136
|
|
1108
1137
|
> def add_ime_actions
|
1109
1138
|
|
@@ -1111,7 +1140,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1111
1140
|
|
1112
1141
|
--
|
1113
1142
|
|
1114
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1143
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L582)
|
1115
1144
|
|
1116
1145
|
> def set_context
|
1117
1146
|
|
@@ -1126,7 +1155,7 @@ __Parameters:__
|
|
1126
1155
|
|
1127
1156
|
--
|
1128
1157
|
|
1129
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1158
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L590)
|
1130
1159
|
|
1131
1160
|
> def current_context
|
1132
1161
|
|
@@ -1138,7 +1167,7 @@ __Returns:__
|
|
1138
1167
|
|
1139
1168
|
--
|
1140
1169
|
|
1141
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1170
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L593)
|
1142
1171
|
|
1143
1172
|
> def available_contexts
|
1144
1173
|
|
@@ -1150,7 +1179,7 @@ __Returns:__
|
|
1150
1179
|
|
1151
1180
|
--
|
1152
1181
|
|
1153
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1182
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L604)
|
1154
1183
|
|
1155
1184
|
> def within_context(context)
|
1156
1185
|
|
@@ -1167,7 +1196,7 @@ __Parameters:__
|
|
1167
1196
|
|
1168
1197
|
--
|
1169
1198
|
|
1170
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1199
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/device.rb#L617)
|
1171
1200
|
|
1172
1201
|
> def switch_to_default_context
|
1173
1202
|
|
@@ -1175,7 +1204,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1175
1204
|
|
1176
1205
|
--
|
1177
1206
|
|
1178
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1207
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L28)
|
1179
1208
|
|
1180
1209
|
> def pinch(percentage = 25, auto_perform = true)
|
1181
1210
|
|
@@ -1194,7 +1223,7 @@ __Parameters:__
|
|
1194
1223
|
|
1195
1224
|
--
|
1196
1225
|
|
1197
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1226
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L57)
|
1198
1227
|
|
1199
1228
|
> def zoom(percentage = 200, auto_perform = true)
|
1200
1229
|
|
@@ -1213,7 +1242,7 @@ __Parameters:__
|
|
1213
1242
|
|
1214
1243
|
--
|
1215
1244
|
|
1216
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1245
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L79)
|
1217
1246
|
|
1218
1247
|
> def pinch_for_xcuitest(rate)
|
1219
1248
|
|
@@ -1221,7 +1250,7 @@ __Parameters:__
|
|
1221
1250
|
|
1222
1251
|
--
|
1223
1252
|
|
1224
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1253
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L94)
|
1225
1254
|
|
1226
1255
|
> def pinch_android(rate)
|
1227
1256
|
|
@@ -1229,7 +1258,7 @@ __Parameters:__
|
|
1229
1258
|
|
1230
1259
|
--
|
1231
1260
|
|
1232
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1261
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L108)
|
1233
1262
|
|
1234
1263
|
> def pinch_ios(rate)
|
1235
1264
|
|
@@ -1237,7 +1266,7 @@ __Parameters:__
|
|
1237
1266
|
|
1238
1267
|
--
|
1239
1268
|
|
1240
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1269
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L122)
|
1241
1270
|
|
1242
1271
|
> def zoom_for_xcuitest(rate)
|
1243
1272
|
|
@@ -1245,7 +1274,7 @@ __Parameters:__
|
|
1245
1274
|
|
1246
1275
|
--
|
1247
1276
|
|
1248
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1277
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L137)
|
1249
1278
|
|
1250
1279
|
> def zoom_android(rate)
|
1251
1280
|
|
@@ -1253,7 +1282,7 @@ __Parameters:__
|
|
1253
1282
|
|
1254
1283
|
--
|
1255
1284
|
|
1256
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1285
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L151)
|
1257
1286
|
|
1258
1287
|
> def zoom_ios(rate)
|
1259
1288
|
|
@@ -1261,7 +1290,7 @@ __Parameters:__
|
|
1261
1290
|
|
1262
1291
|
--
|
1263
1292
|
|
1264
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1293
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L166)
|
1265
1294
|
|
1266
1295
|
> def actions
|
1267
1296
|
|
@@ -1269,7 +1298,7 @@ self
|
|
1269
1298
|
|
1270
1299
|
--
|
1271
1300
|
|
1272
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1301
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L169)
|
1273
1302
|
|
1274
1303
|
> def initialize
|
1275
1304
|
|
@@ -1281,7 +1310,7 @@ __Returns:__
|
|
1281
1310
|
|
1282
1311
|
--
|
1283
1312
|
|
1284
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1313
|
+
##### [add](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L175)
|
1285
1314
|
|
1286
1315
|
> def add(chain)
|
1287
1316
|
|
@@ -1293,7 +1322,7 @@ __Parameters:__
|
|
1293
1322
|
|
1294
1323
|
--
|
1295
1324
|
|
1296
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1325
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/multi_touch.rb#L180)
|
1297
1326
|
|
1298
1327
|
> def perform
|
1299
1328
|
|
@@ -1301,7 +1330,7 @@ Ask Appium to perform the actions
|
|
1301
1330
|
|
1302
1331
|
--
|
1303
1332
|
|
1304
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1333
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L22)
|
1305
1334
|
|
1306
1335
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1307
1336
|
|
@@ -1309,7 +1338,7 @@ Ask Appium to perform the actions
|
|
1309
1338
|
|
1310
1339
|
--
|
1311
1340
|
|
1312
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1341
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L23)
|
1313
1342
|
|
1314
1343
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1315
1344
|
|
@@ -1317,7 +1346,7 @@ Ask Appium to perform the actions
|
|
1317
1346
|
|
1318
1347
|
--
|
1319
1348
|
|
1320
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1349
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L37)
|
1321
1350
|
|
1322
1351
|
> def actions
|
1323
1352
|
|
@@ -1325,7 +1354,7 @@ Returns the value of attribute actions
|
|
1325
1354
|
|
1326
1355
|
--
|
1327
1356
|
|
1328
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1357
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L39)
|
1329
1358
|
|
1330
1359
|
> def initialize
|
1331
1360
|
|
@@ -1337,7 +1366,7 @@ __Returns:__
|
|
1337
1366
|
|
1338
1367
|
--
|
1339
1368
|
|
1340
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1369
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L50)
|
1341
1370
|
|
1342
1371
|
> def move_to(opts)
|
1343
1372
|
|
@@ -1351,7 +1380,7 @@ __Parameters:__
|
|
1351
1380
|
|
1352
1381
|
--
|
1353
1382
|
|
1354
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1383
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L64)
|
1355
1384
|
|
1356
1385
|
> def long_press(opts)
|
1357
1386
|
|
@@ -1372,7 +1401,7 @@ __Parameters:__
|
|
1372
1401
|
|
1373
1402
|
--
|
1374
1403
|
|
1375
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1404
|
+
##### [press](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L76)
|
1376
1405
|
|
1377
1406
|
> def press(opts)
|
1378
1407
|
|
@@ -1385,7 +1414,7 @@ __Parameters:__
|
|
1385
1414
|
|
1386
1415
|
--
|
1387
1416
|
|
1388
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1417
|
+
##### [release](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L87)
|
1389
1418
|
|
1390
1419
|
> def release(opts = nil)
|
1391
1420
|
|
@@ -1397,7 +1426,7 @@ __Parameters:__
|
|
1397
1426
|
|
1398
1427
|
--
|
1399
1428
|
|
1400
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1429
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L99)
|
1401
1430
|
|
1402
1431
|
> def tap(opts)
|
1403
1432
|
|
@@ -1410,7 +1439,7 @@ __Parameters:__
|
|
1410
1439
|
|
1411
1440
|
--
|
1412
1441
|
|
1413
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1442
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L112)
|
1414
1443
|
|
1415
1444
|
> def double_tap(opts)
|
1416
1445
|
|
@@ -1422,7 +1451,7 @@ __Parameters:__
|
|
1422
1451
|
|
1423
1452
|
--
|
1424
1453
|
|
1425
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1454
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L123)
|
1426
1455
|
|
1427
1456
|
> def two_finger_tap(opts)
|
1428
1457
|
|
@@ -1434,7 +1463,7 @@ __Parameters:__
|
|
1434
1463
|
|
1435
1464
|
--
|
1436
1465
|
|
1437
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1466
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L131)
|
1438
1467
|
|
1439
1468
|
> def wait(milliseconds)
|
1440
1469
|
|
@@ -1446,7 +1475,7 @@ __Parameters:__
|
|
1446
1475
|
|
1447
1476
|
--
|
1448
1477
|
|
1449
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1478
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L154)
|
1450
1479
|
|
1451
1480
|
> def swipe(opts, ele = nil)
|
1452
1481
|
|
@@ -1467,7 +1496,7 @@ __Parameters:__
|
|
1467
1496
|
|
1468
1497
|
--
|
1469
1498
|
|
1470
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1499
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L179)
|
1471
1500
|
|
1472
1501
|
> def perform
|
1473
1502
|
|
@@ -1475,7 +1504,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1475
1504
|
|
1476
1505
|
--
|
1477
1506
|
|
1478
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1507
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L186)
|
1479
1508
|
|
1480
1509
|
> def cancel
|
1481
1510
|
|
@@ -1483,7 +1512,7 @@ Does nothing, currently.
|
|
1483
1512
|
|
1484
1513
|
--
|
1485
1514
|
|
1486
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1515
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L192)
|
1487
1516
|
|
1488
1517
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1489
1518
|
|
@@ -1491,7 +1520,7 @@ Does nothing, currently.
|
|
1491
1520
|
|
1492
1521
|
--
|
1493
1522
|
|
1494
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1523
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L210)
|
1495
1524
|
|
1496
1525
|
> def chain_method(method, args = nil)
|
1497
1526
|
|
@@ -1499,7 +1528,7 @@ Does nothing, currently.
|
|
1499
1528
|
|
1500
1529
|
--
|
1501
1530
|
|
1502
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1531
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/device/touch_actions.rb#L216)
|
1503
1532
|
|
1504
1533
|
> def args_with_ele_ref(args)
|
1505
1534
|
|
@@ -1507,7 +1536,7 @@ Does nothing, currently.
|
|
1507
1536
|
|
1508
1537
|
--
|
1509
1538
|
|
1510
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1539
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/wait.rb#L4)
|
1511
1540
|
|
1512
1541
|
> def initialize(opts = {})
|
1513
1542
|
|
@@ -1519,7 +1548,7 @@ __Returns:__
|
|
1519
1548
|
|
1520
1549
|
--
|
1521
1550
|
|
1522
|
-
##### [until](https://github.com/appium/ruby_lib/blob/
|
1551
|
+
##### [until](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/wait.rb#L23)
|
1523
1552
|
|
1524
1553
|
> def until
|
1525
1554
|
|
@@ -1528,7 +1557,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1528
1557
|
|
1529
1558
|
--
|
1530
1559
|
|
1531
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1560
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/wait.rb#L51)
|
1532
1561
|
|
1533
1562
|
> def _process_wait_opts(opts)
|
1534
1563
|
|
@@ -1536,7 +1565,7 @@ process opts before calling _generic_wait
|
|
1536
1565
|
|
1537
1566
|
--
|
1538
1567
|
|
1539
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1568
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/wait.rb#L72)
|
1540
1569
|
|
1541
1570
|
> def wait_true(opts = {})
|
1542
1571
|
|
@@ -1556,7 +1585,7 @@ __Parameters:__
|
|
1556
1585
|
|
1557
1586
|
--
|
1558
1587
|
|
1559
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1588
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/wait.rb#L95)
|
1560
1589
|
|
1561
1590
|
> def wait(opts = {})
|
1562
1591
|
|
@@ -1574,7 +1603,7 @@ __Parameters:__
|
|
1574
1603
|
|
1575
1604
|
--
|
1576
1605
|
|
1577
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1606
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L24)
|
1578
1607
|
|
1579
1608
|
> def ignore
|
1580
1609
|
|
@@ -1582,7 +1611,7 @@ Return yield and ignore any exceptions.
|
|
1582
1611
|
|
1583
1612
|
--
|
1584
1613
|
|
1585
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1614
|
+
##### [back](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L31)
|
1586
1615
|
|
1587
1616
|
> def back
|
1588
1617
|
|
@@ -1594,7 +1623,7 @@ __Returns:__
|
|
1594
1623
|
|
1595
1624
|
--
|
1596
1625
|
|
1597
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1626
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L36)
|
1598
1627
|
|
1599
1628
|
> def session_id
|
1600
1629
|
|
@@ -1602,7 +1631,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1602
1631
|
|
1603
1632
|
--
|
1604
1633
|
|
1605
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1634
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L44)
|
1606
1635
|
|
1607
1636
|
> def xpath(xpath_str)
|
1608
1637
|
|
@@ -1618,7 +1647,7 @@ __Returns:__
|
|
1618
1647
|
|
1619
1648
|
--
|
1620
1649
|
|
1621
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1650
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L52)
|
1622
1651
|
|
1623
1652
|
> def xpaths(xpath_str)
|
1624
1653
|
|
@@ -1634,7 +1663,7 @@ __Returns:__
|
|
1634
1663
|
|
1635
1664
|
--
|
1636
1665
|
|
1637
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1666
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L56)
|
1638
1667
|
|
1639
1668
|
> def _print_source(source)
|
1640
1669
|
|
@@ -1642,7 +1671,7 @@ __Returns:__
|
|
1642
1671
|
|
1643
1672
|
--
|
1644
1673
|
|
1645
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1674
|
+
##### [result](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L69)
|
1646
1675
|
|
1647
1676
|
> def result
|
1648
1677
|
|
@@ -1650,7 +1679,7 @@ Returns the value of attribute result
|
|
1650
1679
|
|
1651
1680
|
--
|
1652
1681
|
|
1653
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1682
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L71)
|
1654
1683
|
|
1655
1684
|
> def initialize
|
1656
1685
|
|
@@ -1662,7 +1691,7 @@ __Returns:__
|
|
1662
1691
|
|
1663
1692
|
--
|
1664
1693
|
|
1665
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1694
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L75)
|
1666
1695
|
|
1667
1696
|
> def reset
|
1668
1697
|
|
@@ -1670,7 +1699,7 @@ __Returns:__
|
|
1670
1699
|
|
1671
1700
|
--
|
1672
1701
|
|
1673
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1702
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L80)
|
1674
1703
|
|
1675
1704
|
> def start_element(name, attrs = [])
|
1676
1705
|
|
@@ -1678,7 +1707,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1678
1707
|
|
1679
1708
|
--
|
1680
1709
|
|
1681
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1710
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L86)
|
1682
1711
|
|
1683
1712
|
> def formatted_result
|
1684
1713
|
|
@@ -1686,7 +1715,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1686
1715
|
|
1687
1716
|
--
|
1688
1717
|
|
1689
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1718
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L97)
|
1690
1719
|
|
1691
1720
|
> def get_page_class
|
1692
1721
|
|
@@ -1694,7 +1723,7 @@ Returns a string of class counts of visible elements.
|
|
1694
1723
|
|
1695
1724
|
--
|
1696
1725
|
|
1697
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1726
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L108)
|
1698
1727
|
|
1699
1728
|
> def page_class
|
1700
1729
|
|
@@ -1703,7 +1732,7 @@ Useful for appium_console.
|
|
1703
1732
|
|
1704
1733
|
--
|
1705
1734
|
|
1706
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1735
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L118)
|
1707
1736
|
|
1708
1737
|
> def px_to_window_rel(opts = {})
|
1709
1738
|
|
@@ -1715,7 +1744,7 @@ px_to_window_rel x: 50, y: 150
|
|
1715
1744
|
|
1716
1745
|
--
|
1717
1746
|
|
1718
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1747
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L137)
|
1719
1748
|
|
1720
1749
|
> def xml_keys(target)
|
1721
1750
|
|
@@ -1731,7 +1760,7 @@ __Returns:__
|
|
1731
1760
|
|
1732
1761
|
--
|
1733
1762
|
|
1734
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1763
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L145)
|
1735
1764
|
|
1736
1765
|
> def xml_values(target)
|
1737
1766
|
|
@@ -1747,7 +1776,7 @@ __Returns:__
|
|
1747
1776
|
|
1748
1777
|
--
|
1749
1778
|
|
1750
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1779
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L153)
|
1751
1780
|
|
1752
1781
|
> def resolve_id(id)
|
1753
1782
|
|
@@ -1763,7 +1792,7 @@ __Returns:__
|
|
1763
1792
|
|
1764
1793
|
--
|
1765
1794
|
|
1766
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1795
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L159)
|
1767
1796
|
|
1768
1797
|
> def filter
|
1769
1798
|
|
@@ -1771,7 +1800,7 @@ Returns the value of attribute filter
|
|
1771
1800
|
|
1772
1801
|
--
|
1773
1802
|
|
1774
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1803
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L162)
|
1775
1804
|
|
1776
1805
|
> def filter=(value)
|
1777
1806
|
|
@@ -1779,7 +1808,7 @@ convert to string to support symbols
|
|
1779
1808
|
|
1780
1809
|
--
|
1781
1810
|
|
1782
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1811
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L168)
|
1783
1812
|
|
1784
1813
|
> def initialize
|
1785
1814
|
|
@@ -1791,7 +1820,7 @@ __Returns:__
|
|
1791
1820
|
|
1792
1821
|
--
|
1793
1822
|
|
1794
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1823
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L173)
|
1795
1824
|
|
1796
1825
|
> def reset
|
1797
1826
|
|
@@ -1799,7 +1828,7 @@ __Returns:__
|
|
1799
1828
|
|
1800
1829
|
--
|
1801
1830
|
|
1802
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1831
|
+
##### [result](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L179)
|
1803
1832
|
|
1804
1833
|
> def result
|
1805
1834
|
|
@@ -1807,7 +1836,7 @@ __Returns:__
|
|
1807
1836
|
|
1808
1837
|
--
|
1809
1838
|
|
1810
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1839
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L195)
|
1811
1840
|
|
1812
1841
|
> def start_element(name, attrs = [])
|
1813
1842
|
|
@@ -1815,7 +1844,7 @@ __Returns:__
|
|
1815
1844
|
|
1816
1845
|
--
|
1817
1846
|
|
1818
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1847
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L204)
|
1819
1848
|
|
1820
1849
|
> def end_element(name)
|
1821
1850
|
|
@@ -1823,7 +1852,7 @@ __Returns:__
|
|
1823
1852
|
|
1824
1853
|
--
|
1825
1854
|
|
1826
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1855
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L210)
|
1827
1856
|
|
1828
1857
|
> def characters(chars)
|
1829
1858
|
|
@@ -1831,7 +1860,7 @@ __Returns:__
|
|
1831
1860
|
|
1832
1861
|
--
|
1833
1862
|
|
1834
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1863
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/helper.rb#L217)
|
1835
1864
|
|
1836
1865
|
> def _no_such_element
|
1837
1866
|
|
@@ -1839,7 +1868,7 @@ __Returns:__
|
|
1839
1868
|
|
1840
1869
|
--
|
1841
1870
|
|
1842
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1871
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/command.rb#L4)
|
1843
1872
|
|
1844
1873
|
> COMMAND_NO_ARG = {
|
1845
1874
|
|
@@ -1847,7 +1876,7 @@ __Returns:__
|
|
1847
1876
|
|
1848
1877
|
--
|
1849
1878
|
|
1850
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1879
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/command.rb#L28)
|
1851
1880
|
|
1852
1881
|
> COMMAND = {
|
1853
1882
|
|
@@ -1855,7 +1884,7 @@ __Returns:__
|
|
1855
1884
|
|
1856
1885
|
--
|
1857
1886
|
|
1858
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1887
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/element/window.rb#L5)
|
1859
1888
|
|
1860
1889
|
> def window_size
|
1861
1890
|
|
@@ -1863,7 +1892,7 @@ Get the window's size
|
|
1863
1892
|
|
1864
1893
|
--
|
1865
1894
|
|
1866
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1895
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/search_context.rb#L5)
|
1867
1896
|
|
1868
1897
|
> FINDERS = {
|
1869
1898
|
|
@@ -1871,7 +1900,7 @@ rubocop:disable Style/MutableConstant
|
|
1871
1900
|
|
1872
1901
|
--
|
1873
1902
|
|
1874
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1903
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L4) ios
|
1875
1904
|
|
1876
1905
|
> def filter
|
1877
1906
|
|
@@ -1879,7 +1908,7 @@ Returns the value of attribute filter
|
|
1879
1908
|
|
1880
1909
|
--
|
1881
1910
|
|
1882
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1911
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L4) ios
|
1883
1912
|
|
1884
1913
|
> def filter=(value)
|
1885
1914
|
|
@@ -1891,7 +1920,7 @@ __Parameters:__
|
|
1891
1920
|
|
1892
1921
|
--
|
1893
1922
|
|
1894
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1923
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L6) ios
|
1895
1924
|
|
1896
1925
|
> def start_element(type, attrs = [])
|
1897
1926
|
|
@@ -1899,7 +1928,7 @@ __Parameters:__
|
|
1899
1928
|
|
1900
1929
|
--
|
1901
1930
|
|
1902
|
-
##### [_print_attr](https://github.com/appium/ruby_lib/blob/
|
1931
|
+
##### [_print_attr](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L15) ios
|
1903
1932
|
|
1904
1933
|
> def _print_attr(type, name, label, value, hint, visible) # rubocop:disable Metrics/ParameterLists
|
1905
1934
|
|
@@ -1907,7 +1936,7 @@ rubocop:disable Metrics/ParameterLists
|
|
1907
1936
|
|
1908
1937
|
--
|
1909
1938
|
|
1910
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1939
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L42) ios
|
1911
1940
|
|
1912
1941
|
> def ios_password(length = 1)
|
1913
1942
|
|
@@ -1925,7 +1954,7 @@ __Returns:__
|
|
1925
1954
|
|
1926
1955
|
--
|
1927
1956
|
|
1928
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1957
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L55) ios
|
1929
1958
|
|
1930
1959
|
> def get_page(element = source_window(0), class_name = nil)
|
1931
1960
|
|
@@ -1946,7 +1975,7 @@ __Returns:__
|
|
1946
1975
|
|
1947
1976
|
--
|
1948
1977
|
|
1949
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1978
|
+
##### [page](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L142) ios
|
1950
1979
|
|
1951
1980
|
> def page(opts = {})
|
1952
1981
|
|
@@ -1971,7 +2000,7 @@ __Returns:__
|
|
1971
2000
|
|
1972
2001
|
--
|
1973
2002
|
|
1974
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
2003
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L166) ios
|
1975
2004
|
|
1976
2005
|
> def source_window(window_number = nil)
|
1977
2006
|
|
@@ -1983,7 +2012,7 @@ __Returns:__
|
|
1983
2012
|
|
1984
2013
|
--
|
1985
2014
|
|
1986
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
2015
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L177) ios
|
1987
2016
|
|
1988
2017
|
> def page_window(window_number = 0)
|
1989
2018
|
|
@@ -2001,7 +2030,7 @@ __Returns:__
|
|
2001
2030
|
|
2002
2031
|
--
|
2003
2032
|
|
2004
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
2033
|
+
##### [id](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L185) ios
|
2005
2034
|
|
2006
2035
|
> def id(id)
|
2007
2036
|
|
@@ -2017,7 +2046,7 @@ __Returns:__
|
|
2017
2046
|
|
2018
2047
|
--
|
2019
2048
|
|
2020
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
2049
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L191) ios
|
2021
2050
|
|
2022
2051
|
> def ios_version
|
2023
2052
|
|
@@ -2029,7 +2058,7 @@ __Returns:__
|
|
2029
2058
|
|
2030
2059
|
--
|
2031
2060
|
|
2032
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
2061
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L204) ios
|
2033
2062
|
|
2034
2063
|
> def ele_index(class_name, index)
|
2035
2064
|
|
@@ -2047,7 +2076,7 @@ __Returns:__
|
|
2047
2076
|
|
2048
2077
|
--
|
2049
2078
|
|
2050
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
2079
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L240) ios
|
2051
2080
|
|
2052
2081
|
> def find_ele_by_attr(class_name, attr, value)
|
2053
2082
|
|
@@ -2069,7 +2098,7 @@ __Returns:__
|
|
2069
2098
|
|
2070
2099
|
--
|
2071
2100
|
|
2072
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
2101
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L251) ios
|
2073
2102
|
|
2074
2103
|
> def find_eles_by_attr(class_name, attr, value)
|
2075
2104
|
|
@@ -2091,7 +2120,7 @@ __Returns:__
|
|
2091
2120
|
|
2092
2121
|
--
|
2093
2122
|
|
2094
|
-
##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/
|
2123
|
+
##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L272) ios
|
2095
2124
|
|
2096
2125
|
> def find_ele_by_predicate(class_name: '*', value:)
|
2097
2126
|
|
@@ -2108,7 +2137,7 @@ __Returns:__
|
|
2108
2137
|
|
2109
2138
|
--
|
2110
2139
|
|
2111
|
-
##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/
|
2140
|
+
##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L283) ios
|
2112
2141
|
|
2113
2142
|
> def find_eles_by_predicate(class_name: '*', value:)
|
2114
2143
|
|
@@ -2127,7 +2156,7 @@ __Returns:__
|
|
2127
2156
|
|
2128
2157
|
--
|
2129
2158
|
|
2130
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
2159
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L299) ios
|
2131
2160
|
|
2132
2161
|
> def find_ele_by_attr_include(class_name, attr, value)
|
2133
2162
|
|
@@ -2148,7 +2177,7 @@ __Returns:__
|
|
2148
2177
|
|
2149
2178
|
--
|
2150
2179
|
|
2151
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
2180
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L309) ios
|
2152
2181
|
|
2153
2182
|
> def find_eles_by_attr_include(class_name, attr, value)
|
2154
2183
|
|
@@ -2169,7 +2198,7 @@ __Returns:__
|
|
2169
2198
|
|
2170
2199
|
--
|
2171
2200
|
|
2172
|
-
##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/
|
2201
|
+
##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L317) ios
|
2173
2202
|
|
2174
2203
|
> def find_ele_by_predicate_include(class_name: '*', value:)
|
2175
2204
|
|
@@ -2186,7 +2215,7 @@ __Returns:__
|
|
2186
2215
|
|
2187
2216
|
--
|
2188
2217
|
|
2189
|
-
##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/
|
2218
|
+
##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L328) ios
|
2190
2219
|
|
2191
2220
|
> def find_eles_by_predicate_include(class_name: '*', value:)
|
2192
2221
|
|
@@ -2205,7 +2234,7 @@ __Returns:__
|
|
2205
2234
|
|
2206
2235
|
--
|
2207
2236
|
|
2208
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
2237
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L341) ios
|
2209
2238
|
|
2210
2239
|
> def first_ele(class_name)
|
2211
2240
|
|
@@ -2221,7 +2250,7 @@ __Returns:__
|
|
2221
2250
|
|
2222
2251
|
--
|
2223
2252
|
|
2224
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2253
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L348) ios
|
2225
2254
|
|
2226
2255
|
> def last_ele(class_name)
|
2227
2256
|
|
@@ -2237,7 +2266,7 @@ __Returns:__
|
|
2237
2266
|
|
2238
2267
|
--
|
2239
2268
|
|
2240
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2269
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L362) ios
|
2241
2270
|
|
2242
2271
|
> def tag(class_name)
|
2243
2272
|
|
@@ -2253,7 +2282,7 @@ __Returns:__
|
|
2253
2282
|
|
2254
2283
|
--
|
2255
2284
|
|
2256
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2285
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L374) ios
|
2257
2286
|
|
2258
2287
|
> def tags(class_name)
|
2259
2288
|
|
@@ -2269,7 +2298,7 @@ __Returns:__
|
|
2269
2298
|
|
2270
2299
|
--
|
2271
2300
|
|
2272
|
-
##### [tags_include](https://github.com/appium/ruby_lib/blob/
|
2301
|
+
##### [tags_include](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L390) ios
|
2273
2302
|
|
2274
2303
|
> def tags_include(class_names:, value: nil)
|
2275
2304
|
|
@@ -2289,7 +2318,7 @@ __Returns:__
|
|
2289
2318
|
|
2290
2319
|
--
|
2291
2320
|
|
2292
|
-
##### [tags_exact](https://github.com/appium/ruby_lib/blob/
|
2321
|
+
##### [tags_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L419) ios
|
2293
2322
|
|
2294
2323
|
> def tags_exact(class_names:, value: nil)
|
2295
2324
|
|
@@ -2309,7 +2338,7 @@ __Returns:__
|
|
2309
2338
|
|
2310
2339
|
--
|
2311
2340
|
|
2312
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2341
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L470) ios
|
2313
2342
|
|
2314
2343
|
> def ele_by_json_visible_contains(element, value)
|
2315
2344
|
|
@@ -2328,7 +2357,7 @@ __Returns:__
|
|
2328
2357
|
|
2329
2358
|
--
|
2330
2359
|
|
2331
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2360
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L479) ios
|
2332
2361
|
|
2333
2362
|
> def eles_by_json_visible_contains(element, value)
|
2334
2363
|
|
@@ -2347,7 +2376,7 @@ __Returns:__
|
|
2347
2376
|
|
2348
2377
|
--
|
2349
2378
|
|
2350
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2379
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L509) ios
|
2351
2380
|
|
2352
2381
|
> def ele_by_json_visible_exact(element, value)
|
2353
2382
|
|
@@ -2366,7 +2395,7 @@ __Returns:__
|
|
2366
2395
|
|
2367
2396
|
--
|
2368
2397
|
|
2369
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2398
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L518) ios
|
2370
2399
|
|
2371
2400
|
> def eles_by_json_visible_exact(element, value)
|
2372
2401
|
|
@@ -2385,7 +2414,7 @@ __Returns:__
|
|
2385
2414
|
|
2386
2415
|
--
|
2387
2416
|
|
2388
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
2417
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L527) ios
|
2389
2418
|
|
2390
2419
|
> def _all_pred(opts)
|
2391
2420
|
|
@@ -2395,7 +2424,7 @@ visible - if true, only visible elements are returned. default true
|
|
2395
2424
|
|
2396
2425
|
--
|
2397
2426
|
|
2398
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
2427
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L540) ios
|
2399
2428
|
|
2400
2429
|
> def ele_with_pred(opts)
|
2401
2430
|
|
@@ -2411,7 +2440,7 @@ __Returns:__
|
|
2411
2440
|
|
2412
2441
|
--
|
2413
2442
|
|
2414
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
2443
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L551) ios
|
2415
2444
|
|
2416
2445
|
> def eles_with_pred(opts)
|
2417
2446
|
|
@@ -2427,7 +2456,7 @@ __Returns:__
|
|
2427
2456
|
|
2428
2457
|
--
|
2429
2458
|
|
2430
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
2459
|
+
##### [source](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L557) ios
|
2431
2460
|
|
2432
2461
|
> def source
|
2433
2462
|
|
@@ -2439,7 +2468,7 @@ __Returns:__
|
|
2439
2468
|
|
2440
2469
|
--
|
2441
2470
|
|
2442
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
2471
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L561) ios
|
2443
2472
|
|
2444
2473
|
> def _validate_object(*objects)
|
2445
2474
|
|
@@ -2447,7 +2476,7 @@ __Returns:__
|
|
2447
2476
|
|
2448
2477
|
--
|
2449
2478
|
|
2450
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
2479
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L610) ios
|
2451
2480
|
|
2452
2481
|
> def _by_json(opts)
|
2453
2482
|
|
@@ -2482,7 +2511,7 @@ opts = {
|
|
2482
2511
|
|
2483
2512
|
--
|
2484
2513
|
|
2485
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
2514
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L660) ios
|
2486
2515
|
|
2487
2516
|
> def eles_by_json(opts)
|
2488
2517
|
|
@@ -2501,7 +2530,7 @@ eles_by_json({
|
|
2501
2530
|
|
2502
2531
|
--
|
2503
2532
|
|
2504
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
2533
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L666) ios
|
2505
2534
|
|
2506
2535
|
> def ele_by_json(opts)
|
2507
2536
|
|
@@ -2509,7 +2538,7 @@ see eles_by_json
|
|
2509
2538
|
|
2510
2539
|
--
|
2511
2540
|
|
2512
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2541
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/helper.rb#L676) ios
|
2513
2542
|
|
2514
2543
|
> def get_source
|
2515
2544
|
|
@@ -2522,7 +2551,7 @@ __Returns:__
|
|
2522
2551
|
|
2523
2552
|
--
|
2524
2553
|
|
2525
|
-
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/
|
2554
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/text.rb#L4) ios
|
2526
2555
|
|
2527
2556
|
> UIAStaticText = 'UIAStaticText'.freeze
|
2528
2557
|
|
@@ -2530,7 +2559,7 @@ __Returns:__
|
|
2530
2559
|
|
2531
2560
|
--
|
2532
2561
|
|
2533
|
-
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/
|
2562
|
+
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/text.rb#L5) ios
|
2534
2563
|
|
2535
2564
|
> XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze
|
2536
2565
|
|
@@ -2538,7 +2567,7 @@ __Returns:__
|
|
2538
2567
|
|
2539
2568
|
--
|
2540
2569
|
|
2541
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
2570
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/text.rb#L8) ios
|
2542
2571
|
|
2543
2572
|
> def static_text_class
|
2544
2573
|
|
@@ -2550,7 +2579,7 @@ __Returns:__
|
|
2550
2579
|
|
2551
2580
|
--
|
2552
2581
|
|
2553
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2582
|
+
##### [text](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/text.rb#L16) ios
|
2554
2583
|
|
2555
2584
|
> def text(value)
|
2556
2585
|
|
@@ -2567,7 +2596,7 @@ __Returns:__
|
|
2567
2596
|
|
2568
2597
|
--
|
2569
2598
|
|
2570
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2599
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/text.rb#L30) ios
|
2571
2600
|
|
2572
2601
|
> def texts(value = false)
|
2573
2602
|
|
@@ -2584,7 +2613,7 @@ __Returns:__
|
|
2584
2613
|
|
2585
2614
|
--
|
2586
2615
|
|
2587
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2616
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/text.rb#L43) ios
|
2588
2617
|
|
2589
2618
|
> def first_text
|
2590
2619
|
|
@@ -2596,7 +2625,7 @@ __Returns:__
|
|
2596
2625
|
|
2597
2626
|
--
|
2598
2627
|
|
2599
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2628
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/text.rb#L49) ios
|
2600
2629
|
|
2601
2630
|
> def last_text
|
2602
2631
|
|
@@ -2608,7 +2637,7 @@ __Returns:__
|
|
2608
2637
|
|
2609
2638
|
--
|
2610
2639
|
|
2611
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2640
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/text.rb#L56) ios
|
2612
2641
|
|
2613
2642
|
> def text_exact(value)
|
2614
2643
|
|
@@ -2624,7 +2653,7 @@ __Returns:__
|
|
2624
2653
|
|
2625
2654
|
--
|
2626
2655
|
|
2627
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2656
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/text.rb#L67) ios
|
2628
2657
|
|
2629
2658
|
> def texts_exact(value)
|
2630
2659
|
|
@@ -2640,7 +2669,7 @@ __Returns:__
|
|
2640
2669
|
|
2641
2670
|
--
|
2642
2671
|
|
2643
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2672
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/alert.rb#L5) ios
|
2644
2673
|
|
2645
2674
|
> def alert_accept
|
2646
2675
|
|
@@ -2652,7 +2681,7 @@ __Returns:__
|
|
2652
2681
|
|
2653
2682
|
--
|
2654
2683
|
|
2655
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2684
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/alert.rb#L13) ios
|
2656
2685
|
|
2657
2686
|
> def alert_dismiss
|
2658
2687
|
|
@@ -2664,7 +2693,7 @@ __Returns:__
|
|
2664
2693
|
|
2665
2694
|
--
|
2666
2695
|
|
2667
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
2696
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/button.rb#L4) ios
|
2668
2697
|
|
2669
2698
|
> UIAButton = 'UIAButton'.freeze
|
2670
2699
|
|
@@ -2672,7 +2701,7 @@ __Returns:__
|
|
2672
2701
|
|
2673
2702
|
--
|
2674
2703
|
|
2675
|
-
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/
|
2704
|
+
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/button.rb#L5) ios
|
2676
2705
|
|
2677
2706
|
> XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze
|
2678
2707
|
|
@@ -2680,7 +2709,7 @@ __Returns:__
|
|
2680
2709
|
|
2681
2710
|
--
|
2682
2711
|
|
2683
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
2712
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/button.rb#L8) ios
|
2684
2713
|
|
2685
2714
|
> def button_class
|
2686
2715
|
|
@@ -2692,7 +2721,7 @@ __Returns:__
|
|
2692
2721
|
|
2693
2722
|
--
|
2694
2723
|
|
2695
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2724
|
+
##### [button](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/button.rb#L16) ios
|
2696
2725
|
|
2697
2726
|
> def button(value)
|
2698
2727
|
|
@@ -2709,7 +2738,7 @@ __Returns:__
|
|
2709
2738
|
|
2710
2739
|
--
|
2711
2740
|
|
2712
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2741
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/button.rb#L31) ios
|
2713
2742
|
|
2714
2743
|
> def buttons(value = false)
|
2715
2744
|
|
@@ -2726,7 +2755,7 @@ __Returns:__
|
|
2726
2755
|
|
2727
2756
|
--
|
2728
2757
|
|
2729
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2758
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/button.rb#L44) ios
|
2730
2759
|
|
2731
2760
|
> def first_button
|
2732
2761
|
|
@@ -2738,7 +2767,7 @@ __Returns:__
|
|
2738
2767
|
|
2739
2768
|
--
|
2740
2769
|
|
2741
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2770
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/button.rb#L52) ios
|
2742
2771
|
|
2743
2772
|
> def last_button
|
2744
2773
|
|
@@ -2752,7 +2781,7 @@ __Returns:__
|
|
2752
2781
|
|
2753
2782
|
--
|
2754
2783
|
|
2755
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2784
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/button.rb#L59) ios
|
2756
2785
|
|
2757
2786
|
> def button_exact(value)
|
2758
2787
|
|
@@ -2768,7 +2797,7 @@ __Returns:__
|
|
2768
2797
|
|
2769
2798
|
--
|
2770
2799
|
|
2771
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2800
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/button.rb#L70) ios
|
2772
2801
|
|
2773
2802
|
> def buttons_exact(value)
|
2774
2803
|
|
@@ -2784,7 +2813,7 @@ __Returns:__
|
|
2784
2813
|
|
2785
2814
|
--
|
2786
2815
|
|
2787
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
2816
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/mobile_methods.rb#L19) ios
|
2788
2817
|
|
2789
2818
|
> def uiautomation_find
|
2790
2819
|
|
@@ -2796,7 +2825,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2796
2825
|
|
2797
2826
|
--
|
2798
2827
|
|
2799
|
-
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/
|
2828
|
+
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/mobile_methods.rb#L19) ios
|
2800
2829
|
|
2801
2830
|
> def ios_predicate_string_find
|
2802
2831
|
|
@@ -2810,7 +2839,7 @@ find_element/s can be used with a [Predicates](https://developer.apple.com/libra
|
|
2810
2839
|
|
2811
2840
|
--
|
2812
2841
|
|
2813
|
-
##### [ios_class_chain_find](https://github.com/appium/ruby_lib/blob/
|
2842
|
+
##### [ios_class_chain_find](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/mobile_methods.rb#L39) ios
|
2814
2843
|
|
2815
2844
|
> def ios_class_chain_find
|
2816
2845
|
|
@@ -2828,7 +2857,7 @@ find_element/s can be used with a [class chain]( https://github.com/facebook/Web
|
|
2828
2857
|
|
2829
2858
|
--
|
2830
2859
|
|
2831
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2860
|
+
##### [find](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/generic.rb#L6) ios
|
2832
2861
|
|
2833
2862
|
> def find(value)
|
2834
2863
|
|
@@ -2844,7 +2873,7 @@ __Returns:__
|
|
2844
2873
|
|
2845
2874
|
--
|
2846
2875
|
|
2847
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2876
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/generic.rb#L17) ios
|
2848
2877
|
|
2849
2878
|
> def finds(value)
|
2850
2879
|
|
@@ -2860,7 +2889,7 @@ __Returns:__
|
|
2860
2889
|
|
2861
2890
|
--
|
2862
2891
|
|
2863
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2892
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/generic.rb#L29) ios
|
2864
2893
|
|
2865
2894
|
> def find_exact(value)
|
2866
2895
|
|
@@ -2876,7 +2905,7 @@ __Returns:__
|
|
2876
2905
|
|
2877
2906
|
--
|
2878
2907
|
|
2879
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2908
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/generic.rb#L40) ios
|
2880
2909
|
|
2881
2910
|
> def finds_exact(value)
|
2882
2911
|
|
@@ -2892,7 +2921,7 @@ __Returns:__
|
|
2892
2921
|
|
2893
2922
|
--
|
2894
2923
|
|
2895
|
-
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/
|
2924
|
+
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/generic.rb#L51) ios
|
2896
2925
|
|
2897
2926
|
> def raise_error_if_no_element(element)
|
2898
2927
|
|
@@ -2900,7 +2929,7 @@ __Returns:__
|
|
2900
2929
|
|
2901
2930
|
--
|
2902
2931
|
|
2903
|
-
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/
|
2932
|
+
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/generic.rb#L58) ios
|
2904
2933
|
|
2905
2934
|
> def select_visible_elements(elements)
|
2906
2935
|
|
@@ -2908,7 +2937,7 @@ Return visible elements.
|
|
2908
2937
|
|
2909
2938
|
--
|
2910
2939
|
|
2911
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2940
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2912
2941
|
|
2913
2942
|
> UIATextField = 'UIATextField'.freeze
|
2914
2943
|
|
@@ -2916,7 +2945,7 @@ Return visible elements.
|
|
2916
2945
|
|
2917
2946
|
--
|
2918
2947
|
|
2919
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2948
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2920
2949
|
|
2921
2950
|
> UIASecureTextField = 'UIASecureTextField'.freeze
|
2922
2951
|
|
@@ -2924,7 +2953,7 @@ Return visible elements.
|
|
2924
2953
|
|
2925
2954
|
--
|
2926
2955
|
|
2927
|
-
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/
|
2956
|
+
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L6) ios
|
2928
2957
|
|
2929
2958
|
> XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze
|
2930
2959
|
|
@@ -2932,7 +2961,7 @@ Return visible elements.
|
|
2932
2961
|
|
2933
2962
|
--
|
2934
2963
|
|
2935
|
-
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/
|
2964
|
+
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L7) ios
|
2936
2965
|
|
2937
2966
|
> XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze
|
2938
2967
|
|
@@ -2940,7 +2969,7 @@ Return visible elements.
|
|
2940
2969
|
|
2941
2970
|
--
|
2942
2971
|
|
2943
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
2972
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
2944
2973
|
|
2945
2974
|
> def text_field_class
|
2946
2975
|
|
@@ -2952,7 +2981,7 @@ __Returns:__
|
|
2952
2981
|
|
2953
2982
|
--
|
2954
2983
|
|
2955
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
2984
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L15) ios
|
2956
2985
|
|
2957
2986
|
> def secure_text_field_class
|
2958
2987
|
|
@@ -2964,7 +2993,7 @@ __Returns:__
|
|
2964
2993
|
|
2965
2994
|
--
|
2966
2995
|
|
2967
|
-
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/
|
2996
|
+
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L35) ios
|
2968
2997
|
|
2969
2998
|
> def _textfield_visible
|
2970
2999
|
|
@@ -2972,7 +3001,7 @@ Appium
|
|
2972
3001
|
|
2973
3002
|
--
|
2974
3003
|
|
2975
|
-
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/
|
3004
|
+
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L40) ios
|
2976
3005
|
|
2977
3006
|
> def _textfield_exact_string(value)
|
2978
3007
|
|
@@ -2980,7 +3009,7 @@ Appium
|
|
2980
3009
|
|
2981
3010
|
--
|
2982
3011
|
|
2983
|
-
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/
|
3012
|
+
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L47) ios
|
2984
3013
|
|
2985
3014
|
> def _textfield_contains_string(value)
|
2986
3015
|
|
@@ -2988,7 +3017,7 @@ Appium
|
|
2988
3017
|
|
2989
3018
|
--
|
2990
3019
|
|
2991
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
3020
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L60) ios
|
2992
3021
|
|
2993
3022
|
> def textfield(value)
|
2994
3023
|
|
@@ -3006,7 +3035,7 @@ __Returns:__
|
|
3006
3035
|
|
3007
3036
|
--
|
3008
3037
|
|
3009
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
3038
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L86) ios
|
3010
3039
|
|
3011
3040
|
> def textfields(value = false)
|
3012
3041
|
|
@@ -3023,7 +3052,7 @@ __Returns:__
|
|
3023
3052
|
|
3024
3053
|
--
|
3025
3054
|
|
3026
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
3055
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L100) ios
|
3027
3056
|
|
3028
3057
|
> def first_textfield
|
3029
3058
|
|
@@ -3035,7 +3064,7 @@ __Returns:__
|
|
3035
3064
|
|
3036
3065
|
--
|
3037
3066
|
|
3038
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
3067
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L110) ios
|
3039
3068
|
|
3040
3069
|
> def last_textfield
|
3041
3070
|
|
@@ -3047,7 +3076,7 @@ __Returns:__
|
|
3047
3076
|
|
3048
3077
|
--
|
3049
3078
|
|
3050
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
3079
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L123) ios
|
3051
3080
|
|
3052
3081
|
> def textfield_exact(value)
|
3053
3082
|
|
@@ -3063,7 +3092,7 @@ __Returns:__
|
|
3063
3092
|
|
3064
3093
|
--
|
3065
3094
|
|
3066
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
3095
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/element/textfield.rb#L134) ios
|
3067
3096
|
|
3068
3097
|
> def textfields_exact(value)
|
3069
3098
|
|
@@ -3079,7 +3108,7 @@ __Returns:__
|
|
3079
3108
|
|
3080
3109
|
--
|
3081
3110
|
|
3082
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
3111
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/xcuitest_gestures.rb#L11) ios
|
3083
3112
|
|
3084
3113
|
> def swipe(direction:, element: nil)
|
3085
3114
|
|
@@ -3093,7 +3122,7 @@ __Parameters:__
|
|
3093
3122
|
|
3094
3123
|
--
|
3095
3124
|
|
3096
|
-
##### [scroll](https://github.com/appium/ruby_lib/blob/
|
3125
|
+
##### [scroll](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/xcuitest_gestures.rb#L31) ios
|
3097
3126
|
|
3098
3127
|
> def scroll(direction:, name: nil, element: nil, to_visible: nil, predicate_string: nil)
|
3099
3128
|
|
@@ -3107,7 +3136,7 @@ __Parameters:__
|
|
3107
3136
|
|
3108
3137
|
--
|
3109
3138
|
|
3110
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
3139
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/xcuitest_gestures.rb#L50) ios
|
3111
3140
|
|
3112
3141
|
> def pinch(scale:, velocity: 1.0, element: nil)
|
3113
3142
|
|
@@ -3123,7 +3152,7 @@ __Parameters:__
|
|
3123
3152
|
|
3124
3153
|
--
|
3125
3154
|
|
3126
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
3155
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/xcuitest_gestures.rb#L67) ios
|
3127
3156
|
|
3128
3157
|
> def double_tap(x: nil, y: nil, element: nil)
|
3129
3158
|
|
@@ -3139,7 +3168,7 @@ __Parameters:__
|
|
3139
3168
|
|
3140
3169
|
--
|
3141
3170
|
|
3142
|
-
##### [touch_and_hold](https://github.com/appium/ruby_lib/blob/
|
3171
|
+
##### [touch_and_hold](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/xcuitest_gestures.rb#L85) ios
|
3143
3172
|
|
3144
3173
|
> def touch_and_hold(x: nil, y: nil, element: nil, duration: 1.0)
|
3145
3174
|
|
@@ -3157,7 +3186,7 @@ __Parameters:__
|
|
3157
3186
|
|
3158
3187
|
--
|
3159
3188
|
|
3160
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
3189
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/xcuitest_gestures.rb#L99) ios
|
3161
3190
|
|
3162
3191
|
> def two_finger_tap(element:)
|
3163
3192
|
|
@@ -3173,7 +3202,7 @@ two_finger_tap element: find_element(:accessibility_id, "some item")
|
|
3173
3202
|
|
3174
3203
|
--
|
3175
3204
|
|
3176
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
3205
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/xcuitest_gestures.rb#L116) ios
|
3177
3206
|
|
3178
3207
|
> def tap(x:, y:, element: nil)
|
3179
3208
|
|
@@ -3189,7 +3218,7 @@ __Parameters:__
|
|
3189
3218
|
|
3190
3219
|
--
|
3191
3220
|
|
3192
|
-
##### [drag_from_to_for_duration](https://github.com/appium/ruby_lib/blob/
|
3221
|
+
##### [drag_from_to_for_duration](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/xcuitest_gestures.rb#L138) ios
|
3193
3222
|
|
3194
3223
|
> def drag_from_to_for_duration(from_x:, from_y:, to_x:, to_y:, duration: 1.0, element: nil)
|
3195
3224
|
|
@@ -3212,7 +3241,7 @@ drag point should be before to start dragging. Mandatory parameter
|
|
3212
3241
|
|
3213
3242
|
--
|
3214
3243
|
|
3215
|
-
##### [select_picker_wheel](https://github.com/appium/ruby_lib/blob/
|
3244
|
+
##### [select_picker_wheel](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/xcuitest_gestures.rb#L157) ios
|
3216
3245
|
|
3217
3246
|
> def select_picker_wheel(element:, order:, offset: nil)
|
3218
3247
|
|
@@ -3229,7 +3258,7 @@ __Parameters:__
|
|
3229
3258
|
|
3230
3259
|
--
|
3231
3260
|
|
3232
|
-
##### [alert](https://github.com/appium/ruby_lib/blob/
|
3261
|
+
##### [alert](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/ios/xcuitest_gestures.rb#L176) ios
|
3233
3262
|
|
3234
3263
|
> def alert(action:, button_label: nil)
|
3235
3264
|
|
@@ -3244,7 +3273,7 @@ This is an optional parameter and is only valid in combination with accept and d
|
|
3244
3273
|
|
3245
3274
|
--
|
3246
3275
|
|
3247
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
3276
|
+
##### [value](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/patch.rb#L12)
|
3248
3277
|
|
3249
3278
|
> def value
|
3250
3279
|
|
@@ -3254,7 +3283,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
3254
3283
|
|
3255
3284
|
--
|
3256
3285
|
|
3257
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
3286
|
+
##### [name](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/patch.rb#L19)
|
3258
3287
|
|
3259
3288
|
> def name
|
3260
3289
|
|
@@ -3264,7 +3293,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
3264
3293
|
|
3265
3294
|
--
|
3266
3295
|
|
3267
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
3296
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/patch.rb#L30)
|
3268
3297
|
|
3269
3298
|
> def location_rel
|
3270
3299
|
|
@@ -3274,15 +3303,13 @@ For use with mobile tap.
|
|
3274
3303
|
execute_script 'mobile: tap', :x => 0.0, :y => 0.98
|
3275
3304
|
```
|
3276
3305
|
|
3277
|
-
https://github.com/appium/appium/wiki/Automating-mobile-gestures
|
3278
|
-
|
3279
3306
|
__Returns:__
|
3280
3307
|
|
3281
3308
|
[OpenStruct] the relative x, y in a struct. ex: { x: 0.50, y: 0.20 }
|
3282
3309
|
|
3283
3310
|
--
|
3284
3311
|
|
3285
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
3312
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/patch.rb#L162)
|
3286
3313
|
|
3287
3314
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
3288
3315
|
|
@@ -3290,7 +3317,7 @@ __Returns:__
|
|
3290
3317
|
|
3291
3318
|
--
|
3292
3319
|
|
3293
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
3320
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/bc50f6f1315fb3238d9e7614cf2545d06d979ae7/lib/appium_lib/common/patch.rb#L165)
|
3294
3321
|
|
3295
3322
|
> def patch_remote_driver_commands
|
3296
3323
|
|