appium_lib 1.0.0 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Rakefile +48 -14
- data/android_tests/Rakefile +5 -2
- data/android_tests/api.apk +0 -0
- data/android_tests/lib/android/specs/android/element/alert.rb +1 -1
- data/android_tests/lib/android/specs/android/element/button.rb +1 -4
- data/android_tests/lib/android/specs/android/element/text.rb +15 -18
- data/android_tests/lib/android/specs/android/element/textfield.rb +1 -4
- data/android_tests/lib/android/specs/android/helper.rb +4 -6
- data/android_tests/lib/android/specs/common/device.rb +16 -6
- data/android_tests/lib/android/specs/common/helper.rb +6 -6
- data/android_tests/lib/android/specs/common/patch.rb +3 -3
- data/android_tests/lib/android/specs/driver.rb +1 -1
- data/appium_lib.gemspec +11 -11
- data/docs/android_docs.md +193 -210
- data/docs/ios_docs.md +505 -177
- data/docs/migration.md +27 -0
- data/docs_gen/make_docs.rb +17 -17
- data/ios_tests/Rakefile +6 -3
- data/ios_tests/lib/ios/specs/common/helper.rb +1 -1
- data/ios_tests/lib/ios/specs/common/patch.rb +2 -2
- data/ios_tests/lib/ios/specs/device/device.rb +3 -2
- data/ios_tests/lib/ios/specs/device/multi_touch.rb +1 -1
- data/ios_tests/lib/ios/specs/device/touch_actions.rb +2 -2
- data/ios_tests/lib/ios/specs/driver.rb +5 -5
- data/ios_tests/lib/ios/specs/ios/element/alert.rb +5 -5
- data/ios_tests/lib/ios/specs/ios/element/button.rb +2 -5
- data/ios_tests/lib/ios/specs/ios/element/text.rb +21 -21
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +1 -8
- data/ios_tests/lib/ios/specs/ios/helper.rb +2 -2
- data/ios_tests/lib/ios/specs/ios/patch.rb +1 -1
- data/ios_tests/lib/run.rb +1 -1
- data/ios_tests/upload/sauce_storage.rb +13 -12
- data/ios_tests/upload/upload.rb +1 -1
- data/lib/appium_lib/android/dynamic.rb +31 -30
- data/lib/appium_lib/android/element/button.rb +7 -11
- data/lib/appium_lib/android/element/generic.rb +5 -5
- data/lib/appium_lib/android/element/text.rb +8 -12
- data/lib/appium_lib/android/element/textfield.rb +3 -7
- data/lib/appium_lib/android/helper.rb +46 -10
- data/lib/appium_lib/common/helper.rb +4 -2
- data/lib/appium_lib/common/patch.rb +1 -1
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +34 -27
- data/lib/appium_lib/device/multi_touch.rb +1 -1
- data/lib/appium_lib/device/touch_actions.rb +30 -28
- data/lib/appium_lib/driver.rb +3 -3
- data/lib/appium_lib/ios/element/button.rb +4 -8
- data/lib/appium_lib/ios/element/text.rb +8 -12
- data/lib/appium_lib/ios/element/textfield.rb +3 -7
- data/lib/appium_lib/ios/helper.rb +70 -40
- data/readme.md +6 -70
- data/release_notes.md +26 -0
- metadata +3 -2
data/docs/ios_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L71)
|
2
2
|
|
3
3
|
> def self.load_appium_txt opts={}
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L141)
|
31
31
|
|
32
32
|
> def self.symbolize_keys hash
|
33
33
|
|
@@ -38,7 +38,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
38
38
|
|
39
39
|
--
|
40
40
|
|
41
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
41
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L151)
|
42
42
|
|
43
43
|
> def self.promote_singleton_appium_methods main_module
|
44
44
|
|
@@ -46,7 +46,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
46
46
|
|
47
47
|
--
|
48
48
|
|
49
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
49
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L180)
|
50
50
|
|
51
51
|
> def self.promote_appium_methods class_array
|
52
52
|
|
@@ -64,7 +64,7 @@ __Parameters:__
|
|
64
64
|
|
65
65
|
--
|
66
66
|
|
67
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
67
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L213)
|
68
68
|
|
69
69
|
> def global_webdriver_http_sleep
|
70
70
|
|
@@ -72,7 +72,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
72
72
|
|
73
73
|
--
|
74
74
|
|
75
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
75
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L213)
|
76
76
|
|
77
77
|
> def global_webdriver_http_sleep=(value)
|
78
78
|
|
@@ -80,7 +80,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
80
80
|
|
81
81
|
--
|
82
82
|
|
83
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
83
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L234)
|
84
84
|
|
85
85
|
> def initialize opts={}
|
86
86
|
|
@@ -111,7 +111,7 @@ __Returns:__
|
|
111
111
|
|
112
112
|
--
|
113
113
|
|
114
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
114
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L308)
|
115
115
|
|
116
116
|
> def driver_attributes
|
117
117
|
|
@@ -119,7 +119,7 @@ Returns a hash of the driver attributes
|
|
119
119
|
|
120
120
|
--
|
121
121
|
|
122
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
122
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L328)
|
123
123
|
|
124
124
|
> def device_is_android?
|
125
125
|
|
@@ -131,7 +131,7 @@ __Returns:__
|
|
131
131
|
|
132
132
|
--
|
133
133
|
|
134
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
134
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L344)
|
135
135
|
|
136
136
|
> def appium_server_version
|
137
137
|
|
@@ -152,7 +152,7 @@ __Returns:__
|
|
152
152
|
|
153
153
|
--
|
154
154
|
|
155
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
155
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L350)
|
156
156
|
|
157
157
|
> def self.absolute_app_path app_path
|
158
158
|
|
@@ -164,7 +164,7 @@ __Returns:__
|
|
164
164
|
|
165
165
|
--
|
166
166
|
|
167
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
167
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L374)
|
168
168
|
|
169
169
|
> def server_url
|
170
170
|
|
@@ -176,7 +176,7 @@ __Returns:__
|
|
176
176
|
|
177
177
|
--
|
178
178
|
|
179
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
179
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L385)
|
180
180
|
|
181
181
|
> def restart
|
182
182
|
|
@@ -188,7 +188,7 @@ __Returns:__
|
|
188
188
|
|
189
189
|
--
|
190
190
|
|
191
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
191
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L392)
|
192
192
|
|
193
193
|
> def driver
|
194
194
|
|
@@ -200,7 +200,7 @@ __Returns:__
|
|
200
200
|
|
201
201
|
--
|
202
202
|
|
203
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
203
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L402)
|
204
204
|
|
205
205
|
> def screenshot png_save_path
|
206
206
|
|
@@ -218,7 +218,7 @@ __Returns:__
|
|
218
218
|
|
219
219
|
--
|
220
220
|
|
221
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
221
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L409)
|
222
222
|
|
223
223
|
> def driver_quit
|
224
224
|
|
@@ -230,7 +230,7 @@ __Returns:__
|
|
230
230
|
|
231
231
|
--
|
232
232
|
|
233
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
233
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L417)
|
234
234
|
|
235
235
|
> def start_driver
|
236
236
|
|
@@ -242,7 +242,7 @@ __Returns:__
|
|
242
242
|
|
243
243
|
--
|
244
244
|
|
245
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
245
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L443)
|
246
246
|
|
247
247
|
> def no_wait
|
248
248
|
|
@@ -250,7 +250,7 @@ Set implicit wait and default_wait to zero.
|
|
250
250
|
|
251
251
|
--
|
252
252
|
|
253
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
253
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L462)
|
254
254
|
|
255
255
|
> def set_wait timeout=nil
|
256
256
|
|
@@ -275,7 +275,7 @@ __Returns:__
|
|
275
275
|
|
276
276
|
--
|
277
277
|
|
278
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
278
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L480)
|
279
279
|
|
280
280
|
> def default_wait
|
281
281
|
|
@@ -288,7 +288,7 @@ __Returns:__
|
|
288
288
|
|
289
289
|
--
|
290
290
|
|
291
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
291
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L496)
|
292
292
|
|
293
293
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
294
294
|
|
@@ -314,7 +314,7 @@ __Returns:__
|
|
314
314
|
|
315
315
|
--
|
316
316
|
|
317
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
317
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L520)
|
318
318
|
|
319
319
|
> def execute_script script, *args
|
320
320
|
|
@@ -332,7 +332,7 @@ __Returns:__
|
|
332
332
|
|
333
333
|
--
|
334
334
|
|
335
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
335
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L528)
|
336
336
|
|
337
337
|
> def find_elements *args
|
338
338
|
|
@@ -348,7 +348,7 @@ __Returns:__
|
|
348
348
|
|
349
349
|
--
|
350
350
|
|
351
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
351
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L536)
|
352
352
|
|
353
353
|
> def find_element *args
|
354
354
|
|
@@ -364,7 +364,7 @@ __Returns:__
|
|
364
364
|
|
365
365
|
--
|
366
366
|
|
367
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
367
|
+
##### [x](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/driver.rb#L543)
|
368
368
|
|
369
369
|
> def x
|
370
370
|
|
@@ -377,7 +377,7 @@ __Returns:__
|
|
377
377
|
|
378
378
|
--
|
379
379
|
|
380
|
-
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/
|
380
|
+
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L7)
|
381
381
|
|
382
382
|
> NoArgMethods = {
|
383
383
|
|
@@ -385,7 +385,7 @@ __Returns:__
|
|
385
385
|
|
386
386
|
--
|
387
387
|
|
388
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
388
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L22)
|
389
389
|
|
390
390
|
> def app_strings
|
391
391
|
|
@@ -396,7 +396,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
396
396
|
|
397
397
|
--
|
398
398
|
|
399
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
399
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L28)
|
400
400
|
|
401
401
|
> def background_app
|
402
402
|
|
@@ -405,7 +405,7 @@ This is a blocking application
|
|
405
405
|
|
406
406
|
--
|
407
407
|
|
408
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
408
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L33)
|
409
409
|
|
410
410
|
> def current_activity
|
411
411
|
|
@@ -413,7 +413,7 @@ This is a blocking application
|
|
413
413
|
|
414
414
|
--
|
415
415
|
|
416
|
-
##### [launch](https://github.com/appium/ruby_lib/blob/
|
416
|
+
##### [launch](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L35)
|
417
417
|
|
418
418
|
> def launch
|
419
419
|
|
@@ -421,7 +421,7 @@ Start the simulator and applicaton configured with desired capabilities
|
|
421
421
|
|
422
422
|
--
|
423
423
|
|
424
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
424
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L38)
|
425
425
|
|
426
426
|
> def reset
|
427
427
|
|
@@ -429,7 +429,7 @@ Reset the device, relaunching the application.
|
|
429
429
|
|
430
430
|
--
|
431
431
|
|
432
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
432
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L41)
|
433
433
|
|
434
434
|
> def shake
|
435
435
|
|
@@ -437,7 +437,7 @@ Cause the device to shake
|
|
437
437
|
|
438
438
|
--
|
439
439
|
|
440
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
440
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L44)
|
441
441
|
|
442
442
|
> def toggle_flight_mode
|
443
443
|
|
@@ -445,7 +445,7 @@ toggle flight mode on or off
|
|
445
445
|
|
446
446
|
--
|
447
447
|
|
448
|
-
##### [complex_find](https://github.com/appium/ruby_lib/blob/
|
448
|
+
##### [complex_find](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L47)
|
449
449
|
|
450
450
|
> def complex_find
|
451
451
|
|
@@ -466,7 +466,7 @@ __Parameters:__
|
|
466
466
|
|
467
467
|
--
|
468
468
|
|
469
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
469
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L59)
|
470
470
|
|
471
471
|
> def hide_keyboard
|
472
472
|
|
@@ -479,7 +479,7 @@ Defaults to 'Done'.
|
|
479
479
|
|
480
480
|
--
|
481
481
|
|
482
|
-
##### [key_event](https://github.com/appium/ruby_lib/blob/
|
482
|
+
##### [key_event](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L68)
|
483
483
|
|
484
484
|
> def key_event
|
485
485
|
|
@@ -493,7 +493,7 @@ __Parameters:__
|
|
493
493
|
|
494
494
|
--
|
495
495
|
|
496
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
496
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L73)
|
497
497
|
|
498
498
|
> def push_file
|
499
499
|
|
@@ -507,7 +507,7 @@ __Parameters:__
|
|
507
507
|
|
508
508
|
--
|
509
509
|
|
510
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
510
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L78)
|
511
511
|
|
512
512
|
> def pull_file
|
513
513
|
|
@@ -524,7 +524,7 @@ __Parameters:__
|
|
524
524
|
|
525
525
|
--
|
526
526
|
|
527
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
527
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L283)
|
528
528
|
|
529
529
|
> def extend_search_contexts
|
530
530
|
|
@@ -532,7 +532,7 @@ __Parameters:__
|
|
532
532
|
|
533
533
|
--
|
534
534
|
|
535
|
-
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/
|
535
|
+
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L283)
|
536
536
|
|
537
537
|
> def accessiblity_id_find
|
538
538
|
|
@@ -544,7 +544,7 @@ find_element/s with their accessibility_id
|
|
544
544
|
|
545
545
|
--
|
546
546
|
|
547
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
547
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L289)
|
548
548
|
|
549
549
|
> def add_touch_actions
|
550
550
|
|
@@ -552,13 +552,13 @@ find_element/s with their accessibility_id
|
|
552
552
|
|
553
553
|
--
|
554
554
|
|
555
|
-
##### [
|
555
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L313)
|
556
556
|
|
557
|
-
> def
|
557
|
+
> def set_context
|
558
558
|
|
559
559
|
Change the context to the given context.
|
560
560
|
```ruby
|
561
|
-
|
561
|
+
set_context "NATIVE_APP"
|
562
562
|
```
|
563
563
|
|
564
564
|
__Parameters:__
|
@@ -567,7 +567,7 @@ __Parameters:__
|
|
567
567
|
|
568
568
|
--
|
569
569
|
|
570
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
570
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L321)
|
571
571
|
|
572
572
|
> def current_context
|
573
573
|
|
@@ -579,7 +579,7 @@ __Returns:__
|
|
579
579
|
|
580
580
|
--
|
581
581
|
|
582
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
582
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L324)
|
583
583
|
|
584
584
|
> def available_contexts
|
585
585
|
|
@@ -591,7 +591,7 @@ __Returns:__
|
|
591
591
|
|
592
592
|
--
|
593
593
|
|
594
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
594
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L334)
|
595
595
|
|
596
596
|
> def within_context(context)
|
597
597
|
|
@@ -607,15 +607,15 @@ __Parameters:__
|
|
607
607
|
|
608
608
|
--
|
609
609
|
|
610
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
610
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/device.rb#L342)
|
611
611
|
|
612
612
|
> def switch_to_default_context
|
613
613
|
|
614
|
-
Change to the default context. This is equivalent to `
|
614
|
+
Change to the default context. This is equivalent to `set_context nil`.
|
615
615
|
|
616
616
|
--
|
617
617
|
|
618
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
618
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/multi_touch.rb#L30)
|
619
619
|
|
620
620
|
> def pinch(percentage=25, auto_perform=true)
|
621
621
|
|
@@ -634,7 +634,7 @@ __Parameters:__
|
|
634
634
|
|
635
635
|
--
|
636
636
|
|
637
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
637
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/multi_touch.rb#L58)
|
638
638
|
|
639
639
|
> def zoom(percentage=200, auto_perform=true)
|
640
640
|
|
@@ -653,7 +653,7 @@ __Parameters:__
|
|
653
653
|
|
654
654
|
--
|
655
655
|
|
656
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
656
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/multi_touch.rb#L79)
|
657
657
|
|
658
658
|
> def initialize
|
659
659
|
|
@@ -665,7 +665,7 @@ __Returns:__
|
|
665
665
|
|
666
666
|
--
|
667
667
|
|
668
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
668
|
+
##### [add](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/multi_touch.rb#L85)
|
669
669
|
|
670
670
|
> def add(chain)
|
671
671
|
|
@@ -677,7 +677,7 @@ __Parameters:__
|
|
677
677
|
|
678
678
|
--
|
679
679
|
|
680
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
680
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/multi_touch.rb#L90)
|
681
681
|
|
682
682
|
> def perform
|
683
683
|
|
@@ -685,15 +685,15 @@ Ask Appium to perform the actions
|
|
685
685
|
|
686
686
|
--
|
687
687
|
|
688
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
688
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L12)
|
689
689
|
|
690
|
-
> ACTIONS
|
690
|
+
> ACTIONS = [:move_to, :long_press, :press, :release, :tap, :wait, :perform]
|
691
691
|
|
692
692
|
|
693
693
|
|
694
694
|
--
|
695
695
|
|
696
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
696
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L13)
|
697
697
|
|
698
698
|
> COMPLEX_ACTIONS = [:swipe]
|
699
699
|
|
@@ -701,7 +701,7 @@ Ask Appium to perform the actions
|
|
701
701
|
|
702
702
|
--
|
703
703
|
|
704
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
704
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L27)
|
705
705
|
|
706
706
|
> def actions
|
707
707
|
|
@@ -709,7 +709,7 @@ Returns the value of attribute actions
|
|
709
709
|
|
710
710
|
--
|
711
711
|
|
712
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
712
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L29)
|
713
713
|
|
714
714
|
> def initialize
|
715
715
|
|
@@ -721,7 +721,7 @@ __Returns:__
|
|
721
721
|
|
722
722
|
--
|
723
723
|
|
724
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
724
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L37)
|
725
725
|
|
726
726
|
> def move_to(opts)
|
727
727
|
|
@@ -733,25 +733,25 @@ __Parameters:__
|
|
733
733
|
|
734
734
|
--
|
735
735
|
|
736
|
-
##### [
|
736
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L47)
|
737
737
|
|
738
|
-
> def
|
738
|
+
> def long_press(opts)
|
739
739
|
|
740
740
|
Press down for a specific duration.
|
741
741
|
|
742
742
|
__Parameters:__
|
743
743
|
|
744
|
-
[
|
744
|
+
[Hash] element - a customizable set of options
|
745
745
|
|
746
|
-
[
|
746
|
+
[Hash] x - a customizable set of options
|
747
747
|
|
748
|
-
[
|
748
|
+
[Hash] y - a customizable set of options
|
749
749
|
|
750
|
-
[
|
750
|
+
[Hash] duration - a customizable set of options
|
751
751
|
|
752
752
|
--
|
753
753
|
|
754
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
754
|
+
##### [press](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L59)
|
755
755
|
|
756
756
|
> def press(opts)
|
757
757
|
|
@@ -764,7 +764,7 @@ __Parameters:__
|
|
764
764
|
|
765
765
|
--
|
766
766
|
|
767
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
767
|
+
##### [release](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L70)
|
768
768
|
|
769
769
|
> def release(opts=nil)
|
770
770
|
|
@@ -776,7 +776,7 @@ __Parameters:__
|
|
776
776
|
|
777
777
|
--
|
778
778
|
|
779
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
779
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L81)
|
780
780
|
|
781
781
|
> def tap(opts)
|
782
782
|
|
@@ -788,19 +788,19 @@ __Parameters:__
|
|
788
788
|
|
789
789
|
--
|
790
790
|
|
791
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
791
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L90)
|
792
792
|
|
793
|
-
> def wait(
|
793
|
+
> def wait(milliseconds)
|
794
794
|
|
795
|
-
Pause for a number of
|
795
|
+
Pause for a number of milliseconds before the next action
|
796
796
|
|
797
797
|
__Parameters:__
|
798
798
|
|
799
|
-
[integer]
|
799
|
+
[integer] milliseconds - Number of milliseconds to pause for
|
800
800
|
|
801
801
|
--
|
802
802
|
|
803
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
803
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L101)
|
804
804
|
|
805
805
|
> def swipe(opts)
|
806
806
|
|
@@ -812,7 +812,7 @@ __Parameters:__
|
|
812
812
|
|
813
813
|
--
|
814
814
|
|
815
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
815
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L116)
|
816
816
|
|
817
817
|
> def perform
|
818
818
|
|
@@ -820,7 +820,7 @@ Ask the driver to perform all actions in this action chain.
|
|
820
820
|
|
821
821
|
--
|
822
822
|
|
823
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
823
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L122)
|
824
824
|
|
825
825
|
> def cancel
|
826
826
|
|
@@ -828,7 +828,7 @@ Does nothing, currently.
|
|
828
828
|
|
829
829
|
--
|
830
830
|
|
831
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
831
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L130)
|
832
832
|
|
833
833
|
> def chain_method(method, args=nil)
|
834
834
|
|
@@ -836,7 +836,7 @@ Does nothing, currently.
|
|
836
836
|
|
837
837
|
--
|
838
838
|
|
839
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
839
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/device/touch_actions.rb#L139)
|
840
840
|
|
841
841
|
> def args_with_ele_ref(args)
|
842
842
|
|
@@ -844,7 +844,7 @@ Does nothing, currently.
|
|
844
844
|
|
845
845
|
--
|
846
846
|
|
847
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
847
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L33)
|
848
848
|
|
849
849
|
> def wait max_wait=30, interval=0.5, &block
|
850
850
|
|
@@ -871,7 +871,7 @@ __Returns:__
|
|
871
871
|
|
872
872
|
--
|
873
873
|
|
874
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
874
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L49)
|
875
875
|
|
876
876
|
> def ignore &block
|
877
877
|
|
@@ -879,7 +879,7 @@ Return block.call and ignore any exceptions.
|
|
879
879
|
|
880
880
|
--
|
881
881
|
|
882
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
882
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L64)
|
883
883
|
|
884
884
|
> def wait_true max_wait=30, interval=0.5, &block
|
885
885
|
|
@@ -902,7 +902,7 @@ __Returns:__
|
|
902
902
|
|
903
903
|
--
|
904
904
|
|
905
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
905
|
+
##### [back](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L81)
|
906
906
|
|
907
907
|
> def back
|
908
908
|
|
@@ -914,7 +914,7 @@ __Returns:__
|
|
914
914
|
|
915
915
|
--
|
916
916
|
|
917
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
917
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L86)
|
918
918
|
|
919
919
|
> def session_id
|
920
920
|
|
@@ -922,7 +922,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
922
922
|
|
923
923
|
--
|
924
924
|
|
925
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
925
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L94)
|
926
926
|
|
927
927
|
> def xpath xpath_str
|
928
928
|
|
@@ -938,7 +938,7 @@ __Returns:__
|
|
938
938
|
|
939
939
|
--
|
940
940
|
|
941
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
941
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L102)
|
942
942
|
|
943
943
|
> def xpaths xpath_str
|
944
944
|
|
@@ -954,7 +954,7 @@ __Returns:__
|
|
954
954
|
|
955
955
|
--
|
956
956
|
|
957
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
957
|
+
##### [source](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L108)
|
958
958
|
|
959
959
|
> def source
|
960
960
|
|
@@ -966,7 +966,7 @@ __Returns:__
|
|
966
966
|
|
967
967
|
--
|
968
968
|
|
969
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
969
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L118)
|
970
970
|
|
971
971
|
> def get_source
|
972
972
|
|
@@ -979,7 +979,7 @@ __Returns:__
|
|
979
979
|
|
980
980
|
--
|
981
981
|
|
982
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
982
|
+
##### [result](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L125)
|
983
983
|
|
984
984
|
> def result
|
985
985
|
|
@@ -987,7 +987,7 @@ Returns the value of attribute result
|
|
987
987
|
|
988
988
|
--
|
989
989
|
|
990
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
990
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L127)
|
991
991
|
|
992
992
|
> def initialize
|
993
993
|
|
@@ -999,7 +999,7 @@ __Returns:__
|
|
999
999
|
|
1000
1000
|
--
|
1001
1001
|
|
1002
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1002
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L131)
|
1003
1003
|
|
1004
1004
|
> def reset
|
1005
1005
|
|
@@ -1007,7 +1007,7 @@ __Returns:__
|
|
1007
1007
|
|
1008
1008
|
--
|
1009
1009
|
|
1010
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1010
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L136)
|
1011
1011
|
|
1012
1012
|
> def start_element name, attrs = []
|
1013
1013
|
|
@@ -1015,7 +1015,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1015
1015
|
|
1016
1016
|
--
|
1017
1017
|
|
1018
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1018
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L142)
|
1019
1019
|
|
1020
1020
|
> def formatted_result
|
1021
1021
|
|
@@ -1023,15 +1023,15 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1023
1023
|
|
1024
1024
|
--
|
1025
1025
|
|
1026
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1026
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L153)
|
1027
1027
|
|
1028
1028
|
> def get_page_class
|
1029
1029
|
|
1030
|
-
Returns a string of class counts.
|
1030
|
+
Returns a string of class counts of visible elements.
|
1031
1031
|
|
1032
1032
|
--
|
1033
1033
|
|
1034
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1034
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L164)
|
1035
1035
|
|
1036
1036
|
> def page_class
|
1037
1037
|
|
@@ -1040,7 +1040,7 @@ Useful for appium_console.
|
|
1040
1040
|
|
1041
1041
|
--
|
1042
1042
|
|
1043
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1043
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L174)
|
1044
1044
|
|
1045
1045
|
> def px_to_window_rel opts={}
|
1046
1046
|
|
@@ -1052,7 +1052,7 @@ px_to_window_rel x: 50, y: 150
|
|
1052
1052
|
|
1053
1053
|
--
|
1054
1054
|
|
1055
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1055
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L191)
|
1056
1056
|
|
1057
1057
|
> def xml_keys target
|
1058
1058
|
|
@@ -1068,7 +1068,7 @@ __Returns:__
|
|
1068
1068
|
|
1069
1069
|
--
|
1070
1070
|
|
1071
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1071
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L199)
|
1072
1072
|
|
1073
1073
|
> def xml_values target
|
1074
1074
|
|
@@ -1084,7 +1084,7 @@ __Returns:__
|
|
1084
1084
|
|
1085
1085
|
--
|
1086
1086
|
|
1087
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1087
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/helper.rb#L207)
|
1088
1088
|
|
1089
1089
|
> def resolve_id id
|
1090
1090
|
|
@@ -1100,7 +1100,7 @@ __Returns:__
|
|
1100
1100
|
|
1101
1101
|
--
|
1102
1102
|
|
1103
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1103
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/element/window.rb#L5)
|
1104
1104
|
|
1105
1105
|
> def window_size
|
1106
1106
|
|
@@ -1108,7 +1108,368 @@ Get the window's size
|
|
1108
1108
|
|
1109
1109
|
--
|
1110
1110
|
|
1111
|
-
##### [
|
1111
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L8) ios
|
1112
|
+
|
1113
|
+
> def ios_password length=1
|
1114
|
+
|
1115
|
+
iOS only. On Android uiautomator always returns an empty string for EditText password.
|
1116
|
+
|
1117
|
+
Password character returned from value of UIASecureTextField
|
1118
|
+
|
1119
|
+
__Parameters:__
|
1120
|
+
|
1121
|
+
[Integer] length - the length of the password to generate
|
1122
|
+
|
1123
|
+
__Returns:__
|
1124
|
+
|
1125
|
+
[String] the returned string is of size length
|
1126
|
+
|
1127
|
+
--
|
1128
|
+
|
1129
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L20) ios
|
1130
|
+
|
1131
|
+
> def get_page element=source_window(0), class_name=nil
|
1132
|
+
|
1133
|
+
Returns a string of interesting elements. iOS only.
|
1134
|
+
|
1135
|
+
Defaults to inspecting the 1st windows source only.
|
1136
|
+
use get_page(get_source) for all window sources
|
1137
|
+
|
1138
|
+
__Parameters:__
|
1139
|
+
|
1140
|
+
[Hash] element - a customizable set of options
|
1141
|
+
|
1142
|
+
[Hash] class_name - a customizable set of options
|
1143
|
+
|
1144
|
+
__Returns:__
|
1145
|
+
|
1146
|
+
[String]
|
1147
|
+
|
1148
|
+
--
|
1149
|
+
|
1150
|
+
##### [page](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L125) ios
|
1151
|
+
|
1152
|
+
> def page opts={}
|
1153
|
+
|
1154
|
+
Prints a string of interesting elements to the console.
|
1155
|
+
|
1156
|
+
Example
|
1157
|
+
|
1158
|
+
```ruby
|
1159
|
+
page class: :UIAButton # filter on buttons
|
1160
|
+
page window: 1 # show source for window 1
|
1161
|
+
page class: :UIAButton, window: 1
|
1162
|
+
```
|
1163
|
+
|
1164
|
+
__Parameters:__
|
1165
|
+
|
1166
|
+
[Hash] window - a customizable set of options
|
1167
|
+
|
1168
|
+
[Hash] class - a customizable set of options
|
1169
|
+
|
1170
|
+
__Returns:__
|
1171
|
+
|
1172
|
+
[void]
|
1173
|
+
|
1174
|
+
--
|
1175
|
+
|
1176
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L148) ios
|
1177
|
+
|
1178
|
+
> def source_window window_number=0
|
1179
|
+
|
1180
|
+
Gets the JSON source of window number
|
1181
|
+
|
1182
|
+
__Parameters:__
|
1183
|
+
|
1184
|
+
[Integer] window_number - the int index of the target window
|
1185
|
+
|
1186
|
+
__Returns:__
|
1187
|
+
|
1188
|
+
[JSON]
|
1189
|
+
|
1190
|
+
--
|
1191
|
+
|
1192
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L162) ios
|
1193
|
+
|
1194
|
+
> def page_window window_number=0
|
1195
|
+
|
1196
|
+
Prints parsed page source to console.
|
1197
|
+
|
1198
|
+
example: page_window 0
|
1199
|
+
|
1200
|
+
__Parameters:__
|
1201
|
+
|
1202
|
+
[Integer] window_number - the int index of the target window
|
1203
|
+
|
1204
|
+
__Returns:__
|
1205
|
+
|
1206
|
+
[void]
|
1207
|
+
|
1208
|
+
--
|
1209
|
+
|
1210
|
+
##### [id](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L170) ios
|
1211
|
+
|
1212
|
+
> def id id
|
1213
|
+
|
1214
|
+
Find by id
|
1215
|
+
|
1216
|
+
__Parameters:__
|
1217
|
+
|
1218
|
+
[String] id - the id to search for
|
1219
|
+
|
1220
|
+
__Returns:__
|
1221
|
+
|
1222
|
+
[Element]
|
1223
|
+
|
1224
|
+
--
|
1225
|
+
|
1226
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L180) ios
|
1227
|
+
|
1228
|
+
> def ios_version
|
1229
|
+
|
1230
|
+
Return the iOS version as an array of integers
|
1231
|
+
|
1232
|
+
__Returns:__
|
1233
|
+
|
1234
|
+
[Array<Integer>]
|
1235
|
+
|
1236
|
+
--
|
1237
|
+
|
1238
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L189) ios
|
1239
|
+
|
1240
|
+
> def ele_index class_name, index
|
1241
|
+
|
1242
|
+
Get the element of type class_name at matching index.
|
1243
|
+
|
1244
|
+
__Parameters:__
|
1245
|
+
|
1246
|
+
[String] class_name - the class name to find
|
1247
|
+
|
1248
|
+
[Integer] index - the index
|
1249
|
+
|
1250
|
+
__Returns:__
|
1251
|
+
|
1252
|
+
[Element]
|
1253
|
+
|
1254
|
+
--
|
1255
|
+
|
1256
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L207) ios
|
1257
|
+
|
1258
|
+
> def find_ele_by_attr class_name, attr, value
|
1259
|
+
|
1260
|
+
Find the first element exactly matching class and attribute value.
|
1261
|
+
|
1262
|
+
__Parameters:__
|
1263
|
+
|
1264
|
+
[String] class_name - the class name to search for
|
1265
|
+
|
1266
|
+
[String] attr - the attribute to inspect
|
1267
|
+
|
1268
|
+
[String] value - the expected value of the attribute
|
1269
|
+
|
1270
|
+
__Returns:__
|
1271
|
+
|
1272
|
+
[Element]
|
1273
|
+
|
1274
|
+
--
|
1275
|
+
|
1276
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L216) ios
|
1277
|
+
|
1278
|
+
> def find_eles_by_attr class_name, attr, value
|
1279
|
+
|
1280
|
+
Find all elements exactly matching class and attribute value.
|
1281
|
+
|
1282
|
+
__Parameters:__
|
1283
|
+
|
1284
|
+
[String] class_name - the class name to match
|
1285
|
+
|
1286
|
+
[String] attr - the attribute to compare
|
1287
|
+
|
1288
|
+
[String] value - the value of the attribute that the element must have
|
1289
|
+
|
1290
|
+
__Returns:__
|
1291
|
+
|
1292
|
+
[Array<Element>]
|
1293
|
+
|
1294
|
+
--
|
1295
|
+
|
1296
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L230) ios
|
1297
|
+
|
1298
|
+
> def find_ele_by_attr_include class_name, attr, value
|
1299
|
+
|
1300
|
+
Get the first tag by attribute that exactly matches value.
|
1301
|
+
|
1302
|
+
__Parameters:__
|
1303
|
+
|
1304
|
+
[String] class_name - the tag name to match
|
1305
|
+
|
1306
|
+
[String] attr - the attribute to compare
|
1307
|
+
|
1308
|
+
[String] value - the value of the attribute that the element must include
|
1309
|
+
|
1310
|
+
__Returns:__
|
1311
|
+
|
1312
|
+
[Element] the element of type tag who's attribute includes value
|
1313
|
+
|
1314
|
+
--
|
1315
|
+
|
1316
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L239) ios
|
1317
|
+
|
1318
|
+
> def find_eles_by_attr_include class_name, attr, value
|
1319
|
+
|
1320
|
+
Get tags by attribute that include value.
|
1321
|
+
|
1322
|
+
__Parameters:__
|
1323
|
+
|
1324
|
+
[String] class_name - the tag name to match
|
1325
|
+
|
1326
|
+
[String] attr - the attribute to compare
|
1327
|
+
|
1328
|
+
[String] value - the value of the attribute that the element must include
|
1329
|
+
|
1330
|
+
__Returns:__
|
1331
|
+
|
1332
|
+
[Array<Element>] the elements of type tag who's attribute includes value
|
1333
|
+
|
1334
|
+
--
|
1335
|
+
|
1336
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L246) ios
|
1337
|
+
|
1338
|
+
> def first_ele class_name
|
1339
|
+
|
1340
|
+
Get the first tag that matches class_name
|
1341
|
+
|
1342
|
+
__Parameters:__
|
1343
|
+
|
1344
|
+
[String] class_name - the tag to match
|
1345
|
+
|
1346
|
+
__Returns:__
|
1347
|
+
|
1348
|
+
[Element]
|
1349
|
+
|
1350
|
+
--
|
1351
|
+
|
1352
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L254) ios
|
1353
|
+
|
1354
|
+
> def last_ele class_name
|
1355
|
+
|
1356
|
+
Get the last tag that matches class_name
|
1357
|
+
|
1358
|
+
__Parameters:__
|
1359
|
+
|
1360
|
+
[String] class_name - the tag to match
|
1361
|
+
|
1362
|
+
__Returns:__
|
1363
|
+
|
1364
|
+
[Element]
|
1365
|
+
|
1366
|
+
--
|
1367
|
+
|
1368
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L262) ios
|
1369
|
+
|
1370
|
+
> def tag class_name
|
1371
|
+
|
1372
|
+
Returns the first element matching class_name
|
1373
|
+
|
1374
|
+
__Parameters:__
|
1375
|
+
|
1376
|
+
[String] class_name - the class_name to search for
|
1377
|
+
|
1378
|
+
__Returns:__
|
1379
|
+
|
1380
|
+
[Element]
|
1381
|
+
|
1382
|
+
--
|
1383
|
+
|
1384
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L270) ios
|
1385
|
+
|
1386
|
+
> def tags class_name
|
1387
|
+
|
1388
|
+
Returns all elements matching class_name
|
1389
|
+
|
1390
|
+
__Parameters:__
|
1391
|
+
|
1392
|
+
[String] class_name - the class_name to search for
|
1393
|
+
|
1394
|
+
__Returns:__
|
1395
|
+
|
1396
|
+
[Element]
|
1397
|
+
|
1398
|
+
--
|
1399
|
+
|
1400
|
+
##### [xpath_visible_contains](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L302) ios
|
1401
|
+
|
1402
|
+
> def xpath_visible_contains element, value
|
1403
|
+
|
1404
|
+
Find the first element that contains value
|
1405
|
+
|
1406
|
+
__Parameters:__
|
1407
|
+
|
1408
|
+
[String] element - the class name for the element
|
1409
|
+
|
1410
|
+
[String] value - the value to search for
|
1411
|
+
|
1412
|
+
__Returns:__
|
1413
|
+
|
1414
|
+
[Element]
|
1415
|
+
|
1416
|
+
--
|
1417
|
+
|
1418
|
+
##### [xpaths_visible_contains](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L310) ios
|
1419
|
+
|
1420
|
+
> def xpaths_visible_contains element, value
|
1421
|
+
|
1422
|
+
Find all elements containing value
|
1423
|
+
|
1424
|
+
__Parameters:__
|
1425
|
+
|
1426
|
+
[String] element - the class name for the element
|
1427
|
+
|
1428
|
+
[String] value - the value to search for
|
1429
|
+
|
1430
|
+
__Returns:__
|
1431
|
+
|
1432
|
+
[Array<Element>]
|
1433
|
+
|
1434
|
+
--
|
1435
|
+
|
1436
|
+
##### [xpath_visible_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L337) ios
|
1437
|
+
|
1438
|
+
> def xpath_visible_exact element, value
|
1439
|
+
|
1440
|
+
Find the first element exactly matching value
|
1441
|
+
|
1442
|
+
__Parameters:__
|
1443
|
+
|
1444
|
+
[String] element - the class name for the element
|
1445
|
+
|
1446
|
+
[String] value - the value to search for
|
1447
|
+
|
1448
|
+
__Returns:__
|
1449
|
+
|
1450
|
+
[Element]
|
1451
|
+
|
1452
|
+
--
|
1453
|
+
|
1454
|
+
##### [xpaths_visible_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/helper.rb#L345) ios
|
1455
|
+
|
1456
|
+
> def xpaths_visible_exact element, value
|
1457
|
+
|
1458
|
+
Find all elements exactly matching value
|
1459
|
+
|
1460
|
+
__Parameters:__
|
1461
|
+
|
1462
|
+
[String] element - the class name for the element
|
1463
|
+
|
1464
|
+
[String] value - the value to search for
|
1465
|
+
|
1466
|
+
__Returns:__
|
1467
|
+
|
1468
|
+
[Element]
|
1469
|
+
|
1470
|
+
--
|
1471
|
+
|
1472
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/text.rb#L4) ios
|
1112
1473
|
|
1113
1474
|
> UIAStaticText = 'UIAStaticText'
|
1114
1475
|
|
@@ -1116,9 +1477,9 @@ Get the window's size
|
|
1116
1477
|
|
1117
1478
|
--
|
1118
1479
|
|
1119
|
-
##### [
|
1480
|
+
##### [text](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/text.rb#L10) ios
|
1120
1481
|
|
1121
|
-
> def
|
1482
|
+
> def text value
|
1122
1483
|
|
1123
1484
|
Find the first UIAStaticText that contains value or by index.
|
1124
1485
|
If int then the UIAStaticText at that index is returned.
|
@@ -1133,11 +1494,12 @@ __Returns:__
|
|
1133
1494
|
|
1134
1495
|
--
|
1135
1496
|
|
1136
|
-
##### [
|
1497
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/text.rb#L19) ios
|
1137
1498
|
|
1138
|
-
> def
|
1499
|
+
> def texts value=false
|
1139
1500
|
|
1140
1501
|
Find all UIAStaticText containing value.
|
1502
|
+
If value is omitted, all UIAStaticTexts are returned
|
1141
1503
|
|
1142
1504
|
__Parameters:__
|
1143
1505
|
|
@@ -1149,9 +1511,9 @@ __Returns:__
|
|
1149
1511
|
|
1150
1512
|
--
|
1151
1513
|
|
1152
|
-
##### [
|
1514
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/text.rb#L26) ios
|
1153
1515
|
|
1154
|
-
> def
|
1516
|
+
> def first_text
|
1155
1517
|
|
1156
1518
|
Find the first UIAStaticText.
|
1157
1519
|
|
@@ -1161,9 +1523,9 @@ __Returns:__
|
|
1161
1523
|
|
1162
1524
|
--
|
1163
1525
|
|
1164
|
-
##### [
|
1526
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/text.rb#L32) ios
|
1165
1527
|
|
1166
|
-
> def
|
1528
|
+
> def last_text
|
1167
1529
|
|
1168
1530
|
Find the last UIAStaticText.
|
1169
1531
|
|
@@ -1173,9 +1535,9 @@ __Returns:__
|
|
1173
1535
|
|
1174
1536
|
--
|
1175
1537
|
|
1176
|
-
##### [
|
1538
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/text.rb#L39) ios
|
1177
1539
|
|
1178
|
-
> def
|
1540
|
+
> def text_exact value
|
1179
1541
|
|
1180
1542
|
Find the first UIAStaticText that exactly matches value.
|
1181
1543
|
|
@@ -1189,9 +1551,9 @@ __Returns:__
|
|
1189
1551
|
|
1190
1552
|
--
|
1191
1553
|
|
1192
|
-
##### [
|
1554
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/text.rb#L46) ios
|
1193
1555
|
|
1194
|
-
> def
|
1556
|
+
> def texts_exact value
|
1195
1557
|
|
1196
1558
|
Find all UIAStaticTexts that exactly match value.
|
1197
1559
|
|
@@ -1205,19 +1567,7 @@ __Returns:__
|
|
1205
1567
|
|
1206
1568
|
--
|
1207
1569
|
|
1208
|
-
##### [
|
1209
|
-
|
1210
|
-
> def e_s_texts
|
1211
|
-
|
1212
|
-
Find all UIAStaticTexts.
|
1213
|
-
|
1214
|
-
__Returns:__
|
1215
|
-
|
1216
|
-
[Array<UIAStaticText>]
|
1217
|
-
|
1218
|
-
--
|
1219
|
-
|
1220
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/ios/element/alert.rb#L5) ios
|
1570
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/alert.rb#L5) ios
|
1221
1571
|
|
1222
1572
|
> def alert_accept
|
1223
1573
|
|
@@ -1229,7 +1579,7 @@ __Returns:__
|
|
1229
1579
|
|
1230
1580
|
--
|
1231
1581
|
|
1232
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1582
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/alert.rb#L13) ios
|
1233
1583
|
|
1234
1584
|
> def alert_dismiss
|
1235
1585
|
|
@@ -1241,7 +1591,7 @@ __Returns:__
|
|
1241
1591
|
|
1242
1592
|
--
|
1243
1593
|
|
1244
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
1594
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/mobile_methods.rb#L10) ios
|
1245
1595
|
|
1246
1596
|
> def uiautomation_find
|
1247
1597
|
|
@@ -1253,7 +1603,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
1253
1603
|
|
1254
1604
|
--
|
1255
1605
|
|
1256
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
1606
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/button.rb#L4) ios
|
1257
1607
|
|
1258
1608
|
> UIAButton = 'UIAButton'
|
1259
1609
|
|
@@ -1261,7 +1611,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
1261
1611
|
|
1262
1612
|
--
|
1263
1613
|
|
1264
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
1614
|
+
##### [button](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/button.rb#L10) ios
|
1265
1615
|
|
1266
1616
|
> def button value
|
1267
1617
|
|
@@ -1278,11 +1628,12 @@ __Returns:__
|
|
1278
1628
|
|
1279
1629
|
--
|
1280
1630
|
|
1281
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
1631
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/button.rb#L20) ios
|
1282
1632
|
|
1283
|
-
> def buttons value
|
1633
|
+
> def buttons value=false
|
1284
1634
|
|
1285
|
-
Find all UIAButtons containing value
|
1635
|
+
Find all UIAButtons containing value.
|
1636
|
+
If value is omitted, all UIAButtons are returned.
|
1286
1637
|
|
1287
1638
|
__Parameters:__
|
1288
1639
|
|
@@ -1294,7 +1645,7 @@ __Returns:__
|
|
1294
1645
|
|
1295
1646
|
--
|
1296
1647
|
|
1297
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
1648
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/button.rb#L27) ios
|
1298
1649
|
|
1299
1650
|
> def first_button
|
1300
1651
|
|
@@ -1306,7 +1657,7 @@ __Returns:__
|
|
1306
1657
|
|
1307
1658
|
--
|
1308
1659
|
|
1309
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
1660
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/button.rb#L33) ios
|
1310
1661
|
|
1311
1662
|
> def last_button
|
1312
1663
|
|
@@ -1318,7 +1669,7 @@ __Returns:__
|
|
1318
1669
|
|
1319
1670
|
--
|
1320
1671
|
|
1321
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
1672
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/button.rb#L40) ios
|
1322
1673
|
|
1323
1674
|
> def button_exact value
|
1324
1675
|
|
@@ -1334,7 +1685,7 @@ __Returns:__
|
|
1334
1685
|
|
1335
1686
|
--
|
1336
1687
|
|
1337
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
1688
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/button.rb#L47) ios
|
1338
1689
|
|
1339
1690
|
> def buttons_exact value
|
1340
1691
|
|
@@ -1350,19 +1701,7 @@ __Returns:__
|
|
1350
1701
|
|
1351
1702
|
--
|
1352
1703
|
|
1353
|
-
##### [
|
1354
|
-
|
1355
|
-
> def e_buttons
|
1356
|
-
|
1357
|
-
Find all UIAButtons.
|
1358
|
-
|
1359
|
-
__Returns:__
|
1360
|
-
|
1361
|
-
[Array<UIAButton>]
|
1362
|
-
|
1363
|
-
--
|
1364
|
-
|
1365
|
-
##### [find](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/ios/element/generic.rb#L7) ios
|
1704
|
+
##### [find](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/generic.rb#L7) ios
|
1366
1705
|
|
1367
1706
|
> def find value
|
1368
1707
|
|
@@ -1378,7 +1717,7 @@ __Returns:__
|
|
1378
1717
|
|
1379
1718
|
--
|
1380
1719
|
|
1381
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
1720
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/generic.rb#L14) ios
|
1382
1721
|
|
1383
1722
|
> def finds value
|
1384
1723
|
|
@@ -1394,7 +1733,7 @@ __Returns:__
|
|
1394
1733
|
|
1395
1734
|
--
|
1396
1735
|
|
1397
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
1736
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/generic.rb#L21) ios
|
1398
1737
|
|
1399
1738
|
> def find_exact value
|
1400
1739
|
|
@@ -1410,7 +1749,7 @@ __Returns:__
|
|
1410
1749
|
|
1411
1750
|
--
|
1412
1751
|
|
1413
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
1752
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/generic.rb#L28) ios
|
1414
1753
|
|
1415
1754
|
> def finds_exact value
|
1416
1755
|
|
@@ -1426,7 +1765,7 @@ __Returns:__
|
|
1426
1765
|
|
1427
1766
|
--
|
1428
1767
|
|
1429
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
1768
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
1430
1769
|
|
1431
1770
|
> UIATextField = 'UIATextField'
|
1432
1771
|
|
@@ -1434,7 +1773,7 @@ __Returns:__
|
|
1434
1773
|
|
1435
1774
|
--
|
1436
1775
|
|
1437
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
1776
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
1438
1777
|
|
1439
1778
|
> UIASecureTextField = 'UIASecureTextField'
|
1440
1779
|
|
@@ -1442,7 +1781,7 @@ __Returns:__
|
|
1442
1781
|
|
1443
1782
|
--
|
1444
1783
|
|
1445
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
1784
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/textfield.rb#L38) ios
|
1446
1785
|
|
1447
1786
|
> def textfield value
|
1448
1787
|
|
@@ -1459,11 +1798,12 @@ __Returns:__
|
|
1459
1798
|
|
1460
1799
|
--
|
1461
1800
|
|
1462
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
1801
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/textfield.rb#L55) ios
|
1463
1802
|
|
1464
|
-
> def textfields value
|
1803
|
+
> def textfields value=false
|
1465
1804
|
|
1466
1805
|
Find all TextFields containing value.
|
1806
|
+
If value is omitted, all TextFields are returned.
|
1467
1807
|
|
1468
1808
|
__Parameters:__
|
1469
1809
|
|
@@ -1475,7 +1815,7 @@ __Returns:__
|
|
1475
1815
|
|
1476
1816
|
--
|
1477
1817
|
|
1478
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
1818
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/textfield.rb#L62) ios
|
1479
1819
|
|
1480
1820
|
> def first_textfield
|
1481
1821
|
|
@@ -1487,7 +1827,7 @@ __Returns:__
|
|
1487
1827
|
|
1488
1828
|
--
|
1489
1829
|
|
1490
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
1830
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/textfield.rb#L68) ios
|
1491
1831
|
|
1492
1832
|
> def last_textfield
|
1493
1833
|
|
@@ -1499,7 +1839,7 @@ __Returns:__
|
|
1499
1839
|
|
1500
1840
|
--
|
1501
1841
|
|
1502
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
1842
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/textfield.rb#L75) ios
|
1503
1843
|
|
1504
1844
|
> def textfield_exact value
|
1505
1845
|
|
@@ -1515,7 +1855,7 @@ __Returns:__
|
|
1515
1855
|
|
1516
1856
|
--
|
1517
1857
|
|
1518
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
1858
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/ios/element/textfield.rb#L82) ios
|
1519
1859
|
|
1520
1860
|
> def textfields_exact value
|
1521
1861
|
|
@@ -1531,19 +1871,7 @@ __Returns:__
|
|
1531
1871
|
|
1532
1872
|
--
|
1533
1873
|
|
1534
|
-
##### [
|
1535
|
-
|
1536
|
-
> def e_textfields
|
1537
|
-
|
1538
|
-
Find all TextFields.
|
1539
|
-
|
1540
|
-
__Returns:__
|
1541
|
-
|
1542
|
-
[Array<TextField>]
|
1543
|
-
|
1544
|
-
--
|
1545
|
-
|
1546
|
-
##### [value](https://github.com/appium/ruby_lib/blob/5a3ecbb4147693ce3c2c6b693e64074022d03511/lib/appium_lib/common/patch.rb#L10)
|
1874
|
+
##### [value](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/patch.rb#L10)
|
1547
1875
|
|
1548
1876
|
> def value
|
1549
1877
|
|
@@ -1553,7 +1881,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
1553
1881
|
|
1554
1882
|
--
|
1555
1883
|
|
1556
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
1884
|
+
##### [name](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/patch.rb#L17)
|
1557
1885
|
|
1558
1886
|
> def name
|
1559
1887
|
|
@@ -1563,7 +1891,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
1563
1891
|
|
1564
1892
|
--
|
1565
1893
|
|
1566
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
1894
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/2d7ab8b6cc442f39f6171f8a27bc4923e4d4e2a4/lib/appium_lib/common/patch.rb#L29)
|
1567
1895
|
|
1568
1896
|
> def location_rel
|
1569
1897
|
|