appium_lib 9.1.1 → 9.1.2
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/.rubocop.yml +0 -7
- data/android_tests/lib/android/specs/android/element/text.rb +2 -2
- data/android_tests/lib/android/specs/android/element/textfield.rb +12 -2
- data/android_tests/lib/android/specs/common/element/window.rb +2 -0
- data/android_tests/lib/android/specs/driver.rb +6 -0
- data/docs/android_docs.md +231 -213
- data/docs/ios_docs.md +240 -222
- data/ios_tests/lib/ios/specs/common/element/window.rb +2 -0
- data/ios_tests/lib/ios/specs/driver.rb +6 -0
- data/ios_tests/lib/ios/specs/ios/element/generic.rb +3 -1
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +18 -2
- data/lib/appium_lib/common/helper.rb +3 -3
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/common/wait.rb +5 -5
- data/lib/appium_lib/device/device.rb +11 -3
- data/lib/appium_lib/device/touch_actions.rb +1 -2
- data/lib/appium_lib/driver.rb +15 -2
- data/lib/appium_lib/ios/helper.rb +3 -29
- data/release_notes.md +21 -0
- metadata +2 -2
data/docs/ios_docs.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L74)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
@@ -26,7 +26,7 @@ __Returns:__
|
|
26
26
|
|
27
27
|
--
|
28
28
|
|
29
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
29
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L110)
|
30
30
|
|
31
31
|
> def self.load_settings(opts = {})
|
32
32
|
|
@@ -55,7 +55,7 @@ __Returns:__
|
|
55
55
|
|
56
56
|
--
|
57
57
|
|
58
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
58
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L116)
|
59
59
|
|
60
60
|
> def self.expand_required_files(base_dir, file_paths)
|
61
61
|
|
@@ -73,7 +73,7 @@ __Returns:__
|
|
73
73
|
|
74
74
|
--
|
75
75
|
|
76
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
76
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L148)
|
77
77
|
|
78
78
|
> def self.symbolize_keys(hash)
|
79
79
|
|
@@ -84,7 +84,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
84
84
|
|
85
85
|
--
|
86
86
|
|
87
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
87
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L169)
|
88
88
|
|
89
89
|
> def self.promote_singleton_appium_methods(modules)
|
90
90
|
|
@@ -102,7 +102,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
102
102
|
|
103
103
|
--
|
104
104
|
|
105
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
105
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L222)
|
106
106
|
|
107
107
|
> def self.promote_appium_methods(class_array)
|
108
108
|
|
@@ -132,7 +132,7 @@ __Parameters:__
|
|
132
132
|
|
133
133
|
--
|
134
134
|
|
135
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
135
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L254)
|
136
136
|
|
137
137
|
> def self.init_caps_for_appium(opts_caps = {})
|
138
138
|
|
@@ -142,7 +142,7 @@ https://github.com/SeleniumHQ/selenium/blob/selenium-3.0.1/rb/lib/selenium/webdr
|
|
142
142
|
|
143
143
|
--
|
144
144
|
|
145
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
145
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L272)
|
146
146
|
|
147
147
|
> def global_webdriver_http_sleep
|
148
148
|
|
@@ -150,7 +150,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
150
150
|
|
151
151
|
--
|
152
152
|
|
153
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
153
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L272)
|
154
154
|
|
155
155
|
> def global_webdriver_http_sleep=(value)
|
156
156
|
|
@@ -158,7 +158,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
158
158
|
|
159
159
|
--
|
160
160
|
|
161
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
161
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L274)
|
162
162
|
|
163
163
|
> def caps
|
164
164
|
|
@@ -166,7 +166,7 @@ Selenium webdriver capabilities
|
|
166
166
|
|
167
167
|
--
|
168
168
|
|
169
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
169
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L274)
|
170
170
|
|
171
171
|
> def caps=(value)
|
172
172
|
|
@@ -174,7 +174,7 @@ Selenium webdriver capabilities
|
|
174
174
|
|
175
175
|
--
|
176
176
|
|
177
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
177
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L276)
|
178
178
|
|
179
179
|
> def custom_url
|
180
180
|
|
@@ -182,7 +182,7 @@ Custom URL for the selenium server
|
|
182
182
|
|
183
183
|
--
|
184
184
|
|
185
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
185
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L276)
|
186
186
|
|
187
187
|
> def custom_url=(value)
|
188
188
|
|
@@ -190,7 +190,7 @@ Custom URL for the selenium server
|
|
190
190
|
|
191
191
|
--
|
192
192
|
|
193
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
193
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L278)
|
194
194
|
|
195
195
|
> def export_session
|
196
196
|
|
@@ -198,7 +198,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
198
198
|
|
199
199
|
--
|
200
200
|
|
201
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
201
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L278)
|
202
202
|
|
203
203
|
> def export_session=(value)
|
204
204
|
|
@@ -206,7 +206,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
206
206
|
|
207
207
|
--
|
208
208
|
|
209
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
209
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L283)
|
210
210
|
|
211
211
|
> def default_wait
|
212
212
|
|
@@ -220,7 +220,7 @@ __Returns:__
|
|
220
220
|
|
221
221
|
--
|
222
222
|
|
223
|
-
##### [default_wait=](https://github.com/appium/ruby_lib/blob/
|
223
|
+
##### [default_wait=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L283)
|
224
224
|
|
225
225
|
> def default_wait=(value)
|
226
226
|
|
@@ -234,7 +234,7 @@ __Returns:__
|
|
234
234
|
|
235
235
|
--
|
236
236
|
|
237
|
-
##### [last_waits](https://github.com/appium/ruby_lib/blob/
|
237
|
+
##### [last_waits](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L285)
|
238
238
|
|
239
239
|
> def last_waits
|
240
240
|
|
@@ -242,7 +242,7 @@ Array of previous wait time values
|
|
242
242
|
|
243
243
|
--
|
244
244
|
|
245
|
-
##### [last_waits=](https://github.com/appium/ruby_lib/blob/
|
245
|
+
##### [last_waits=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L285)
|
246
246
|
|
247
247
|
> def last_waits=(value)
|
248
248
|
|
@@ -250,7 +250,7 @@ Array of previous wait time values
|
|
250
250
|
|
251
251
|
--
|
252
252
|
|
253
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
253
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L287)
|
254
254
|
|
255
255
|
> def sauce_username
|
256
256
|
|
@@ -258,7 +258,7 @@ Username for use on Sauce Labs
|
|
258
258
|
|
259
259
|
--
|
260
260
|
|
261
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
261
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L287)
|
262
262
|
|
263
263
|
> def sauce_username=(value)
|
264
264
|
|
@@ -266,7 +266,7 @@ Username for use on Sauce Labs
|
|
266
266
|
|
267
267
|
--
|
268
268
|
|
269
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
269
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L289)
|
270
270
|
|
271
271
|
> def sauce_access_key
|
272
272
|
|
@@ -274,7 +274,7 @@ Access Key for use on Sauce Labs
|
|
274
274
|
|
275
275
|
--
|
276
276
|
|
277
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
277
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L289)
|
278
278
|
|
279
279
|
> def sauce_access_key=(value)
|
280
280
|
|
@@ -282,7 +282,7 @@ Access Key for use on Sauce Labs
|
|
282
282
|
|
283
283
|
--
|
284
284
|
|
285
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
285
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L291)
|
286
286
|
|
287
287
|
> def appium_port
|
288
288
|
|
@@ -290,7 +290,7 @@ Appium's server port
|
|
290
290
|
|
291
291
|
--
|
292
292
|
|
293
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
293
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L291)
|
294
294
|
|
295
295
|
> def appium_port=(value)
|
296
296
|
|
@@ -298,7 +298,7 @@ Appium's server port
|
|
298
298
|
|
299
299
|
--
|
300
300
|
|
301
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
301
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L293)
|
302
302
|
|
303
303
|
> def appium_device
|
304
304
|
|
@@ -306,7 +306,7 @@ Device type to request from the appium server
|
|
306
306
|
|
307
307
|
--
|
308
308
|
|
309
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
309
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L293)
|
310
310
|
|
311
311
|
> def appium_device=(value)
|
312
312
|
|
@@ -314,7 +314,7 @@ Device type to request from the appium server
|
|
314
314
|
|
315
315
|
--
|
316
316
|
|
317
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
317
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L295)
|
318
318
|
|
319
319
|
> def automation_name
|
320
320
|
|
@@ -322,7 +322,7 @@ Automation name sent to appium server
|
|
322
322
|
|
323
323
|
--
|
324
324
|
|
325
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
325
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L297)
|
326
326
|
|
327
327
|
> def appium_server_version
|
328
328
|
|
@@ -343,7 +343,7 @@ __Returns:__
|
|
343
343
|
|
344
344
|
--
|
345
345
|
|
346
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
346
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L299)
|
347
347
|
|
348
348
|
> def appium_debug
|
349
349
|
|
@@ -351,7 +351,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
351
351
|
|
352
352
|
--
|
353
353
|
|
354
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
354
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L299)
|
355
355
|
|
356
356
|
> def appium_debug=(value)
|
357
357
|
|
@@ -359,7 +359,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
359
359
|
|
360
360
|
--
|
361
361
|
|
362
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
362
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L301)
|
363
363
|
|
364
364
|
> def listener
|
365
365
|
|
@@ -367,7 +367,7 @@ instance of AbstractEventListener for logging support
|
|
367
367
|
|
368
368
|
--
|
369
369
|
|
370
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
370
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L301)
|
371
371
|
|
372
372
|
> def listener=(value)
|
373
373
|
|
@@ -375,7 +375,7 @@ instance of AbstractEventListener for logging support
|
|
375
375
|
|
376
376
|
--
|
377
377
|
|
378
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
378
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L304)
|
379
379
|
|
380
380
|
> def driver
|
381
381
|
|
@@ -387,7 +387,7 @@ __Returns:__
|
|
387
387
|
|
388
388
|
--
|
389
389
|
|
390
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
390
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L325)
|
391
391
|
|
392
392
|
> def initialize(opts = {})
|
393
393
|
|
@@ -418,7 +418,7 @@ __Returns:__
|
|
418
418
|
|
419
419
|
--
|
420
420
|
|
421
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
421
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L398)
|
422
422
|
|
423
423
|
> def driver_attributes
|
424
424
|
|
@@ -426,7 +426,7 @@ Returns a hash of the driver attributes
|
|
426
426
|
|
427
427
|
--
|
428
428
|
|
429
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
429
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L420)
|
430
430
|
|
431
431
|
> def device_is_android?
|
432
432
|
|
@@ -438,7 +438,7 @@ __Returns:__
|
|
438
438
|
|
439
439
|
--
|
440
440
|
|
441
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
441
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L426)
|
442
442
|
|
443
443
|
> def automation_name_is_xcuitest?
|
444
444
|
|
@@ -450,7 +450,7 @@ __Returns:__
|
|
450
450
|
|
451
451
|
--
|
452
452
|
|
453
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
453
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L433)
|
454
454
|
|
455
455
|
> def check_server_version_xcuitest
|
456
456
|
|
@@ -463,7 +463,25 @@ __Returns:__
|
|
463
463
|
|
464
464
|
--
|
465
465
|
|
466
|
-
##### [
|
466
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L465)
|
467
|
+
|
468
|
+
> def appium_client_version
|
469
|
+
|
470
|
+
Returns the client's version info
|
471
|
+
|
472
|
+
```ruby
|
473
|
+
{
|
474
|
+
"version" => "9.1.1"
|
475
|
+
}
|
476
|
+
```
|
477
|
+
|
478
|
+
__Returns:__
|
479
|
+
|
480
|
+
[Hash]
|
481
|
+
|
482
|
+
--
|
483
|
+
|
484
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L477)
|
467
485
|
|
468
486
|
> def self.absolute_app_path(opts)
|
469
487
|
|
@@ -480,7 +498,7 @@ __Returns:__
|
|
480
498
|
|
481
499
|
--
|
482
500
|
|
483
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
501
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L510)
|
484
502
|
|
485
503
|
> def server_url
|
486
504
|
|
@@ -492,7 +510,7 @@ __Returns:__
|
|
492
510
|
|
493
511
|
--
|
494
512
|
|
495
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
513
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L521)
|
496
514
|
|
497
515
|
> def restart
|
498
516
|
|
@@ -504,7 +522,7 @@ __Returns:__
|
|
504
522
|
|
505
523
|
--
|
506
524
|
|
507
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
525
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L532)
|
508
526
|
|
509
527
|
> def screenshot(png_save_path)
|
510
528
|
|
@@ -522,7 +540,7 @@ __Returns:__
|
|
522
540
|
|
523
541
|
--
|
524
542
|
|
525
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
543
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L539)
|
526
544
|
|
527
545
|
> def driver_quit
|
528
546
|
|
@@ -534,7 +552,7 @@ __Returns:__
|
|
534
552
|
|
535
553
|
--
|
536
554
|
|
537
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
555
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L549)
|
538
556
|
|
539
557
|
> def start_driver
|
540
558
|
|
@@ -546,7 +564,7 @@ __Returns:__
|
|
546
564
|
|
547
565
|
--
|
548
566
|
|
549
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
567
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L586)
|
550
568
|
|
551
569
|
> def no_wait
|
552
570
|
|
@@ -554,7 +572,7 @@ Set implicit wait and default_wait to zero.
|
|
554
572
|
|
555
573
|
--
|
556
574
|
|
557
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
575
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L605)
|
558
576
|
|
559
577
|
> def set_wait(timeout = nil)
|
560
578
|
|
@@ -579,9 +597,9 @@ __Returns:__
|
|
579
597
|
|
580
598
|
--
|
581
599
|
|
582
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
600
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L632)
|
583
601
|
|
584
|
-
> def exists(pre_check = 0, post_check = @default_wait
|
602
|
+
> def exists(pre_check = 0, post_check = @default_wait)
|
585
603
|
|
586
604
|
Returns existence of element.
|
587
605
|
|
@@ -605,7 +623,7 @@ __Returns:__
|
|
605
623
|
|
606
624
|
--
|
607
625
|
|
608
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
626
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L656)
|
609
627
|
|
610
628
|
> def execute_script(script, *args)
|
611
629
|
|
@@ -623,7 +641,7 @@ __Returns:__
|
|
623
641
|
|
624
642
|
--
|
625
643
|
|
626
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
644
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L664)
|
627
645
|
|
628
646
|
> def find_elements(*args)
|
629
647
|
|
@@ -639,7 +657,7 @@ __Returns:__
|
|
639
657
|
|
640
658
|
--
|
641
659
|
|
642
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
660
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L672)
|
643
661
|
|
644
662
|
> def find_element(*args)
|
645
663
|
|
@@ -655,7 +673,7 @@ __Returns:__
|
|
655
673
|
|
656
674
|
--
|
657
675
|
|
658
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
676
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L685)
|
659
677
|
|
660
678
|
> def set_location(opts = {})
|
661
679
|
|
@@ -671,7 +689,7 @@ __Returns:__
|
|
671
689
|
|
672
690
|
--
|
673
691
|
|
674
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
692
|
+
##### [x](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/driver.rb#L695)
|
675
693
|
|
676
694
|
> def x
|
677
695
|
|
@@ -684,7 +702,7 @@ __Returns:__
|
|
684
702
|
|
685
703
|
--
|
686
704
|
|
687
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
705
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/logger.rb#L13)
|
688
706
|
|
689
707
|
> def logger=(value)
|
690
708
|
|
@@ -696,7 +714,7 @@ __Parameters:__
|
|
696
714
|
|
697
715
|
--
|
698
716
|
|
699
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
717
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/logger.rb#L17)
|
700
718
|
|
701
719
|
> def logger
|
702
720
|
|
@@ -704,7 +722,7 @@ __Parameters:__
|
|
704
722
|
|
705
723
|
--
|
706
724
|
|
707
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
725
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L7)
|
708
726
|
|
709
727
|
> def app_strings
|
710
728
|
|
@@ -715,7 +733,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
715
733
|
|
716
734
|
--
|
717
735
|
|
718
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
736
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L13)
|
719
737
|
|
720
738
|
> def background_app
|
721
739
|
|
@@ -724,7 +742,7 @@ This is a blocking application
|
|
724
742
|
|
725
743
|
--
|
726
744
|
|
727
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
745
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L18)
|
728
746
|
|
729
747
|
> def current_activity
|
730
748
|
|
@@ -732,7 +750,7 @@ This is a blocking application
|
|
732
750
|
|
733
751
|
--
|
734
752
|
|
735
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
753
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L20)
|
736
754
|
|
737
755
|
> def launch_app
|
738
756
|
|
@@ -740,7 +758,7 @@ Start the simulator and application configured with desired capabilities
|
|
740
758
|
|
741
759
|
--
|
742
760
|
|
743
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
761
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L23)
|
744
762
|
|
745
763
|
> def reset
|
746
764
|
|
@@ -748,7 +766,7 @@ Reset the device, relaunching the application.
|
|
748
766
|
|
749
767
|
--
|
750
768
|
|
751
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
769
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L26)
|
752
770
|
|
753
771
|
> def shake
|
754
772
|
|
@@ -756,7 +774,7 @@ Cause the device to shake
|
|
756
774
|
|
757
775
|
--
|
758
776
|
|
759
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
777
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L29)
|
760
778
|
|
761
779
|
> def toggle_flight_mode
|
762
780
|
|
@@ -764,7 +782,7 @@ Toggle flight mode on or off
|
|
764
782
|
|
765
783
|
--
|
766
784
|
|
767
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
785
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L32)
|
768
786
|
|
769
787
|
> def device_locked?
|
770
788
|
|
@@ -772,7 +790,7 @@ Toggle flight mode on or off
|
|
772
790
|
|
773
791
|
--
|
774
792
|
|
775
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
793
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L34)
|
776
794
|
|
777
795
|
> def hide_keyboard
|
778
796
|
|
@@ -785,7 +803,7 @@ Defaults to 'Done'.
|
|
785
803
|
|
786
804
|
--
|
787
805
|
|
788
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
806
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L43)
|
789
807
|
|
790
808
|
> def press_keycode
|
791
809
|
|
@@ -800,7 +818,7 @@ __Parameters:__
|
|
800
818
|
|
801
819
|
--
|
802
820
|
|
803
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
821
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L49)
|
804
822
|
|
805
823
|
> def long_press_keycode
|
806
824
|
|
@@ -815,7 +833,7 @@ __Parameters:__
|
|
815
833
|
|
816
834
|
--
|
817
835
|
|
818
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
836
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L55)
|
819
837
|
|
820
838
|
> def push_file
|
821
839
|
|
@@ -829,7 +847,7 @@ __Parameters:__
|
|
829
847
|
|
830
848
|
--
|
831
849
|
|
832
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
850
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L60)
|
833
851
|
|
834
852
|
> def pull_file
|
835
853
|
|
@@ -846,7 +864,7 @@ __Parameters:__
|
|
846
864
|
|
847
865
|
--
|
848
866
|
|
849
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
867
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L70)
|
850
868
|
|
851
869
|
> def pull_folder
|
852
870
|
|
@@ -861,7 +879,7 @@ __Parameters:__
|
|
861
879
|
|
862
880
|
--
|
863
881
|
|
864
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
882
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L78)
|
865
883
|
|
866
884
|
> def touch_id
|
867
885
|
|
@@ -878,7 +896,7 @@ Defaults to true.
|
|
878
896
|
|
879
897
|
--
|
880
898
|
|
881
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
899
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L87)
|
882
900
|
|
883
901
|
> def end_coverage
|
884
902
|
|
@@ -892,7 +910,7 @@ __Parameters:__
|
|
892
910
|
|
893
911
|
--
|
894
912
|
|
895
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
913
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L92)
|
896
914
|
|
897
915
|
> def get_settings
|
898
916
|
|
@@ -900,7 +918,7 @@ Get appium Settings for current test session
|
|
900
918
|
|
901
919
|
--
|
902
920
|
|
903
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
921
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L364)
|
904
922
|
|
905
923
|
> def extend_search_contexts
|
906
924
|
|
@@ -908,7 +926,7 @@ Get appium Settings for current test session
|
|
908
926
|
|
909
927
|
--
|
910
928
|
|
911
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
929
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L364)
|
912
930
|
|
913
931
|
> def find_element
|
914
932
|
|
@@ -916,7 +934,7 @@ Get appium Settings for current test session
|
|
916
934
|
|
917
935
|
--
|
918
936
|
|
919
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
937
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L364)
|
920
938
|
|
921
939
|
> def find_elements
|
922
940
|
|
@@ -928,7 +946,7 @@ find_element/s with their accessibility_id
|
|
928
946
|
|
929
947
|
--
|
930
948
|
|
931
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
949
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L396)
|
932
950
|
|
933
951
|
> def add_touch_actions
|
934
952
|
|
@@ -936,7 +954,7 @@ find_element/s with their accessibility_id
|
|
936
954
|
|
937
955
|
--
|
938
956
|
|
939
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
957
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L419)
|
940
958
|
|
941
959
|
> def add_ime_actions
|
942
960
|
|
@@ -944,7 +962,7 @@ find_element/s with their accessibility_id
|
|
944
962
|
|
945
963
|
--
|
946
964
|
|
947
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
965
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L494)
|
948
966
|
|
949
967
|
> def set_context
|
950
968
|
|
@@ -959,7 +977,7 @@ __Parameters:__
|
|
959
977
|
|
960
978
|
--
|
961
979
|
|
962
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
980
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L502)
|
963
981
|
|
964
982
|
> def current_context
|
965
983
|
|
@@ -971,7 +989,7 @@ __Returns:__
|
|
971
989
|
|
972
990
|
--
|
973
991
|
|
974
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
992
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L505)
|
975
993
|
|
976
994
|
> def available_contexts
|
977
995
|
|
@@ -983,7 +1001,7 @@ __Returns:__
|
|
983
1001
|
|
984
1002
|
--
|
985
1003
|
|
986
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1004
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L515)
|
987
1005
|
|
988
1006
|
> def within_context(context)
|
989
1007
|
|
@@ -999,7 +1017,7 @@ __Parameters:__
|
|
999
1017
|
|
1000
1018
|
--
|
1001
1019
|
|
1002
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1020
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/device.rb#L523)
|
1003
1021
|
|
1004
1022
|
> def switch_to_default_context
|
1005
1023
|
|
@@ -1007,7 +1025,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1007
1025
|
|
1008
1026
|
--
|
1009
1027
|
|
1010
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1028
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/multi_touch.rb#L28)
|
1011
1029
|
|
1012
1030
|
> def pinch(percentage = 25, auto_perform = true)
|
1013
1031
|
|
@@ -1026,7 +1044,7 @@ __Parameters:__
|
|
1026
1044
|
|
1027
1045
|
--
|
1028
1046
|
|
1029
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1047
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/multi_touch.rb#L64)
|
1030
1048
|
|
1031
1049
|
> def zoom(percentage = 200, auto_perform = true)
|
1032
1050
|
|
@@ -1045,7 +1063,7 @@ __Parameters:__
|
|
1045
1063
|
|
1046
1064
|
--
|
1047
1065
|
|
1048
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1066
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/multi_touch.rb#L95)
|
1049
1067
|
|
1050
1068
|
> def initialize
|
1051
1069
|
|
@@ -1057,7 +1075,7 @@ __Returns:__
|
|
1057
1075
|
|
1058
1076
|
--
|
1059
1077
|
|
1060
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1078
|
+
##### [add](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/multi_touch.rb#L101)
|
1061
1079
|
|
1062
1080
|
> def add(chain)
|
1063
1081
|
|
@@ -1069,7 +1087,7 @@ __Parameters:__
|
|
1069
1087
|
|
1070
1088
|
--
|
1071
1089
|
|
1072
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1090
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/multi_touch.rb#L106)
|
1073
1091
|
|
1074
1092
|
> def perform
|
1075
1093
|
|
@@ -1077,7 +1095,7 @@ Ask Appium to perform the actions
|
|
1077
1095
|
|
1078
1096
|
--
|
1079
1097
|
|
1080
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1098
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L11)
|
1081
1099
|
|
1082
1100
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1083
1101
|
|
@@ -1085,7 +1103,7 @@ Ask Appium to perform the actions
|
|
1085
1103
|
|
1086
1104
|
--
|
1087
1105
|
|
1088
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1106
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L12)
|
1089
1107
|
|
1090
1108
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1091
1109
|
|
@@ -1093,7 +1111,7 @@ Ask Appium to perform the actions
|
|
1093
1111
|
|
1094
1112
|
--
|
1095
1113
|
|
1096
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1114
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L26)
|
1097
1115
|
|
1098
1116
|
> def actions
|
1099
1117
|
|
@@ -1101,7 +1119,7 @@ Returns the value of attribute actions
|
|
1101
1119
|
|
1102
1120
|
--
|
1103
1121
|
|
1104
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1122
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L28)
|
1105
1123
|
|
1106
1124
|
> def initialize
|
1107
1125
|
|
@@ -1113,7 +1131,7 @@ __Returns:__
|
|
1113
1131
|
|
1114
1132
|
--
|
1115
1133
|
|
1116
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1134
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L36)
|
1117
1135
|
|
1118
1136
|
> def move_to(opts)
|
1119
1137
|
|
@@ -1125,7 +1143,7 @@ __Parameters:__
|
|
1125
1143
|
|
1126
1144
|
--
|
1127
1145
|
|
1128
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1146
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L46)
|
1129
1147
|
|
1130
1148
|
> def long_press(opts)
|
1131
1149
|
|
@@ -1143,7 +1161,7 @@ __Parameters:__
|
|
1143
1161
|
|
1144
1162
|
--
|
1145
1163
|
|
1146
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1164
|
+
##### [press](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L58)
|
1147
1165
|
|
1148
1166
|
> def press(opts)
|
1149
1167
|
|
@@ -1156,7 +1174,7 @@ __Parameters:__
|
|
1156
1174
|
|
1157
1175
|
--
|
1158
1176
|
|
1159
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1177
|
+
##### [release](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L69)
|
1160
1178
|
|
1161
1179
|
> def release(opts = nil)
|
1162
1180
|
|
@@ -1168,7 +1186,7 @@ __Parameters:__
|
|
1168
1186
|
|
1169
1187
|
--
|
1170
1188
|
|
1171
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1189
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L80)
|
1172
1190
|
|
1173
1191
|
> def tap(opts)
|
1174
1192
|
|
@@ -1180,7 +1198,7 @@ __Parameters:__
|
|
1180
1198
|
|
1181
1199
|
--
|
1182
1200
|
|
1183
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1201
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L93)
|
1184
1202
|
|
1185
1203
|
> def double_tap(opts)
|
1186
1204
|
|
@@ -1192,7 +1210,7 @@ __Parameters:__
|
|
1192
1210
|
|
1193
1211
|
--
|
1194
1212
|
|
1195
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1213
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L104)
|
1196
1214
|
|
1197
1215
|
> def two_finger_tap(opts)
|
1198
1216
|
|
@@ -1204,7 +1222,7 @@ __Parameters:__
|
|
1204
1222
|
|
1205
1223
|
--
|
1206
1224
|
|
1207
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1225
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L112)
|
1208
1226
|
|
1209
1227
|
> def wait(milliseconds)
|
1210
1228
|
|
@@ -1216,7 +1234,7 @@ __Parameters:__
|
|
1216
1234
|
|
1217
1235
|
--
|
1218
1236
|
|
1219
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1237
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L127)
|
1220
1238
|
|
1221
1239
|
> def swipe(opts, ele = nil)
|
1222
1240
|
|
@@ -1230,7 +1248,7 @@ __Parameters:__
|
|
1230
1248
|
|
1231
1249
|
--
|
1232
1250
|
|
1233
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1251
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L161)
|
1234
1252
|
|
1235
1253
|
> def perform
|
1236
1254
|
|
@@ -1238,7 +1256,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1238
1256
|
|
1239
1257
|
--
|
1240
1258
|
|
1241
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1259
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L167)
|
1242
1260
|
|
1243
1261
|
> def cancel
|
1244
1262
|
|
@@ -1246,7 +1264,7 @@ Does nothing, currently.
|
|
1246
1264
|
|
1247
1265
|
--
|
1248
1266
|
|
1249
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1267
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L175)
|
1250
1268
|
|
1251
1269
|
> def chain_method(method, args = nil)
|
1252
1270
|
|
@@ -1254,7 +1272,7 @@ Does nothing, currently.
|
|
1254
1272
|
|
1255
1273
|
--
|
1256
1274
|
|
1257
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1275
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/device/touch_actions.rb#L181)
|
1258
1276
|
|
1259
1277
|
> def args_with_ele_ref(args)
|
1260
1278
|
|
@@ -1262,16 +1280,16 @@ Does nothing, currently.
|
|
1262
1280
|
|
1263
1281
|
--
|
1264
1282
|
|
1265
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1283
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/wait.rb#L9)
|
1266
1284
|
|
1267
|
-
> def _generic_wait(opts = {}
|
1285
|
+
> def _generic_wait(opts = {})
|
1268
1286
|
|
1269
1287
|
Wait code from the selenium Ruby gem
|
1270
1288
|
https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f0c20/rb/lib/selenium/webdriver/common/wait.rb
|
1271
1289
|
|
1272
1290
|
--
|
1273
1291
|
|
1274
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1292
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/wait.rb#L48)
|
1275
1293
|
|
1276
1294
|
> def _process_wait_opts(opts)
|
1277
1295
|
|
@@ -1279,11 +1297,11 @@ process opts before calling _generic_wait
|
|
1279
1297
|
|
1280
1298
|
--
|
1281
1299
|
|
1282
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1300
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/wait.rb#L69)
|
1283
1301
|
|
1284
1302
|
> def wait_true(opts = {}, &block)
|
1285
1303
|
|
1286
|
-
Check every interval seconds to see if
|
1304
|
+
Check every interval seconds to see if yield returns a truthy value.
|
1287
1305
|
Note this isn't a strict boolean true, any truthy value is accepted.
|
1288
1306
|
false and nil are considered failures.
|
1289
1307
|
Give up after timeout seconds.
|
@@ -1299,11 +1317,11 @@ __Parameters:__
|
|
1299
1317
|
|
1300
1318
|
--
|
1301
1319
|
|
1302
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1320
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/wait.rb#L87)
|
1303
1321
|
|
1304
1322
|
> def wait(opts = {}, &block)
|
1305
1323
|
|
1306
|
-
Check every interval seconds to see if
|
1324
|
+
Check every interval seconds to see if yield doesn't raise an exception.
|
1307
1325
|
Give up after timeout seconds.
|
1308
1326
|
|
1309
1327
|
Wait code from the selenium Ruby gem
|
@@ -1317,15 +1335,15 @@ __Parameters:__
|
|
1317
1335
|
|
1318
1336
|
--
|
1319
1337
|
|
1320
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1338
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L24)
|
1321
1339
|
|
1322
|
-
> def ignore
|
1340
|
+
> def ignore
|
1323
1341
|
|
1324
|
-
Return
|
1342
|
+
Return yield and ignore any exceptions.
|
1325
1343
|
|
1326
1344
|
--
|
1327
1345
|
|
1328
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1346
|
+
##### [back](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L31)
|
1329
1347
|
|
1330
1348
|
> def back
|
1331
1349
|
|
@@ -1337,7 +1355,7 @@ __Returns:__
|
|
1337
1355
|
|
1338
1356
|
--
|
1339
1357
|
|
1340
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1358
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L36)
|
1341
1359
|
|
1342
1360
|
> def session_id
|
1343
1361
|
|
@@ -1345,7 +1363,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1345
1363
|
|
1346
1364
|
--
|
1347
1365
|
|
1348
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1366
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L44)
|
1349
1367
|
|
1350
1368
|
> def xpath(xpath_str)
|
1351
1369
|
|
@@ -1361,7 +1379,7 @@ __Returns:__
|
|
1361
1379
|
|
1362
1380
|
--
|
1363
1381
|
|
1364
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1382
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L52)
|
1365
1383
|
|
1366
1384
|
> def xpaths(xpath_str)
|
1367
1385
|
|
@@ -1377,7 +1395,7 @@ __Returns:__
|
|
1377
1395
|
|
1378
1396
|
--
|
1379
1397
|
|
1380
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1398
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L56)
|
1381
1399
|
|
1382
1400
|
> def _print_source(source)
|
1383
1401
|
|
@@ -1385,7 +1403,7 @@ __Returns:__
|
|
1385
1403
|
|
1386
1404
|
--
|
1387
1405
|
|
1388
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1406
|
+
##### [result](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L69)
|
1389
1407
|
|
1390
1408
|
> def result
|
1391
1409
|
|
@@ -1393,7 +1411,7 @@ Returns the value of attribute result
|
|
1393
1411
|
|
1394
1412
|
--
|
1395
1413
|
|
1396
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1414
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L71)
|
1397
1415
|
|
1398
1416
|
> def initialize
|
1399
1417
|
|
@@ -1405,7 +1423,7 @@ __Returns:__
|
|
1405
1423
|
|
1406
1424
|
--
|
1407
1425
|
|
1408
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1426
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L75)
|
1409
1427
|
|
1410
1428
|
> def reset
|
1411
1429
|
|
@@ -1413,7 +1431,7 @@ __Returns:__
|
|
1413
1431
|
|
1414
1432
|
--
|
1415
1433
|
|
1416
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1434
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L80)
|
1417
1435
|
|
1418
1436
|
> def start_element(name, attrs = [])
|
1419
1437
|
|
@@ -1421,7 +1439,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1421
1439
|
|
1422
1440
|
--
|
1423
1441
|
|
1424
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1442
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L86)
|
1425
1443
|
|
1426
1444
|
> def formatted_result
|
1427
1445
|
|
@@ -1429,7 +1447,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1429
1447
|
|
1430
1448
|
--
|
1431
1449
|
|
1432
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1450
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L97)
|
1433
1451
|
|
1434
1452
|
> def get_page_class
|
1435
1453
|
|
@@ -1437,7 +1455,7 @@ Returns a string of class counts of visible elements.
|
|
1437
1455
|
|
1438
1456
|
--
|
1439
1457
|
|
1440
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1458
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L108)
|
1441
1459
|
|
1442
1460
|
> def page_class
|
1443
1461
|
|
@@ -1446,7 +1464,7 @@ Useful for appium_console.
|
|
1446
1464
|
|
1447
1465
|
--
|
1448
1466
|
|
1449
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1467
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L118)
|
1450
1468
|
|
1451
1469
|
> def px_to_window_rel(opts = {})
|
1452
1470
|
|
@@ -1458,7 +1476,7 @@ px_to_window_rel x: 50, y: 150
|
|
1458
1476
|
|
1459
1477
|
--
|
1460
1478
|
|
1461
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1479
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L137)
|
1462
1480
|
|
1463
1481
|
> def xml_keys(target)
|
1464
1482
|
|
@@ -1474,7 +1492,7 @@ __Returns:__
|
|
1474
1492
|
|
1475
1493
|
--
|
1476
1494
|
|
1477
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1495
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L145)
|
1478
1496
|
|
1479
1497
|
> def xml_values(target)
|
1480
1498
|
|
@@ -1490,7 +1508,7 @@ __Returns:__
|
|
1490
1508
|
|
1491
1509
|
--
|
1492
1510
|
|
1493
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1511
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L153)
|
1494
1512
|
|
1495
1513
|
> def resolve_id(id)
|
1496
1514
|
|
@@ -1506,7 +1524,7 @@ __Returns:__
|
|
1506
1524
|
|
1507
1525
|
--
|
1508
1526
|
|
1509
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1527
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L159)
|
1510
1528
|
|
1511
1529
|
> def filter
|
1512
1530
|
|
@@ -1514,7 +1532,7 @@ Returns the value of attribute filter
|
|
1514
1532
|
|
1515
1533
|
--
|
1516
1534
|
|
1517
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1535
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L162)
|
1518
1536
|
|
1519
1537
|
> def filter=(value)
|
1520
1538
|
|
@@ -1522,7 +1540,7 @@ convert to string to support symbols
|
|
1522
1540
|
|
1523
1541
|
--
|
1524
1542
|
|
1525
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1543
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L168)
|
1526
1544
|
|
1527
1545
|
> def initialize
|
1528
1546
|
|
@@ -1534,7 +1552,7 @@ __Returns:__
|
|
1534
1552
|
|
1535
1553
|
--
|
1536
1554
|
|
1537
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1555
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L173)
|
1538
1556
|
|
1539
1557
|
> def reset
|
1540
1558
|
|
@@ -1542,7 +1560,7 @@ __Returns:__
|
|
1542
1560
|
|
1543
1561
|
--
|
1544
1562
|
|
1545
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1563
|
+
##### [result](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L179)
|
1546
1564
|
|
1547
1565
|
> def result
|
1548
1566
|
|
@@ -1550,7 +1568,7 @@ __Returns:__
|
|
1550
1568
|
|
1551
1569
|
--
|
1552
1570
|
|
1553
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1571
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L195)
|
1554
1572
|
|
1555
1573
|
> def start_element(name, attrs = [])
|
1556
1574
|
|
@@ -1558,7 +1576,7 @@ __Returns:__
|
|
1558
1576
|
|
1559
1577
|
--
|
1560
1578
|
|
1561
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1579
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L204)
|
1562
1580
|
|
1563
1581
|
> def end_element(name)
|
1564
1582
|
|
@@ -1566,7 +1584,7 @@ __Returns:__
|
|
1566
1584
|
|
1567
1585
|
--
|
1568
1586
|
|
1569
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1587
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L210)
|
1570
1588
|
|
1571
1589
|
> def characters(chars)
|
1572
1590
|
|
@@ -1574,7 +1592,7 @@ __Returns:__
|
|
1574
1592
|
|
1575
1593
|
--
|
1576
1594
|
|
1577
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1595
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/helper.rb#L217)
|
1578
1596
|
|
1579
1597
|
> def _no_such_element
|
1580
1598
|
|
@@ -1582,7 +1600,7 @@ __Returns:__
|
|
1582
1600
|
|
1583
1601
|
--
|
1584
1602
|
|
1585
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1603
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/command.rb#L4)
|
1586
1604
|
|
1587
1605
|
> COMMAND_NO_ARG = {
|
1588
1606
|
|
@@ -1590,7 +1608,7 @@ __Returns:__
|
|
1590
1608
|
|
1591
1609
|
--
|
1592
1610
|
|
1593
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1611
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/command.rb#L23)
|
1594
1612
|
|
1595
1613
|
> COMMAND = {
|
1596
1614
|
|
@@ -1598,7 +1616,7 @@ __Returns:__
|
|
1598
1616
|
|
1599
1617
|
--
|
1600
1618
|
|
1601
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1619
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/search_context.rb#L5)
|
1602
1620
|
|
1603
1621
|
> FINDERS = {
|
1604
1622
|
|
@@ -1606,7 +1624,7 @@ rubocop:disable Style/MutableConstant
|
|
1606
1624
|
|
1607
1625
|
--
|
1608
1626
|
|
1609
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1627
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/element/window.rb#L5)
|
1610
1628
|
|
1611
1629
|
> def window_size
|
1612
1630
|
|
@@ -1614,7 +1632,7 @@ Get the window's size
|
|
1614
1632
|
|
1615
1633
|
--
|
1616
1634
|
|
1617
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1635
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L4) ios
|
1618
1636
|
|
1619
1637
|
> def filter
|
1620
1638
|
|
@@ -1622,7 +1640,7 @@ Returns the value of attribute filter
|
|
1622
1640
|
|
1623
1641
|
--
|
1624
1642
|
|
1625
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1643
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L4) ios
|
1626
1644
|
|
1627
1645
|
> def filter=(value)
|
1628
1646
|
|
@@ -1634,7 +1652,7 @@ __Parameters:__
|
|
1634
1652
|
|
1635
1653
|
--
|
1636
1654
|
|
1637
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1655
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L6) ios
|
1638
1656
|
|
1639
1657
|
> def start_element(type, attrs = [])
|
1640
1658
|
|
@@ -1642,7 +1660,7 @@ __Parameters:__
|
|
1642
1660
|
|
1643
1661
|
--
|
1644
1662
|
|
1645
|
-
##### [_print_attr](https://github.com/appium/ruby_lib/blob/
|
1663
|
+
##### [_print_attr](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L15) ios
|
1646
1664
|
|
1647
1665
|
> def _print_attr(type, name, label, value, hint)
|
1648
1666
|
|
@@ -1650,7 +1668,7 @@ __Parameters:__
|
|
1650
1668
|
|
1651
1669
|
--
|
1652
1670
|
|
1653
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1671
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L41) ios
|
1654
1672
|
|
1655
1673
|
> def ios_password(length = 1)
|
1656
1674
|
|
@@ -1668,7 +1686,7 @@ __Returns:__
|
|
1668
1686
|
|
1669
1687
|
--
|
1670
1688
|
|
1671
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1689
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L53) ios
|
1672
1690
|
|
1673
1691
|
> def get_page(element = source_window(0), class_name = nil)
|
1674
1692
|
|
@@ -1689,7 +1707,7 @@ __Returns:__
|
|
1689
1707
|
|
1690
1708
|
--
|
1691
1709
|
|
1692
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1710
|
+
##### [page](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L139) ios
|
1693
1711
|
|
1694
1712
|
> def page(opts = {})
|
1695
1713
|
|
@@ -1715,7 +1733,7 @@ __Returns:__
|
|
1715
1733
|
|
1716
1734
|
--
|
1717
1735
|
|
1718
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1736
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L170) ios
|
1719
1737
|
|
1720
1738
|
> def source_window(_window_number = 0)
|
1721
1739
|
|
@@ -1731,7 +1749,7 @@ __Returns:__
|
|
1731
1749
|
|
1732
1750
|
--
|
1733
1751
|
|
1734
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
1752
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L185) ios
|
1735
1753
|
|
1736
1754
|
> def page_window(window_number = 0)
|
1737
1755
|
|
@@ -1749,7 +1767,7 @@ __Returns:__
|
|
1749
1767
|
|
1750
1768
|
--
|
1751
1769
|
|
1752
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1770
|
+
##### [id](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L193) ios
|
1753
1771
|
|
1754
1772
|
> def id(id)
|
1755
1773
|
|
@@ -1765,7 +1783,7 @@ __Returns:__
|
|
1765
1783
|
|
1766
1784
|
--
|
1767
1785
|
|
1768
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
1786
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L199) ios
|
1769
1787
|
|
1770
1788
|
> def ios_version
|
1771
1789
|
|
@@ -1777,7 +1795,7 @@ __Returns:__
|
|
1777
1795
|
|
1778
1796
|
--
|
1779
1797
|
|
1780
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1798
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L212) ios
|
1781
1799
|
|
1782
1800
|
> def ele_index(class_name, index)
|
1783
1801
|
|
@@ -1795,7 +1813,7 @@ __Returns:__
|
|
1795
1813
|
|
1796
1814
|
--
|
1797
1815
|
|
1798
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
1816
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L247) ios
|
1799
1817
|
|
1800
1818
|
> def find_ele_by_attr(class_name, attr, value)
|
1801
1819
|
|
@@ -1816,7 +1834,7 @@ __Returns:__
|
|
1816
1834
|
|
1817
1835
|
--
|
1818
1836
|
|
1819
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
1837
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L257) ios
|
1820
1838
|
|
1821
1839
|
> def find_eles_by_attr(class_name, attr, value)
|
1822
1840
|
|
@@ -1837,7 +1855,7 @@ __Returns:__
|
|
1837
1855
|
|
1838
1856
|
--
|
1839
1857
|
|
1840
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1858
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L280) ios
|
1841
1859
|
|
1842
1860
|
> def find_ele_by_attr_include(class_name, attr, value)
|
1843
1861
|
|
@@ -1858,7 +1876,7 @@ __Returns:__
|
|
1858
1876
|
|
1859
1877
|
--
|
1860
1878
|
|
1861
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1879
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L290) ios
|
1862
1880
|
|
1863
1881
|
> def find_eles_by_attr_include(class_name, attr, value)
|
1864
1882
|
|
@@ -1879,7 +1897,7 @@ __Returns:__
|
|
1879
1897
|
|
1880
1898
|
--
|
1881
1899
|
|
1882
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1900
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L297) ios
|
1883
1901
|
|
1884
1902
|
> def first_ele(class_name)
|
1885
1903
|
|
@@ -1895,7 +1913,7 @@ __Returns:__
|
|
1895
1913
|
|
1896
1914
|
--
|
1897
1915
|
|
1898
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1916
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L308) ios
|
1899
1917
|
|
1900
1918
|
> def last_ele(class_name)
|
1901
1919
|
|
@@ -1911,7 +1929,7 @@ __Returns:__
|
|
1911
1929
|
|
1912
1930
|
--
|
1913
1931
|
|
1914
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1932
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L322) ios
|
1915
1933
|
|
1916
1934
|
> def tag(class_name)
|
1917
1935
|
|
@@ -1927,7 +1945,7 @@ __Returns:__
|
|
1927
1945
|
|
1928
1946
|
--
|
1929
1947
|
|
1930
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1948
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L334) ios
|
1931
1949
|
|
1932
1950
|
> def tags(class_name)
|
1933
1951
|
|
@@ -1943,7 +1961,7 @@ __Returns:__
|
|
1943
1961
|
|
1944
1962
|
--
|
1945
1963
|
|
1946
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1964
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L371) ios
|
1947
1965
|
|
1948
1966
|
> def ele_by_json_visible_contains(element, value)
|
1949
1967
|
|
@@ -1962,7 +1980,7 @@ __Returns:__
|
|
1962
1980
|
|
1963
1981
|
--
|
1964
1982
|
|
1965
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1983
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L380) ios
|
1966
1984
|
|
1967
1985
|
> def eles_by_json_visible_contains(element, value)
|
1968
1986
|
|
@@ -1981,7 +1999,7 @@ __Returns:__
|
|
1981
1999
|
|
1982
2000
|
--
|
1983
2001
|
|
1984
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2002
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L410) ios
|
1985
2003
|
|
1986
2004
|
> def ele_by_json_visible_exact(element, value)
|
1987
2005
|
|
@@ -2000,7 +2018,7 @@ __Returns:__
|
|
2000
2018
|
|
2001
2019
|
--
|
2002
2020
|
|
2003
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2021
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L419) ios
|
2004
2022
|
|
2005
2023
|
> def eles_by_json_visible_exact(element, value)
|
2006
2024
|
|
@@ -2019,7 +2037,7 @@ __Returns:__
|
|
2019
2037
|
|
2020
2038
|
--
|
2021
2039
|
|
2022
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
2040
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L484) ios
|
2023
2041
|
|
2024
2042
|
> def _all_pred(opts)
|
2025
2043
|
|
@@ -2029,7 +2047,7 @@ visible - if true, only visible elements are returned. default true
|
|
2029
2047
|
|
2030
2048
|
--
|
2031
2049
|
|
2032
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
2050
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L497) ios
|
2033
2051
|
|
2034
2052
|
> def ele_with_pred(opts)
|
2035
2053
|
|
@@ -2045,7 +2063,7 @@ __Returns:__
|
|
2045
2063
|
|
2046
2064
|
--
|
2047
2065
|
|
2048
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
2066
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L508) ios
|
2049
2067
|
|
2050
2068
|
> def eles_with_pred(opts)
|
2051
2069
|
|
@@ -2061,7 +2079,7 @@ __Returns:__
|
|
2061
2079
|
|
2062
2080
|
--
|
2063
2081
|
|
2064
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
2082
|
+
##### [source](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L514) ios
|
2065
2083
|
|
2066
2084
|
> def source
|
2067
2085
|
|
@@ -2073,7 +2091,7 @@ __Returns:__
|
|
2073
2091
|
|
2074
2092
|
--
|
2075
2093
|
|
2076
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
2094
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L518) ios
|
2077
2095
|
|
2078
2096
|
> def _validate_object(*objects)
|
2079
2097
|
|
@@ -2081,7 +2099,7 @@ __Returns:__
|
|
2081
2099
|
|
2082
2100
|
--
|
2083
2101
|
|
2084
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
2102
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L567) ios
|
2085
2103
|
|
2086
2104
|
> def _by_json(opts)
|
2087
2105
|
|
@@ -2116,7 +2134,7 @@ opts = {
|
|
2116
2134
|
|
2117
2135
|
--
|
2118
2136
|
|
2119
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
2137
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L617) ios
|
2120
2138
|
|
2121
2139
|
> def eles_by_json(opts)
|
2122
2140
|
|
@@ -2135,7 +2153,7 @@ eles_by_json({
|
|
2135
2153
|
|
2136
2154
|
--
|
2137
2155
|
|
2138
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
2156
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L623) ios
|
2139
2157
|
|
2140
2158
|
> def ele_by_json(opts)
|
2141
2159
|
|
@@ -2143,7 +2161,7 @@ see eles_by_json
|
|
2143
2161
|
|
2144
2162
|
--
|
2145
2163
|
|
2146
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2164
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/helper.rb#L633) ios
|
2147
2165
|
|
2148
2166
|
> def get_source
|
2149
2167
|
|
@@ -2156,7 +2174,7 @@ __Returns:__
|
|
2156
2174
|
|
2157
2175
|
--
|
2158
2176
|
|
2159
|
-
##### [IAStaticText](https://github.com/appium/ruby_lib/blob/
|
2177
|
+
##### [IAStaticText](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/text.rb#L4) ios
|
2160
2178
|
|
2161
2179
|
> IAStaticText = 'UIAStaticText'.freeze
|
2162
2180
|
|
@@ -2164,7 +2182,7 @@ __Returns:__
|
|
2164
2182
|
|
2165
2183
|
--
|
2166
2184
|
|
2167
|
-
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/
|
2185
|
+
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/text.rb#L5) ios
|
2168
2186
|
|
2169
2187
|
> XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze
|
2170
2188
|
|
@@ -2172,7 +2190,7 @@ __Returns:__
|
|
2172
2190
|
|
2173
2191
|
--
|
2174
2192
|
|
2175
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
2193
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/text.rb#L8) ios
|
2176
2194
|
|
2177
2195
|
> def static_text_class
|
2178
2196
|
|
@@ -2184,7 +2202,7 @@ __Returns:__
|
|
2184
2202
|
|
2185
2203
|
--
|
2186
2204
|
|
2187
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2205
|
+
##### [text](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/text.rb#L16) ios
|
2188
2206
|
|
2189
2207
|
> def text(value)
|
2190
2208
|
|
@@ -2201,7 +2219,7 @@ __Returns:__
|
|
2201
2219
|
|
2202
2220
|
--
|
2203
2221
|
|
2204
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2222
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/text.rb#L30) ios
|
2205
2223
|
|
2206
2224
|
> def texts(value = false)
|
2207
2225
|
|
@@ -2218,7 +2236,7 @@ __Returns:__
|
|
2218
2236
|
|
2219
2237
|
--
|
2220
2238
|
|
2221
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2239
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/text.rb#L42) ios
|
2222
2240
|
|
2223
2241
|
> def first_text
|
2224
2242
|
|
@@ -2230,7 +2248,7 @@ __Returns:__
|
|
2230
2248
|
|
2231
2249
|
--
|
2232
2250
|
|
2233
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2251
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/text.rb#L48) ios
|
2234
2252
|
|
2235
2253
|
> def last_text
|
2236
2254
|
|
@@ -2242,7 +2260,7 @@ __Returns:__
|
|
2242
2260
|
|
2243
2261
|
--
|
2244
2262
|
|
2245
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2263
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/text.rb#L55) ios
|
2246
2264
|
|
2247
2265
|
> def text_exact(value)
|
2248
2266
|
|
@@ -2258,7 +2276,7 @@ __Returns:__
|
|
2258
2276
|
|
2259
2277
|
--
|
2260
2278
|
|
2261
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2279
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/text.rb#L66) ios
|
2262
2280
|
|
2263
2281
|
> def texts_exact(value)
|
2264
2282
|
|
@@ -2274,7 +2292,7 @@ __Returns:__
|
|
2274
2292
|
|
2275
2293
|
--
|
2276
2294
|
|
2277
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2295
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/alert.rb#L5) ios
|
2278
2296
|
|
2279
2297
|
> def alert_accept
|
2280
2298
|
|
@@ -2286,7 +2304,7 @@ __Returns:__
|
|
2286
2304
|
|
2287
2305
|
--
|
2288
2306
|
|
2289
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2307
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/alert.rb#L13) ios
|
2290
2308
|
|
2291
2309
|
> def alert_dismiss
|
2292
2310
|
|
@@ -2298,7 +2316,7 @@ __Returns:__
|
|
2298
2316
|
|
2299
2317
|
--
|
2300
2318
|
|
2301
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
2319
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/mobile_methods.rb#L10) ios
|
2302
2320
|
|
2303
2321
|
> def uiautomation_find
|
2304
2322
|
|
@@ -2310,7 +2328,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2310
2328
|
|
2311
2329
|
--
|
2312
2330
|
|
2313
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
2331
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/button.rb#L4) ios
|
2314
2332
|
|
2315
2333
|
> UIAButton = 'UIAButton'.freeze
|
2316
2334
|
|
@@ -2318,7 +2336,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2318
2336
|
|
2319
2337
|
--
|
2320
2338
|
|
2321
|
-
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/
|
2339
|
+
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/button.rb#L5) ios
|
2322
2340
|
|
2323
2341
|
> XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze
|
2324
2342
|
|
@@ -2326,7 +2344,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2326
2344
|
|
2327
2345
|
--
|
2328
2346
|
|
2329
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
2347
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/button.rb#L8) ios
|
2330
2348
|
|
2331
2349
|
> def button_class
|
2332
2350
|
|
@@ -2338,7 +2356,7 @@ __Returns:__
|
|
2338
2356
|
|
2339
2357
|
--
|
2340
2358
|
|
2341
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2359
|
+
##### [button](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/button.rb#L16) ios
|
2342
2360
|
|
2343
2361
|
> def button(value)
|
2344
2362
|
|
@@ -2355,7 +2373,7 @@ __Returns:__
|
|
2355
2373
|
|
2356
2374
|
--
|
2357
2375
|
|
2358
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2376
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/button.rb#L31) ios
|
2359
2377
|
|
2360
2378
|
> def buttons(value = false)
|
2361
2379
|
|
@@ -2372,7 +2390,7 @@ __Returns:__
|
|
2372
2390
|
|
2373
2391
|
--
|
2374
2392
|
|
2375
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2393
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/button.rb#L43) ios
|
2376
2394
|
|
2377
2395
|
> def first_button
|
2378
2396
|
|
@@ -2384,7 +2402,7 @@ __Returns:__
|
|
2384
2402
|
|
2385
2403
|
--
|
2386
2404
|
|
2387
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2405
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/button.rb#L51) ios
|
2388
2406
|
|
2389
2407
|
> def last_button
|
2390
2408
|
|
@@ -2398,7 +2416,7 @@ __Returns:__
|
|
2398
2416
|
|
2399
2417
|
--
|
2400
2418
|
|
2401
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2419
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/button.rb#L58) ios
|
2402
2420
|
|
2403
2421
|
> def button_exact(value)
|
2404
2422
|
|
@@ -2414,7 +2432,7 @@ __Returns:__
|
|
2414
2432
|
|
2415
2433
|
--
|
2416
2434
|
|
2417
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2435
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/button.rb#L69) ios
|
2418
2436
|
|
2419
2437
|
> def buttons_exact(value)
|
2420
2438
|
|
@@ -2430,7 +2448,7 @@ __Returns:__
|
|
2430
2448
|
|
2431
2449
|
--
|
2432
2450
|
|
2433
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2451
|
+
##### [find](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/generic.rb#L6) ios
|
2434
2452
|
|
2435
2453
|
> def find(value)
|
2436
2454
|
|
@@ -2446,7 +2464,7 @@ __Returns:__
|
|
2446
2464
|
|
2447
2465
|
--
|
2448
2466
|
|
2449
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2467
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/generic.rb#L17) ios
|
2450
2468
|
|
2451
2469
|
> def finds(value)
|
2452
2470
|
|
@@ -2462,7 +2480,7 @@ __Returns:__
|
|
2462
2480
|
|
2463
2481
|
--
|
2464
2482
|
|
2465
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2483
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/generic.rb#L28) ios
|
2466
2484
|
|
2467
2485
|
> def find_exact(value)
|
2468
2486
|
|
@@ -2478,7 +2496,7 @@ __Returns:__
|
|
2478
2496
|
|
2479
2497
|
--
|
2480
2498
|
|
2481
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2499
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/generic.rb#L39) ios
|
2482
2500
|
|
2483
2501
|
> def finds_exact(value)
|
2484
2502
|
|
@@ -2494,7 +2512,7 @@ __Returns:__
|
|
2494
2512
|
|
2495
2513
|
--
|
2496
2514
|
|
2497
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2515
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2498
2516
|
|
2499
2517
|
> UIATextField = 'UIATextField'.freeze
|
2500
2518
|
|
@@ -2502,7 +2520,7 @@ __Returns:__
|
|
2502
2520
|
|
2503
2521
|
--
|
2504
2522
|
|
2505
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2523
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2506
2524
|
|
2507
2525
|
> UIASecureTextField = 'UIASecureTextField'.freeze
|
2508
2526
|
|
@@ -2510,7 +2528,7 @@ __Returns:__
|
|
2510
2528
|
|
2511
2529
|
--
|
2512
2530
|
|
2513
|
-
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/
|
2531
|
+
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L6) ios
|
2514
2532
|
|
2515
2533
|
> XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze
|
2516
2534
|
|
@@ -2518,7 +2536,7 @@ __Returns:__
|
|
2518
2536
|
|
2519
2537
|
--
|
2520
2538
|
|
2521
|
-
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/
|
2539
|
+
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L7) ios
|
2522
2540
|
|
2523
2541
|
> XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze
|
2524
2542
|
|
@@ -2526,7 +2544,7 @@ __Returns:__
|
|
2526
2544
|
|
2527
2545
|
--
|
2528
2546
|
|
2529
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
2547
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
2530
2548
|
|
2531
2549
|
> def text_field_class
|
2532
2550
|
|
@@ -2538,7 +2556,7 @@ __Returns:__
|
|
2538
2556
|
|
2539
2557
|
--
|
2540
2558
|
|
2541
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
2559
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L15) ios
|
2542
2560
|
|
2543
2561
|
> def secure_text_field_class
|
2544
2562
|
|
@@ -2550,7 +2568,7 @@ __Returns:__
|
|
2550
2568
|
|
2551
2569
|
--
|
2552
2570
|
|
2553
|
-
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/
|
2571
|
+
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L40) ios
|
2554
2572
|
|
2555
2573
|
> def _textfield_visible
|
2556
2574
|
|
@@ -2558,7 +2576,7 @@ Appium
|
|
2558
2576
|
|
2559
2577
|
--
|
2560
2578
|
|
2561
|
-
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/
|
2579
|
+
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L45) ios
|
2562
2580
|
|
2563
2581
|
> def _textfield_exact_string(value)
|
2564
2582
|
|
@@ -2566,7 +2584,7 @@ Appium
|
|
2566
2584
|
|
2567
2585
|
--
|
2568
2586
|
|
2569
|
-
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/
|
2587
|
+
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L52) ios
|
2570
2588
|
|
2571
2589
|
> def _textfield_contains_string(value)
|
2572
2590
|
|
@@ -2574,7 +2592,7 @@ Appium
|
|
2574
2592
|
|
2575
2593
|
--
|
2576
2594
|
|
2577
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2595
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L65) ios
|
2578
2596
|
|
2579
2597
|
> def textfield(value)
|
2580
2598
|
|
@@ -2592,7 +2610,7 @@ __Returns:__
|
|
2592
2610
|
|
2593
2611
|
--
|
2594
2612
|
|
2595
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2613
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L91) ios
|
2596
2614
|
|
2597
2615
|
> def textfields(value = false)
|
2598
2616
|
|
@@ -2609,7 +2627,7 @@ __Returns:__
|
|
2609
2627
|
|
2610
2628
|
--
|
2611
2629
|
|
2612
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2630
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L103) ios
|
2613
2631
|
|
2614
2632
|
> def first_textfield
|
2615
2633
|
|
@@ -2621,7 +2639,7 @@ __Returns:__
|
|
2621
2639
|
|
2622
2640
|
--
|
2623
2641
|
|
2624
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2642
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L113) ios
|
2625
2643
|
|
2626
2644
|
> def last_textfield
|
2627
2645
|
|
@@ -2633,7 +2651,7 @@ __Returns:__
|
|
2633
2651
|
|
2634
2652
|
--
|
2635
2653
|
|
2636
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2654
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L126) ios
|
2637
2655
|
|
2638
2656
|
> def textfield_exact(value)
|
2639
2657
|
|
@@ -2649,7 +2667,7 @@ __Returns:__
|
|
2649
2667
|
|
2650
2668
|
--
|
2651
2669
|
|
2652
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2670
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/ios/element/textfield.rb#L137) ios
|
2653
2671
|
|
2654
2672
|
> def textfields_exact(value)
|
2655
2673
|
|
@@ -2665,7 +2683,7 @@ __Returns:__
|
|
2665
2683
|
|
2666
2684
|
--
|
2667
2685
|
|
2668
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2686
|
+
##### [value](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/patch.rb#L12)
|
2669
2687
|
|
2670
2688
|
> def value
|
2671
2689
|
|
@@ -2675,7 +2693,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2675
2693
|
|
2676
2694
|
--
|
2677
2695
|
|
2678
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2696
|
+
##### [name](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/patch.rb#L19)
|
2679
2697
|
|
2680
2698
|
> def name
|
2681
2699
|
|
@@ -2685,7 +2703,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2685
2703
|
|
2686
2704
|
--
|
2687
2705
|
|
2688
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2706
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/patch.rb#L31)
|
2689
2707
|
|
2690
2708
|
> def location_rel
|
2691
2709
|
|
@@ -2703,7 +2721,7 @@ __Returns:__
|
|
2703
2721
|
|
2704
2722
|
--
|
2705
2723
|
|
2706
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2724
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/patch.rb#L152)
|
2707
2725
|
|
2708
2726
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2709
2727
|
|
@@ -2711,7 +2729,7 @@ __Returns:__
|
|
2711
2729
|
|
2712
2730
|
--
|
2713
2731
|
|
2714
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2732
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/22401b065f2317e82d37b5188ad9c18c701b0a41/lib/appium_lib/common/patch.rb#L155)
|
2715
2733
|
|
2716
2734
|
> def patch_remote_driver_commands
|
2717
2735
|
|