appium_lib 5.0.0 → 5.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/appium_lib.gemspec +1 -1
- data/docs/android_docs.md +186 -186
- data/docs/ios_docs.md +181 -181
- data/docs/migration.md +15 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +0 -3
- data/release_notes.md +9 -0
- metadata +6 -7
- data/lib/appium_lib/awesome_print/ostruct.rb +0 -33
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/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L69)
|
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/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L139)
|
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/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L152)
|
42
42
|
|
43
43
|
> def self.promote_singleton_appium_methods modules
|
44
44
|
|
@@ -48,7 +48,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
48
48
|
|
49
49
|
--
|
50
50
|
|
51
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
51
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L192)
|
52
52
|
|
53
53
|
> def self.promote_appium_methods class_array
|
54
54
|
|
@@ -66,7 +66,7 @@ __Parameters:__
|
|
66
66
|
|
67
67
|
--
|
68
68
|
|
69
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
69
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L228)
|
70
70
|
|
71
71
|
> def global_webdriver_http_sleep
|
72
72
|
|
@@ -74,7 +74,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
74
74
|
|
75
75
|
--
|
76
76
|
|
77
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
77
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L228)
|
78
78
|
|
79
79
|
> def global_webdriver_http_sleep=(value)
|
80
80
|
|
@@ -82,7 +82,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
82
82
|
|
83
83
|
--
|
84
84
|
|
85
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
85
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L230)
|
86
86
|
|
87
87
|
> def caps
|
88
88
|
|
@@ -90,7 +90,7 @@ Selenium webdriver capabilities
|
|
90
90
|
|
91
91
|
--
|
92
92
|
|
93
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
93
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L230)
|
94
94
|
|
95
95
|
> def caps=(value)
|
96
96
|
|
@@ -98,7 +98,7 @@ Selenium webdriver capabilities
|
|
98
98
|
|
99
99
|
--
|
100
100
|
|
101
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
101
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L232)
|
102
102
|
|
103
103
|
> def custom_url
|
104
104
|
|
@@ -106,7 +106,7 @@ Custom URL for the selenium server
|
|
106
106
|
|
107
107
|
--
|
108
108
|
|
109
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
109
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L232)
|
110
110
|
|
111
111
|
> def custom_url=(value)
|
112
112
|
|
@@ -114,7 +114,7 @@ Custom URL for the selenium server
|
|
114
114
|
|
115
115
|
--
|
116
116
|
|
117
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
117
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L234)
|
118
118
|
|
119
119
|
> def export_session
|
120
120
|
|
@@ -122,7 +122,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
122
122
|
|
123
123
|
--
|
124
124
|
|
125
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
125
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L234)
|
126
126
|
|
127
127
|
> def export_session=(value)
|
128
128
|
|
@@ -130,7 +130,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
130
130
|
|
131
131
|
--
|
132
132
|
|
133
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
133
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L236)
|
134
134
|
|
135
135
|
> def default_wait
|
136
136
|
|
@@ -143,7 +143,7 @@ __Returns:__
|
|
143
143
|
|
144
144
|
--
|
145
145
|
|
146
|
-
##### [default_wait=](https://github.com/appium/ruby_lib/blob/
|
146
|
+
##### [default_wait=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L236)
|
147
147
|
|
148
148
|
> def default_wait=(value)
|
149
149
|
|
@@ -151,7 +151,7 @@ Default wait time for elements to appear
|
|
151
151
|
|
152
152
|
--
|
153
153
|
|
154
|
-
##### [last_waits](https://github.com/appium/ruby_lib/blob/
|
154
|
+
##### [last_waits](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L238)
|
155
155
|
|
156
156
|
> def last_waits
|
157
157
|
|
@@ -159,7 +159,7 @@ Array of previous wait time values
|
|
159
159
|
|
160
160
|
--
|
161
161
|
|
162
|
-
##### [last_waits=](https://github.com/appium/ruby_lib/blob/
|
162
|
+
##### [last_waits=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L238)
|
163
163
|
|
164
164
|
> def last_waits=(value)
|
165
165
|
|
@@ -167,7 +167,7 @@ Array of previous wait time values
|
|
167
167
|
|
168
168
|
--
|
169
169
|
|
170
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
170
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L240)
|
171
171
|
|
172
172
|
> def sauce_username
|
173
173
|
|
@@ -175,7 +175,7 @@ Username for use on Sauce Labs
|
|
175
175
|
|
176
176
|
--
|
177
177
|
|
178
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
178
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L240)
|
179
179
|
|
180
180
|
> def sauce_username=(value)
|
181
181
|
|
@@ -183,7 +183,7 @@ Username for use on Sauce Labs
|
|
183
183
|
|
184
184
|
--
|
185
185
|
|
186
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
186
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L242)
|
187
187
|
|
188
188
|
> def sauce_access_key
|
189
189
|
|
@@ -191,7 +191,7 @@ Access Key for use on Sauce Labs
|
|
191
191
|
|
192
192
|
--
|
193
193
|
|
194
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
194
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L242)
|
195
195
|
|
196
196
|
> def sauce_access_key=(value)
|
197
197
|
|
@@ -199,7 +199,7 @@ Access Key for use on Sauce Labs
|
|
199
199
|
|
200
200
|
--
|
201
201
|
|
202
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
202
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L244)
|
203
203
|
|
204
204
|
> def appium_port
|
205
205
|
|
@@ -207,7 +207,7 @@ Appium's server port
|
|
207
207
|
|
208
208
|
--
|
209
209
|
|
210
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
210
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L244)
|
211
211
|
|
212
212
|
> def appium_port=(value)
|
213
213
|
|
@@ -215,7 +215,7 @@ Appium's server port
|
|
215
215
|
|
216
216
|
--
|
217
217
|
|
218
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
218
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L246)
|
219
219
|
|
220
220
|
> def appium_device
|
221
221
|
|
@@ -223,7 +223,7 @@ Device type to request from the appium server
|
|
223
223
|
|
224
224
|
--
|
225
225
|
|
226
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
226
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L246)
|
227
227
|
|
228
228
|
> def appium_device=(value)
|
229
229
|
|
@@ -231,7 +231,7 @@ Device type to request from the appium server
|
|
231
231
|
|
232
232
|
--
|
233
233
|
|
234
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L248)
|
235
235
|
|
236
236
|
> def appium_debug
|
237
237
|
|
@@ -239,7 +239,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
239
239
|
|
240
240
|
--
|
241
241
|
|
242
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L248)
|
243
243
|
|
244
244
|
> def appium_debug=(value)
|
245
245
|
|
@@ -247,7 +247,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
247
247
|
|
248
248
|
--
|
249
249
|
|
250
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L269)
|
251
251
|
|
252
252
|
> def initialize opts={}
|
253
253
|
|
@@ -278,7 +278,7 @@ __Returns:__
|
|
278
278
|
|
279
279
|
--
|
280
280
|
|
281
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
281
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L344)
|
282
282
|
|
283
283
|
> def driver_attributes
|
284
284
|
|
@@ -286,7 +286,7 @@ Returns a hash of the driver attributes
|
|
286
286
|
|
287
287
|
--
|
288
288
|
|
289
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
289
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L364)
|
290
290
|
|
291
291
|
> def device_is_android?
|
292
292
|
|
@@ -298,7 +298,7 @@ __Returns:__
|
|
298
298
|
|
299
299
|
--
|
300
300
|
|
301
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
301
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L380)
|
302
302
|
|
303
303
|
> def appium_server_version
|
304
304
|
|
@@ -319,7 +319,7 @@ __Returns:__
|
|
319
319
|
|
320
320
|
--
|
321
321
|
|
322
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
322
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L392)
|
323
323
|
|
324
324
|
> def self.absolute_app_path opts
|
325
325
|
|
@@ -336,7 +336,7 @@ __Returns:__
|
|
336
336
|
|
337
337
|
--
|
338
338
|
|
339
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
339
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L425)
|
340
340
|
|
341
341
|
> def server_url
|
342
342
|
|
@@ -348,7 +348,7 @@ __Returns:__
|
|
348
348
|
|
349
349
|
--
|
350
350
|
|
351
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
351
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L436)
|
352
352
|
|
353
353
|
> def restart
|
354
354
|
|
@@ -360,7 +360,7 @@ __Returns:__
|
|
360
360
|
|
361
361
|
--
|
362
362
|
|
363
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
363
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L443)
|
364
364
|
|
365
365
|
> def driver
|
366
366
|
|
@@ -372,7 +372,7 @@ __Returns:__
|
|
372
372
|
|
373
373
|
--
|
374
374
|
|
375
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
375
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L453)
|
376
376
|
|
377
377
|
> def screenshot png_save_path
|
378
378
|
|
@@ -390,7 +390,7 @@ __Returns:__
|
|
390
390
|
|
391
391
|
--
|
392
392
|
|
393
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
393
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L460)
|
394
394
|
|
395
395
|
> def driver_quit
|
396
396
|
|
@@ -402,7 +402,7 @@ __Returns:__
|
|
402
402
|
|
403
403
|
--
|
404
404
|
|
405
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
405
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L468)
|
406
406
|
|
407
407
|
> def start_driver
|
408
408
|
|
@@ -414,7 +414,7 @@ __Returns:__
|
|
414
414
|
|
415
415
|
--
|
416
416
|
|
417
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
417
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L494)
|
418
418
|
|
419
419
|
> def no_wait
|
420
420
|
|
@@ -422,7 +422,7 @@ Set implicit wait and default_wait to zero.
|
|
422
422
|
|
423
423
|
--
|
424
424
|
|
425
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
425
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L513)
|
426
426
|
|
427
427
|
> def set_wait timeout=nil
|
428
428
|
|
@@ -447,7 +447,7 @@ __Returns:__
|
|
447
447
|
|
448
448
|
--
|
449
449
|
|
450
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
450
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L547)
|
451
451
|
|
452
452
|
> def exists pre_check=0, post_check=@default_wait, &search_block
|
453
453
|
|
@@ -473,7 +473,7 @@ __Returns:__
|
|
473
473
|
|
474
474
|
--
|
475
475
|
|
476
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
476
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L571)
|
477
477
|
|
478
478
|
> def execute_script script, *args
|
479
479
|
|
@@ -491,7 +491,7 @@ __Returns:__
|
|
491
491
|
|
492
492
|
--
|
493
493
|
|
494
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
494
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L579)
|
495
495
|
|
496
496
|
> def find_elements *args
|
497
497
|
|
@@ -507,7 +507,7 @@ __Returns:__
|
|
507
507
|
|
508
508
|
--
|
509
509
|
|
510
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
510
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L587)
|
511
511
|
|
512
512
|
> def find_element *args
|
513
513
|
|
@@ -523,7 +523,7 @@ __Returns:__
|
|
523
523
|
|
524
524
|
--
|
525
525
|
|
526
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [x](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/driver.rb#L594)
|
527
527
|
|
528
528
|
> def x
|
529
529
|
|
@@ -536,7 +536,7 @@ __Returns:__
|
|
536
536
|
|
537
537
|
--
|
538
538
|
|
539
|
-
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/
|
539
|
+
##### [NoArgMethods](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L7)
|
540
540
|
|
541
541
|
> NoArgMethods = {
|
542
542
|
|
@@ -544,7 +544,7 @@ __Returns:__
|
|
544
544
|
|
545
545
|
--
|
546
546
|
|
547
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
547
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L23)
|
548
548
|
|
549
549
|
> def app_strings
|
550
550
|
|
@@ -555,7 +555,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
555
555
|
|
556
556
|
--
|
557
557
|
|
558
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
558
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L29)
|
559
559
|
|
560
560
|
> def background_app
|
561
561
|
|
@@ -564,7 +564,7 @@ This is a blocking application
|
|
564
564
|
|
565
565
|
--
|
566
566
|
|
567
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
567
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L34)
|
568
568
|
|
569
569
|
> def current_activity
|
570
570
|
|
@@ -572,7 +572,7 @@ This is a blocking application
|
|
572
572
|
|
573
573
|
--
|
574
574
|
|
575
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
575
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L36)
|
576
576
|
|
577
577
|
> def launch_app
|
578
578
|
|
@@ -580,7 +580,7 @@ Start the simulator and applicaton configured with desired capabilities
|
|
580
580
|
|
581
581
|
--
|
582
582
|
|
583
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
583
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L39)
|
584
584
|
|
585
585
|
> def reset
|
586
586
|
|
@@ -588,7 +588,7 @@ Reset the device, relaunching the application.
|
|
588
588
|
|
589
589
|
--
|
590
590
|
|
591
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
591
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L42)
|
592
592
|
|
593
593
|
> def shake
|
594
594
|
|
@@ -596,7 +596,7 @@ Cause the device to shake
|
|
596
596
|
|
597
597
|
--
|
598
598
|
|
599
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
599
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L45)
|
600
600
|
|
601
601
|
> def toggle_flight_mode
|
602
602
|
|
@@ -604,7 +604,7 @@ toggle flight mode on or off
|
|
604
604
|
|
605
605
|
--
|
606
606
|
|
607
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
607
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L48)
|
608
608
|
|
609
609
|
> def hide_keyboard
|
610
610
|
|
@@ -617,7 +617,7 @@ Defaults to 'Done'.
|
|
617
617
|
|
618
618
|
--
|
619
619
|
|
620
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
620
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L57)
|
621
621
|
|
622
622
|
> def press_keycode
|
623
623
|
|
@@ -632,7 +632,7 @@ __Parameters:__
|
|
632
632
|
|
633
633
|
--
|
634
634
|
|
635
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
635
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L63)
|
636
636
|
|
637
637
|
> def long_press_keycode
|
638
638
|
|
@@ -647,7 +647,7 @@ __Parameters:__
|
|
647
647
|
|
648
648
|
--
|
649
649
|
|
650
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
650
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L69)
|
651
651
|
|
652
652
|
> def push_file
|
653
653
|
|
@@ -661,7 +661,7 @@ __Parameters:__
|
|
661
661
|
|
662
662
|
--
|
663
663
|
|
664
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
664
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L74)
|
665
665
|
|
666
666
|
> def pull_file
|
667
667
|
|
@@ -678,7 +678,7 @@ __Parameters:__
|
|
678
678
|
|
679
679
|
--
|
680
680
|
|
681
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
681
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L84)
|
682
682
|
|
683
683
|
> def pull_folder
|
684
684
|
|
@@ -693,7 +693,7 @@ __Parameters:__
|
|
693
693
|
|
694
694
|
--
|
695
695
|
|
696
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
696
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L92)
|
697
697
|
|
698
698
|
> def end_coverage
|
699
699
|
|
@@ -707,7 +707,7 @@ __Parameters:__
|
|
707
707
|
|
708
708
|
--
|
709
709
|
|
710
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
710
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L97)
|
711
711
|
|
712
712
|
> def get_settings
|
713
713
|
|
@@ -715,7 +715,7 @@ Get appium Settings for current test session
|
|
715
715
|
|
716
716
|
--
|
717
717
|
|
718
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
718
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L345)
|
719
719
|
|
720
720
|
> def extend_search_contexts
|
721
721
|
|
@@ -723,7 +723,7 @@ Get appium Settings for current test session
|
|
723
723
|
|
724
724
|
--
|
725
725
|
|
726
|
-
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/
|
726
|
+
##### [accessiblity_id_find](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L345)
|
727
727
|
|
728
728
|
> def accessiblity_id_find
|
729
729
|
|
@@ -735,7 +735,7 @@ find_element/s with their accessibility_id
|
|
735
735
|
|
736
736
|
--
|
737
737
|
|
738
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
738
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L351)
|
739
739
|
|
740
740
|
> def add_touch_actions
|
741
741
|
|
@@ -743,7 +743,7 @@ find_element/s with their accessibility_id
|
|
743
743
|
|
744
744
|
--
|
745
745
|
|
746
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
746
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L375)
|
747
747
|
|
748
748
|
> def set_context
|
749
749
|
|
@@ -758,7 +758,7 @@ __Parameters:__
|
|
758
758
|
|
759
759
|
--
|
760
760
|
|
761
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
761
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L383)
|
762
762
|
|
763
763
|
> def current_context
|
764
764
|
|
@@ -770,7 +770,7 @@ __Returns:__
|
|
770
770
|
|
771
771
|
--
|
772
772
|
|
773
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
773
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L386)
|
774
774
|
|
775
775
|
> def available_contexts
|
776
776
|
|
@@ -782,7 +782,7 @@ __Returns:__
|
|
782
782
|
|
783
783
|
--
|
784
784
|
|
785
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
785
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L396)
|
786
786
|
|
787
787
|
> def within_context(context)
|
788
788
|
|
@@ -798,7 +798,7 @@ __Parameters:__
|
|
798
798
|
|
799
799
|
--
|
800
800
|
|
801
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
801
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/device.rb#L404)
|
802
802
|
|
803
803
|
> def switch_to_default_context
|
804
804
|
|
@@ -806,7 +806,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
806
806
|
|
807
807
|
--
|
808
808
|
|
809
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
809
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/multi_touch.rb#L30)
|
810
810
|
|
811
811
|
> def pinch(percentage=25, auto_perform=true)
|
812
812
|
|
@@ -825,7 +825,7 @@ __Parameters:__
|
|
825
825
|
|
826
826
|
--
|
827
827
|
|
828
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
828
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/multi_touch.rb#L58)
|
829
829
|
|
830
830
|
> def zoom(percentage=200, auto_perform=true)
|
831
831
|
|
@@ -844,7 +844,7 @@ __Parameters:__
|
|
844
844
|
|
845
845
|
--
|
846
846
|
|
847
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
847
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/multi_touch.rb#L79)
|
848
848
|
|
849
849
|
> def initialize
|
850
850
|
|
@@ -856,7 +856,7 @@ __Returns:__
|
|
856
856
|
|
857
857
|
--
|
858
858
|
|
859
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
859
|
+
##### [add](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/multi_touch.rb#L85)
|
860
860
|
|
861
861
|
> def add(chain)
|
862
862
|
|
@@ -868,7 +868,7 @@ __Parameters:__
|
|
868
868
|
|
869
869
|
--
|
870
870
|
|
871
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
871
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/multi_touch.rb#L90)
|
872
872
|
|
873
873
|
> def perform
|
874
874
|
|
@@ -876,7 +876,7 @@ Ask Appium to perform the actions
|
|
876
876
|
|
877
877
|
--
|
878
878
|
|
879
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
879
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L12)
|
880
880
|
|
881
881
|
> ACTIONS = [:move_to, :long_press, :press, :release, :tap, :wait, :perform]
|
882
882
|
|
@@ -884,7 +884,7 @@ Ask Appium to perform the actions
|
|
884
884
|
|
885
885
|
--
|
886
886
|
|
887
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
887
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L13)
|
888
888
|
|
889
889
|
> COMPLEX_ACTIONS = [:swipe]
|
890
890
|
|
@@ -892,7 +892,7 @@ Ask Appium to perform the actions
|
|
892
892
|
|
893
893
|
--
|
894
894
|
|
895
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
895
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L27)
|
896
896
|
|
897
897
|
> def actions
|
898
898
|
|
@@ -900,7 +900,7 @@ Returns the value of attribute actions
|
|
900
900
|
|
901
901
|
--
|
902
902
|
|
903
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
903
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L29)
|
904
904
|
|
905
905
|
> def initialize
|
906
906
|
|
@@ -912,7 +912,7 @@ __Returns:__
|
|
912
912
|
|
913
913
|
--
|
914
914
|
|
915
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
915
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L37)
|
916
916
|
|
917
917
|
> def move_to(opts)
|
918
918
|
|
@@ -924,7 +924,7 @@ __Parameters:__
|
|
924
924
|
|
925
925
|
--
|
926
926
|
|
927
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
927
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L47)
|
928
928
|
|
929
929
|
> def long_press(opts)
|
930
930
|
|
@@ -942,7 +942,7 @@ __Parameters:__
|
|
942
942
|
|
943
943
|
--
|
944
944
|
|
945
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
945
|
+
##### [press](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L59)
|
946
946
|
|
947
947
|
> def press(opts)
|
948
948
|
|
@@ -955,7 +955,7 @@ __Parameters:__
|
|
955
955
|
|
956
956
|
--
|
957
957
|
|
958
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
958
|
+
##### [release](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L70)
|
959
959
|
|
960
960
|
> def release(opts=nil)
|
961
961
|
|
@@ -967,7 +967,7 @@ __Parameters:__
|
|
967
967
|
|
968
968
|
--
|
969
969
|
|
970
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
970
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L81)
|
971
971
|
|
972
972
|
> def tap(opts)
|
973
973
|
|
@@ -979,7 +979,7 @@ __Parameters:__
|
|
979
979
|
|
980
980
|
--
|
981
981
|
|
982
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
982
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L90)
|
983
983
|
|
984
984
|
> def wait(milliseconds)
|
985
985
|
|
@@ -991,7 +991,7 @@ __Parameters:__
|
|
991
991
|
|
992
992
|
--
|
993
993
|
|
994
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
994
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L104)
|
995
995
|
|
996
996
|
> def swipe(opts)
|
997
997
|
|
@@ -1005,7 +1005,7 @@ __Parameters:__
|
|
1005
1005
|
|
1006
1006
|
--
|
1007
1007
|
|
1008
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1008
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L119)
|
1009
1009
|
|
1010
1010
|
> def perform
|
1011
1011
|
|
@@ -1013,7 +1013,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1013
1013
|
|
1014
1014
|
--
|
1015
1015
|
|
1016
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1016
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L125)
|
1017
1017
|
|
1018
1018
|
> def cancel
|
1019
1019
|
|
@@ -1021,7 +1021,7 @@ Does nothing, currently.
|
|
1021
1021
|
|
1022
1022
|
--
|
1023
1023
|
|
1024
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1024
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L133)
|
1025
1025
|
|
1026
1026
|
> def chain_method(method, args=nil)
|
1027
1027
|
|
@@ -1029,7 +1029,7 @@ Does nothing, currently.
|
|
1029
1029
|
|
1030
1030
|
--
|
1031
1031
|
|
1032
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1032
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/device/touch_actions.rb#L142)
|
1033
1033
|
|
1034
1034
|
> def args_with_ele_ref(args)
|
1035
1035
|
|
@@ -1037,7 +1037,7 @@ Does nothing, currently.
|
|
1037
1037
|
|
1038
1038
|
--
|
1039
1039
|
|
1040
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1040
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/wait.rb#L10)
|
1041
1041
|
|
1042
1042
|
> def _generic_wait opts={}, &block
|
1043
1043
|
|
@@ -1046,7 +1046,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1046
1046
|
|
1047
1047
|
--
|
1048
1048
|
|
1049
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1049
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/wait.rb#L55)
|
1050
1050
|
|
1051
1051
|
> def _process_wait_opts opts
|
1052
1052
|
|
@@ -1054,7 +1054,7 @@ process opts before calling _generic_wait
|
|
1054
1054
|
|
1055
1055
|
--
|
1056
1056
|
|
1057
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1057
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/wait.rb#L76)
|
1058
1058
|
|
1059
1059
|
> def wait_true opts={}, &block
|
1060
1060
|
|
@@ -1074,7 +1074,7 @@ __Parameters:__
|
|
1074
1074
|
|
1075
1075
|
--
|
1076
1076
|
|
1077
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1077
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/wait.rb#L94)
|
1078
1078
|
|
1079
1079
|
> def wait opts={}, &block
|
1080
1080
|
|
@@ -1092,7 +1092,7 @@ __Parameters:__
|
|
1092
1092
|
|
1093
1093
|
--
|
1094
1094
|
|
1095
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1095
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L24)
|
1096
1096
|
|
1097
1097
|
> def ignore &block
|
1098
1098
|
|
@@ -1100,7 +1100,7 @@ Return block.call and ignore any exceptions.
|
|
1100
1100
|
|
1101
1101
|
--
|
1102
1102
|
|
1103
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1103
|
+
##### [back](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L33)
|
1104
1104
|
|
1105
1105
|
> def back
|
1106
1106
|
|
@@ -1112,7 +1112,7 @@ __Returns:__
|
|
1112
1112
|
|
1113
1113
|
--
|
1114
1114
|
|
1115
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1115
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L38)
|
1116
1116
|
|
1117
1117
|
> def session_id
|
1118
1118
|
|
@@ -1120,7 +1120,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1120
1120
|
|
1121
1121
|
--
|
1122
1122
|
|
1123
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1123
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L46)
|
1124
1124
|
|
1125
1125
|
> def xpath xpath_str
|
1126
1126
|
|
@@ -1136,7 +1136,7 @@ __Returns:__
|
|
1136
1136
|
|
1137
1137
|
--
|
1138
1138
|
|
1139
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1139
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L54)
|
1140
1140
|
|
1141
1141
|
> def xpaths xpath_str
|
1142
1142
|
|
@@ -1152,7 +1152,7 @@ __Returns:__
|
|
1152
1152
|
|
1153
1153
|
--
|
1154
1154
|
|
1155
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1155
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L58)
|
1156
1156
|
|
1157
1157
|
> def _print_source source
|
1158
1158
|
|
@@ -1160,7 +1160,7 @@ __Returns:__
|
|
1160
1160
|
|
1161
1161
|
--
|
1162
1162
|
|
1163
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1163
|
+
##### [result](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L71)
|
1164
1164
|
|
1165
1165
|
> def result
|
1166
1166
|
|
@@ -1168,7 +1168,7 @@ Returns the value of attribute result
|
|
1168
1168
|
|
1169
1169
|
--
|
1170
1170
|
|
1171
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1171
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L73)
|
1172
1172
|
|
1173
1173
|
> def initialize
|
1174
1174
|
|
@@ -1180,7 +1180,7 @@ __Returns:__
|
|
1180
1180
|
|
1181
1181
|
--
|
1182
1182
|
|
1183
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1183
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L77)
|
1184
1184
|
|
1185
1185
|
> def reset
|
1186
1186
|
|
@@ -1188,7 +1188,7 @@ __Returns:__
|
|
1188
1188
|
|
1189
1189
|
--
|
1190
1190
|
|
1191
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1191
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L82)
|
1192
1192
|
|
1193
1193
|
> def start_element name, attrs = []
|
1194
1194
|
|
@@ -1196,7 +1196,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1196
1196
|
|
1197
1197
|
--
|
1198
1198
|
|
1199
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1199
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L88)
|
1200
1200
|
|
1201
1201
|
> def formatted_result
|
1202
1202
|
|
@@ -1204,7 +1204,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1204
1204
|
|
1205
1205
|
--
|
1206
1206
|
|
1207
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1207
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L99)
|
1208
1208
|
|
1209
1209
|
> def get_page_class
|
1210
1210
|
|
@@ -1212,7 +1212,7 @@ Returns a string of class counts of visible elements.
|
|
1212
1212
|
|
1213
1213
|
--
|
1214
1214
|
|
1215
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1215
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L110)
|
1216
1216
|
|
1217
1217
|
> def page_class
|
1218
1218
|
|
@@ -1221,7 +1221,7 @@ Useful for appium_console.
|
|
1221
1221
|
|
1222
1222
|
--
|
1223
1223
|
|
1224
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1224
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L120)
|
1225
1225
|
|
1226
1226
|
> def px_to_window_rel opts={}
|
1227
1227
|
|
@@ -1233,7 +1233,7 @@ px_to_window_rel x: 50, y: 150
|
|
1233
1233
|
|
1234
1234
|
--
|
1235
1235
|
|
1236
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1236
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L139)
|
1237
1237
|
|
1238
1238
|
> def xml_keys target
|
1239
1239
|
|
@@ -1249,7 +1249,7 @@ __Returns:__
|
|
1249
1249
|
|
1250
1250
|
--
|
1251
1251
|
|
1252
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1252
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L147)
|
1253
1253
|
|
1254
1254
|
> def xml_values target
|
1255
1255
|
|
@@ -1265,7 +1265,7 @@ __Returns:__
|
|
1265
1265
|
|
1266
1266
|
--
|
1267
1267
|
|
1268
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1268
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L155)
|
1269
1269
|
|
1270
1270
|
> def resolve_id id
|
1271
1271
|
|
@@ -1281,7 +1281,7 @@ __Returns:__
|
|
1281
1281
|
|
1282
1282
|
--
|
1283
1283
|
|
1284
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1284
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L161)
|
1285
1285
|
|
1286
1286
|
> def filter
|
1287
1287
|
|
@@ -1289,7 +1289,7 @@ __Returns:__
|
|
1289
1289
|
|
1290
1290
|
--
|
1291
1291
|
|
1292
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1292
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L166)
|
1293
1293
|
|
1294
1294
|
> def filter= value
|
1295
1295
|
|
@@ -1297,7 +1297,7 @@ convert to string to support symbols
|
|
1297
1297
|
|
1298
1298
|
--
|
1299
1299
|
|
1300
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1300
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L172)
|
1301
1301
|
|
1302
1302
|
> def initialize
|
1303
1303
|
|
@@ -1309,7 +1309,7 @@ __Returns:__
|
|
1309
1309
|
|
1310
1310
|
--
|
1311
1311
|
|
1312
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1312
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L177)
|
1313
1313
|
|
1314
1314
|
> def reset
|
1315
1315
|
|
@@ -1317,7 +1317,7 @@ __Returns:__
|
|
1317
1317
|
|
1318
1318
|
--
|
1319
1319
|
|
1320
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1320
|
+
##### [result](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L183)
|
1321
1321
|
|
1322
1322
|
> def result
|
1323
1323
|
|
@@ -1325,7 +1325,7 @@ __Returns:__
|
|
1325
1325
|
|
1326
1326
|
--
|
1327
1327
|
|
1328
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1328
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L199)
|
1329
1329
|
|
1330
1330
|
> def start_element name, attrs = []
|
1331
1331
|
|
@@ -1333,7 +1333,7 @@ __Returns:__
|
|
1333
1333
|
|
1334
1334
|
--
|
1335
1335
|
|
1336
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1336
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L209)
|
1337
1337
|
|
1338
1338
|
> def end_element name
|
1339
1339
|
|
@@ -1341,7 +1341,7 @@ __Returns:__
|
|
1341
1341
|
|
1342
1342
|
--
|
1343
1343
|
|
1344
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1344
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L215)
|
1345
1345
|
|
1346
1346
|
> def characters(chars)
|
1347
1347
|
|
@@ -1349,7 +1349,7 @@ __Returns:__
|
|
1349
1349
|
|
1350
1350
|
--
|
1351
1351
|
|
1352
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1352
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/helper.rb#L223)
|
1353
1353
|
|
1354
1354
|
> def _no_such_element
|
1355
1355
|
|
@@ -1357,7 +1357,7 @@ __Returns:__
|
|
1357
1357
|
|
1358
1358
|
--
|
1359
1359
|
|
1360
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1360
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/element/window.rb#L5)
|
1361
1361
|
|
1362
1362
|
> def window_size
|
1363
1363
|
|
@@ -1365,7 +1365,7 @@ Get the window's size
|
|
1365
1365
|
|
1366
1366
|
--
|
1367
1367
|
|
1368
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1368
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L8) ios
|
1369
1369
|
|
1370
1370
|
> def ios_password length=1
|
1371
1371
|
|
@@ -1383,7 +1383,7 @@ __Returns:__
|
|
1383
1383
|
|
1384
1384
|
--
|
1385
1385
|
|
1386
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1386
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L20) ios
|
1387
1387
|
|
1388
1388
|
> def get_page element=source_window(0), class_name=nil
|
1389
1389
|
|
@@ -1404,7 +1404,7 @@ __Returns:__
|
|
1404
1404
|
|
1405
1405
|
--
|
1406
1406
|
|
1407
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1407
|
+
##### [page](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L125) ios
|
1408
1408
|
|
1409
1409
|
> def page opts={}
|
1410
1410
|
|
@@ -1430,7 +1430,7 @@ __Returns:__
|
|
1430
1430
|
|
1431
1431
|
--
|
1432
1432
|
|
1433
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1433
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L157) ios
|
1434
1434
|
|
1435
1435
|
> def source_window window_number=0
|
1436
1436
|
|
@@ -1446,7 +1446,7 @@ __Returns:__
|
|
1446
1446
|
|
1447
1447
|
--
|
1448
1448
|
|
1449
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
1449
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L171) ios
|
1450
1450
|
|
1451
1451
|
> def page_window window_number=0
|
1452
1452
|
|
@@ -1464,7 +1464,7 @@ __Returns:__
|
|
1464
1464
|
|
1465
1465
|
--
|
1466
1466
|
|
1467
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1467
|
+
##### [id](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L179) ios
|
1468
1468
|
|
1469
1469
|
> def id id
|
1470
1470
|
|
@@ -1480,7 +1480,7 @@ __Returns:__
|
|
1480
1480
|
|
1481
1481
|
--
|
1482
1482
|
|
1483
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
1483
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L185) ios
|
1484
1484
|
|
1485
1485
|
> def ios_version
|
1486
1486
|
|
@@ -1492,7 +1492,7 @@ __Returns:__
|
|
1492
1492
|
|
1493
1493
|
--
|
1494
1494
|
|
1495
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1495
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L194) ios
|
1496
1496
|
|
1497
1497
|
> def ele_index class_name, index
|
1498
1498
|
|
@@ -1510,7 +1510,7 @@ __Returns:__
|
|
1510
1510
|
|
1511
1511
|
--
|
1512
1512
|
|
1513
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
1513
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L221) ios
|
1514
1514
|
|
1515
1515
|
> def find_ele_by_attr class_name, attr, value
|
1516
1516
|
|
@@ -1531,7 +1531,7 @@ __Returns:__
|
|
1531
1531
|
|
1532
1532
|
--
|
1533
1533
|
|
1534
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
1534
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L231) ios
|
1535
1535
|
|
1536
1536
|
> def find_eles_by_attr class_name, attr, value
|
1537
1537
|
|
@@ -1552,7 +1552,7 @@ __Returns:__
|
|
1552
1552
|
|
1553
1553
|
--
|
1554
1554
|
|
1555
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1555
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L246) ios
|
1556
1556
|
|
1557
1557
|
> def find_ele_by_attr_include class_name, attr, value
|
1558
1558
|
|
@@ -1573,7 +1573,7 @@ __Returns:__
|
|
1573
1573
|
|
1574
1574
|
--
|
1575
1575
|
|
1576
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1576
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L256) ios
|
1577
1577
|
|
1578
1578
|
> def find_eles_by_attr_include class_name, attr, value
|
1579
1579
|
|
@@ -1594,7 +1594,7 @@ __Returns:__
|
|
1594
1594
|
|
1595
1595
|
--
|
1596
1596
|
|
1597
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1597
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L263) ios
|
1598
1598
|
|
1599
1599
|
> def first_ele class_name
|
1600
1600
|
|
@@ -1610,7 +1610,7 @@ __Returns:__
|
|
1610
1610
|
|
1611
1611
|
--
|
1612
1612
|
|
1613
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1613
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L271) ios
|
1614
1614
|
|
1615
1615
|
> def last_ele class_name
|
1616
1616
|
|
@@ -1626,7 +1626,7 @@ __Returns:__
|
|
1626
1626
|
|
1627
1627
|
--
|
1628
1628
|
|
1629
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1629
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L279) ios
|
1630
1630
|
|
1631
1631
|
> def tag class_name
|
1632
1632
|
|
@@ -1642,7 +1642,7 @@ __Returns:__
|
|
1642
1642
|
|
1643
1643
|
--
|
1644
1644
|
|
1645
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1645
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L290) ios
|
1646
1646
|
|
1647
1647
|
> def tags class_name
|
1648
1648
|
|
@@ -1658,7 +1658,7 @@ __Returns:__
|
|
1658
1658
|
|
1659
1659
|
--
|
1660
1660
|
|
1661
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1661
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L325) ios
|
1662
1662
|
|
1663
1663
|
> def ele_by_json_visible_contains element, value
|
1664
1664
|
|
@@ -1676,7 +1676,7 @@ __Returns:__
|
|
1676
1676
|
|
1677
1677
|
--
|
1678
1678
|
|
1679
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1679
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L333) ios
|
1680
1680
|
|
1681
1681
|
> def eles_by_json_visible_contains element, value
|
1682
1682
|
|
@@ -1694,7 +1694,7 @@ __Returns:__
|
|
1694
1694
|
|
1695
1695
|
--
|
1696
1696
|
|
1697
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1697
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L362) ios
|
1698
1698
|
|
1699
1699
|
> def ele_by_json_visible_exact element, value
|
1700
1700
|
|
@@ -1712,7 +1712,7 @@ __Returns:__
|
|
1712
1712
|
|
1713
1713
|
--
|
1714
1714
|
|
1715
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1715
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L370) ios
|
1716
1716
|
|
1717
1717
|
> def eles_by_json_visible_exact element, value
|
1718
1718
|
|
@@ -1730,7 +1730,7 @@ __Returns:__
|
|
1730
1730
|
|
1731
1731
|
--
|
1732
1732
|
|
1733
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
1733
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L434) ios
|
1734
1734
|
|
1735
1735
|
> def _all_pred opts
|
1736
1736
|
|
@@ -1740,7 +1740,7 @@ visible - if true, only visible elements are returned. default true
|
|
1740
1740
|
|
1741
1741
|
--
|
1742
1742
|
|
1743
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
1743
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L447) ios
|
1744
1744
|
|
1745
1745
|
> def ele_with_pred opts
|
1746
1746
|
|
@@ -1756,7 +1756,7 @@ __Returns:__
|
|
1756
1756
|
|
1757
1757
|
--
|
1758
1758
|
|
1759
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
1759
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L458) ios
|
1760
1760
|
|
1761
1761
|
> def eles_with_pred opts
|
1762
1762
|
|
@@ -1772,7 +1772,7 @@ __Returns:__
|
|
1772
1772
|
|
1773
1773
|
--
|
1774
1774
|
|
1775
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
1775
|
+
##### [source](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L464) ios
|
1776
1776
|
|
1777
1777
|
> def source
|
1778
1778
|
|
@@ -1784,7 +1784,7 @@ __Returns:__
|
|
1784
1784
|
|
1785
1785
|
--
|
1786
1786
|
|
1787
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
1787
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L468) ios
|
1788
1788
|
|
1789
1789
|
> def _validate_object *objects
|
1790
1790
|
|
@@ -1792,7 +1792,7 @@ __Returns:__
|
|
1792
1792
|
|
1793
1793
|
--
|
1794
1794
|
|
1795
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
1795
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L516) ios
|
1796
1796
|
|
1797
1797
|
> def _by_json opts
|
1798
1798
|
|
@@ -1826,7 +1826,7 @@ opts = {
|
|
1826
1826
|
|
1827
1827
|
--
|
1828
1828
|
|
1829
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
1829
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L556) ios
|
1830
1830
|
|
1831
1831
|
> def eles_by_json opts
|
1832
1832
|
|
@@ -1844,7 +1844,7 @@ eles_by_json({
|
|
1844
1844
|
|
1845
1845
|
--
|
1846
1846
|
|
1847
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
1847
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L562) ios
|
1848
1848
|
|
1849
1849
|
> def ele_by_json opts
|
1850
1850
|
|
@@ -1852,7 +1852,7 @@ see eles_by_json
|
|
1852
1852
|
|
1853
1853
|
--
|
1854
1854
|
|
1855
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
1855
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/helper.rb#L572) ios
|
1856
1856
|
|
1857
1857
|
> def get_source
|
1858
1858
|
|
@@ -1865,7 +1865,7 @@ __Returns:__
|
|
1865
1865
|
|
1866
1866
|
--
|
1867
1867
|
|
1868
|
-
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/
|
1868
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/text.rb#L4) ios
|
1869
1869
|
|
1870
1870
|
> UIAStaticText = 'UIAStaticText'
|
1871
1871
|
|
@@ -1873,7 +1873,7 @@ __Returns:__
|
|
1873
1873
|
|
1874
1874
|
--
|
1875
1875
|
|
1876
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
1876
|
+
##### [text](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/text.rb#L10) ios
|
1877
1877
|
|
1878
1878
|
> def text value
|
1879
1879
|
|
@@ -1890,7 +1890,7 @@ __Returns:__
|
|
1890
1890
|
|
1891
1891
|
--
|
1892
1892
|
|
1893
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
1893
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/text.rb#L19) ios
|
1894
1894
|
|
1895
1895
|
> def texts value=false
|
1896
1896
|
|
@@ -1907,7 +1907,7 @@ __Returns:__
|
|
1907
1907
|
|
1908
1908
|
--
|
1909
1909
|
|
1910
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
1910
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/text.rb#L26) ios
|
1911
1911
|
|
1912
1912
|
> def first_text
|
1913
1913
|
|
@@ -1919,7 +1919,7 @@ __Returns:__
|
|
1919
1919
|
|
1920
1920
|
--
|
1921
1921
|
|
1922
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
1922
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/text.rb#L32) ios
|
1923
1923
|
|
1924
1924
|
> def last_text
|
1925
1925
|
|
@@ -1931,7 +1931,7 @@ __Returns:__
|
|
1931
1931
|
|
1932
1932
|
--
|
1933
1933
|
|
1934
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
1934
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/text.rb#L39) ios
|
1935
1935
|
|
1936
1936
|
> def text_exact value
|
1937
1937
|
|
@@ -1947,7 +1947,7 @@ __Returns:__
|
|
1947
1947
|
|
1948
1948
|
--
|
1949
1949
|
|
1950
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
1950
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/text.rb#L46) ios
|
1951
1951
|
|
1952
1952
|
> def texts_exact value
|
1953
1953
|
|
@@ -1963,7 +1963,7 @@ __Returns:__
|
|
1963
1963
|
|
1964
1964
|
--
|
1965
1965
|
|
1966
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
1966
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/alert.rb#L5) ios
|
1967
1967
|
|
1968
1968
|
> def alert_accept
|
1969
1969
|
|
@@ -1975,7 +1975,7 @@ __Returns:__
|
|
1975
1975
|
|
1976
1976
|
--
|
1977
1977
|
|
1978
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
1978
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/alert.rb#L13) ios
|
1979
1979
|
|
1980
1980
|
> def alert_dismiss
|
1981
1981
|
|
@@ -1987,7 +1987,7 @@ __Returns:__
|
|
1987
1987
|
|
1988
1988
|
--
|
1989
1989
|
|
1990
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
1990
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/mobile_methods.rb#L10) ios
|
1991
1991
|
|
1992
1992
|
> def uiautomation_find
|
1993
1993
|
|
@@ -1999,7 +1999,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
1999
1999
|
|
2000
2000
|
--
|
2001
2001
|
|
2002
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
2002
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/button.rb#L4) ios
|
2003
2003
|
|
2004
2004
|
> UIAButton = 'UIAButton'
|
2005
2005
|
|
@@ -2007,7 +2007,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2007
2007
|
|
2008
2008
|
--
|
2009
2009
|
|
2010
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2010
|
+
##### [button](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/button.rb#L10) ios
|
2011
2011
|
|
2012
2012
|
> def button value
|
2013
2013
|
|
@@ -2024,7 +2024,7 @@ __Returns:__
|
|
2024
2024
|
|
2025
2025
|
--
|
2026
2026
|
|
2027
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2027
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/button.rb#L20) ios
|
2028
2028
|
|
2029
2029
|
> def buttons value=false
|
2030
2030
|
|
@@ -2041,7 +2041,7 @@ __Returns:__
|
|
2041
2041
|
|
2042
2042
|
--
|
2043
2043
|
|
2044
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2044
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/button.rb#L27) ios
|
2045
2045
|
|
2046
2046
|
> def first_button
|
2047
2047
|
|
@@ -2053,7 +2053,7 @@ __Returns:__
|
|
2053
2053
|
|
2054
2054
|
--
|
2055
2055
|
|
2056
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2056
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/button.rb#L33) ios
|
2057
2057
|
|
2058
2058
|
> def last_button
|
2059
2059
|
|
@@ -2065,7 +2065,7 @@ __Returns:__
|
|
2065
2065
|
|
2066
2066
|
--
|
2067
2067
|
|
2068
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2068
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/button.rb#L40) ios
|
2069
2069
|
|
2070
2070
|
> def button_exact value
|
2071
2071
|
|
@@ -2081,7 +2081,7 @@ __Returns:__
|
|
2081
2081
|
|
2082
2082
|
--
|
2083
2083
|
|
2084
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2084
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/button.rb#L47) ios
|
2085
2085
|
|
2086
2086
|
> def buttons_exact value
|
2087
2087
|
|
@@ -2097,7 +2097,7 @@ __Returns:__
|
|
2097
2097
|
|
2098
2098
|
--
|
2099
2099
|
|
2100
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2100
|
+
##### [find](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/generic.rb#L7) ios
|
2101
2101
|
|
2102
2102
|
> def find value
|
2103
2103
|
|
@@ -2113,7 +2113,7 @@ __Returns:__
|
|
2113
2113
|
|
2114
2114
|
--
|
2115
2115
|
|
2116
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2116
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/generic.rb#L14) ios
|
2117
2117
|
|
2118
2118
|
> def finds value
|
2119
2119
|
|
@@ -2129,7 +2129,7 @@ __Returns:__
|
|
2129
2129
|
|
2130
2130
|
--
|
2131
2131
|
|
2132
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2132
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/generic.rb#L21) ios
|
2133
2133
|
|
2134
2134
|
> def find_exact value
|
2135
2135
|
|
@@ -2145,7 +2145,7 @@ __Returns:__
|
|
2145
2145
|
|
2146
2146
|
--
|
2147
2147
|
|
2148
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2148
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/generic.rb#L28) ios
|
2149
2149
|
|
2150
2150
|
> def finds_exact value
|
2151
2151
|
|
@@ -2161,7 +2161,7 @@ __Returns:__
|
|
2161
2161
|
|
2162
2162
|
--
|
2163
2163
|
|
2164
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2164
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2165
2165
|
|
2166
2166
|
> UIATextField = 'UIATextField'
|
2167
2167
|
|
@@ -2169,7 +2169,7 @@ __Returns:__
|
|
2169
2169
|
|
2170
2170
|
--
|
2171
2171
|
|
2172
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2172
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2173
2173
|
|
2174
2174
|
> UIASecureTextField = 'UIASecureTextField'
|
2175
2175
|
|
@@ -2177,7 +2177,7 @@ __Returns:__
|
|
2177
2177
|
|
2178
2178
|
--
|
2179
2179
|
|
2180
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2180
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/textfield.rb#L52) ios
|
2181
2181
|
|
2182
2182
|
> def textfield value
|
2183
2183
|
|
@@ -2194,7 +2194,7 @@ __Returns:__
|
|
2194
2194
|
|
2195
2195
|
--
|
2196
2196
|
|
2197
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2197
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/textfield.rb#L72) ios
|
2198
2198
|
|
2199
2199
|
> def textfields value=false
|
2200
2200
|
|
@@ -2211,7 +2211,7 @@ __Returns:__
|
|
2211
2211
|
|
2212
2212
|
--
|
2213
2213
|
|
2214
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2214
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/textfield.rb#L79) ios
|
2215
2215
|
|
2216
2216
|
> def first_textfield
|
2217
2217
|
|
@@ -2223,7 +2223,7 @@ __Returns:__
|
|
2223
2223
|
|
2224
2224
|
--
|
2225
2225
|
|
2226
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2226
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/textfield.rb#L85) ios
|
2227
2227
|
|
2228
2228
|
> def last_textfield
|
2229
2229
|
|
@@ -2235,7 +2235,7 @@ __Returns:__
|
|
2235
2235
|
|
2236
2236
|
--
|
2237
2237
|
|
2238
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2238
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/textfield.rb#L94) ios
|
2239
2239
|
|
2240
2240
|
> def textfield_exact value
|
2241
2241
|
|
@@ -2251,7 +2251,7 @@ __Returns:__
|
|
2251
2251
|
|
2252
2252
|
--
|
2253
2253
|
|
2254
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2254
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/ios/element/textfield.rb#L101) ios
|
2255
2255
|
|
2256
2256
|
> def textfields_exact value
|
2257
2257
|
|
@@ -2267,7 +2267,7 @@ __Returns:__
|
|
2267
2267
|
|
2268
2268
|
--
|
2269
2269
|
|
2270
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2270
|
+
##### [value](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/patch.rb#L12)
|
2271
2271
|
|
2272
2272
|
> def value
|
2273
2273
|
|
@@ -2277,7 +2277,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2277
2277
|
|
2278
2278
|
--
|
2279
2279
|
|
2280
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2280
|
+
##### [name](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/patch.rb#L19)
|
2281
2281
|
|
2282
2282
|
> def name
|
2283
2283
|
|
@@ -2287,7 +2287,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2287
2287
|
|
2288
2288
|
--
|
2289
2289
|
|
2290
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2290
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/patch.rb#L31)
|
2291
2291
|
|
2292
2292
|
> def location_rel
|
2293
2293
|
|
@@ -2305,7 +2305,7 @@ __Returns:__
|
|
2305
2305
|
|
2306
2306
|
--
|
2307
2307
|
|
2308
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2308
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/9b157011965442e6f021dcfeef588450277f1c6a/lib/appium_lib/common/patch.rb#L145)
|
2309
2309
|
|
2310
2310
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }
|
2311
2311
|
|