appium_lib 9.1.2 → 9.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +9 -0
- data/.travis.yml +4 -1
- data/android_tests/lib/android/specs/android/element/textfield.rb +0 -10
- data/android_tests/lib/android/specs/driver.rb +20 -0
- data/appium_lib.gemspec +1 -1
- data/docs/android_docs.md +223 -208
- data/docs/ios_docs.md +256 -217
- data/docs/ios_xcuitest.md +12 -7
- data/ios_tests/lib/ios/specs/driver.rb +21 -0
- data/ios_tests/lib/ios/specs/ios/element/button.rb +1 -1
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +0 -16
- data/ios_tests/lib/ios/specs/ios/patch.rb +1 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +12 -21
- data/lib/appium_lib/device/touch_actions.rb +4 -0
- data/lib/appium_lib/driver.rb +5 -3
- data/lib/appium_lib/ios/element/button.rb +6 -4
- data/lib/appium_lib/ios/element/generic.rb +23 -0
- data/lib/appium_lib/ios/element/text.rb +6 -4
- data/release_notes.md +13 -0
- metadata +4 -4
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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/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/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L304)
|
379
379
|
|
380
380
|
> def driver
|
381
381
|
|
@@ -387,7 +387,19 @@ __Returns:__
|
|
387
387
|
|
388
388
|
--
|
389
389
|
|
390
|
-
##### [
|
390
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L307)
|
391
|
+
|
392
|
+
> def http_client
|
393
|
+
|
394
|
+
Return http client called in start_driver()
|
395
|
+
|
396
|
+
__Returns:__
|
397
|
+
|
398
|
+
[Selenium::WebDriver::Remote::Http::Default] the http client
|
399
|
+
|
400
|
+
--
|
401
|
+
|
402
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L328)
|
391
403
|
|
392
404
|
> def initialize(opts = {})
|
393
405
|
|
@@ -418,7 +430,7 @@ __Returns:__
|
|
418
430
|
|
419
431
|
--
|
420
432
|
|
421
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
433
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L401)
|
422
434
|
|
423
435
|
> def driver_attributes
|
424
436
|
|
@@ -426,7 +438,7 @@ Returns a hash of the driver attributes
|
|
426
438
|
|
427
439
|
--
|
428
440
|
|
429
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
441
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L423)
|
430
442
|
|
431
443
|
> def device_is_android?
|
432
444
|
|
@@ -438,7 +450,7 @@ __Returns:__
|
|
438
450
|
|
439
451
|
--
|
440
452
|
|
441
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
453
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L429)
|
442
454
|
|
443
455
|
> def automation_name_is_xcuitest?
|
444
456
|
|
@@ -450,7 +462,7 @@ __Returns:__
|
|
450
462
|
|
451
463
|
--
|
452
464
|
|
453
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
465
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L436)
|
454
466
|
|
455
467
|
> def check_server_version_xcuitest
|
456
468
|
|
@@ -463,7 +475,7 @@ __Returns:__
|
|
463
475
|
|
464
476
|
--
|
465
477
|
|
466
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
478
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L468)
|
467
479
|
|
468
480
|
> def appium_client_version
|
469
481
|
|
@@ -481,7 +493,7 @@ __Returns:__
|
|
481
493
|
|
482
494
|
--
|
483
495
|
|
484
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
496
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L480)
|
485
497
|
|
486
498
|
> def self.absolute_app_path(opts)
|
487
499
|
|
@@ -498,7 +510,7 @@ __Returns:__
|
|
498
510
|
|
499
511
|
--
|
500
512
|
|
501
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
513
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L513)
|
502
514
|
|
503
515
|
> def server_url
|
504
516
|
|
@@ -510,7 +522,7 @@ __Returns:__
|
|
510
522
|
|
511
523
|
--
|
512
524
|
|
513
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
525
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L524)
|
514
526
|
|
515
527
|
> def restart
|
516
528
|
|
@@ -522,7 +534,7 @@ __Returns:__
|
|
522
534
|
|
523
535
|
--
|
524
536
|
|
525
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
537
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L535)
|
526
538
|
|
527
539
|
> def screenshot(png_save_path)
|
528
540
|
|
@@ -540,7 +552,7 @@ __Returns:__
|
|
540
552
|
|
541
553
|
--
|
542
554
|
|
543
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
555
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L542)
|
544
556
|
|
545
557
|
> def driver_quit
|
546
558
|
|
@@ -552,7 +564,7 @@ __Returns:__
|
|
552
564
|
|
553
565
|
--
|
554
566
|
|
555
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
567
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L552)
|
556
568
|
|
557
569
|
> def start_driver
|
558
570
|
|
@@ -564,7 +576,7 @@ __Returns:__
|
|
564
576
|
|
565
577
|
--
|
566
578
|
|
567
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
579
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L588)
|
568
580
|
|
569
581
|
> def no_wait
|
570
582
|
|
@@ -572,7 +584,7 @@ Set implicit wait and default_wait to zero.
|
|
572
584
|
|
573
585
|
--
|
574
586
|
|
575
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
587
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L607)
|
576
588
|
|
577
589
|
> def set_wait(timeout = nil)
|
578
590
|
|
@@ -597,7 +609,7 @@ __Returns:__
|
|
597
609
|
|
598
610
|
--
|
599
611
|
|
600
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
612
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L634)
|
601
613
|
|
602
614
|
> def exists(pre_check = 0, post_check = @default_wait)
|
603
615
|
|
@@ -623,7 +635,7 @@ __Returns:__
|
|
623
635
|
|
624
636
|
--
|
625
637
|
|
626
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
638
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L658)
|
627
639
|
|
628
640
|
> def execute_script(script, *args)
|
629
641
|
|
@@ -641,7 +653,7 @@ __Returns:__
|
|
641
653
|
|
642
654
|
--
|
643
655
|
|
644
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
656
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L666)
|
645
657
|
|
646
658
|
> def find_elements(*args)
|
647
659
|
|
@@ -657,7 +669,7 @@ __Returns:__
|
|
657
669
|
|
658
670
|
--
|
659
671
|
|
660
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
672
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L674)
|
661
673
|
|
662
674
|
> def find_element(*args)
|
663
675
|
|
@@ -673,7 +685,7 @@ __Returns:__
|
|
673
685
|
|
674
686
|
--
|
675
687
|
|
676
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
688
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L687)
|
677
689
|
|
678
690
|
> def set_location(opts = {})
|
679
691
|
|
@@ -689,7 +701,7 @@ __Returns:__
|
|
689
701
|
|
690
702
|
--
|
691
703
|
|
692
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
704
|
+
##### [x](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L697)
|
693
705
|
|
694
706
|
> def x
|
695
707
|
|
@@ -702,7 +714,7 @@ __Returns:__
|
|
702
714
|
|
703
715
|
--
|
704
716
|
|
705
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
717
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/logger.rb#L13)
|
706
718
|
|
707
719
|
> def logger=(value)
|
708
720
|
|
@@ -714,7 +726,7 @@ __Parameters:__
|
|
714
726
|
|
715
727
|
--
|
716
728
|
|
717
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
729
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/logger.rb#L17)
|
718
730
|
|
719
731
|
> def logger
|
720
732
|
|
@@ -722,7 +734,7 @@ __Parameters:__
|
|
722
734
|
|
723
735
|
--
|
724
736
|
|
725
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
737
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L7)
|
726
738
|
|
727
739
|
> def app_strings
|
728
740
|
|
@@ -733,7 +745,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
733
745
|
|
734
746
|
--
|
735
747
|
|
736
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
748
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L13)
|
737
749
|
|
738
750
|
> def background_app
|
739
751
|
|
@@ -742,7 +754,7 @@ This is a blocking application
|
|
742
754
|
|
743
755
|
--
|
744
756
|
|
745
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
757
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L18)
|
746
758
|
|
747
759
|
> def current_activity
|
748
760
|
|
@@ -750,7 +762,7 @@ This is a blocking application
|
|
750
762
|
|
751
763
|
--
|
752
764
|
|
753
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
765
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L20)
|
754
766
|
|
755
767
|
> def launch_app
|
756
768
|
|
@@ -758,7 +770,7 @@ Start the simulator and application configured with desired capabilities
|
|
758
770
|
|
759
771
|
--
|
760
772
|
|
761
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
773
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L23)
|
762
774
|
|
763
775
|
> def reset
|
764
776
|
|
@@ -766,7 +778,7 @@ Reset the device, relaunching the application.
|
|
766
778
|
|
767
779
|
--
|
768
780
|
|
769
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
781
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L26)
|
770
782
|
|
771
783
|
> def shake
|
772
784
|
|
@@ -774,7 +786,7 @@ Cause the device to shake
|
|
774
786
|
|
775
787
|
--
|
776
788
|
|
777
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
789
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L29)
|
778
790
|
|
779
791
|
> def toggle_flight_mode
|
780
792
|
|
@@ -782,7 +794,7 @@ Toggle flight mode on or off
|
|
782
794
|
|
783
795
|
--
|
784
796
|
|
785
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
797
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L32)
|
786
798
|
|
787
799
|
> def device_locked?
|
788
800
|
|
@@ -790,7 +802,7 @@ Toggle flight mode on or off
|
|
790
802
|
|
791
803
|
--
|
792
804
|
|
793
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
805
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L34)
|
794
806
|
|
795
807
|
> def hide_keyboard
|
796
808
|
|
@@ -803,7 +815,7 @@ Defaults to 'Done'.
|
|
803
815
|
|
804
816
|
--
|
805
817
|
|
806
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
818
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L43)
|
807
819
|
|
808
820
|
> def press_keycode
|
809
821
|
|
@@ -818,7 +830,7 @@ __Parameters:__
|
|
818
830
|
|
819
831
|
--
|
820
832
|
|
821
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
833
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L49)
|
822
834
|
|
823
835
|
> def long_press_keycode
|
824
836
|
|
@@ -833,7 +845,7 @@ __Parameters:__
|
|
833
845
|
|
834
846
|
--
|
835
847
|
|
836
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
848
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L55)
|
837
849
|
|
838
850
|
> def push_file
|
839
851
|
|
@@ -847,7 +859,7 @@ __Parameters:__
|
|
847
859
|
|
848
860
|
--
|
849
861
|
|
850
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
862
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L60)
|
851
863
|
|
852
864
|
> def pull_file
|
853
865
|
|
@@ -864,7 +876,7 @@ __Parameters:__
|
|
864
876
|
|
865
877
|
--
|
866
878
|
|
867
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
879
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L70)
|
868
880
|
|
869
881
|
> def pull_folder
|
870
882
|
|
@@ -879,7 +891,7 @@ __Parameters:__
|
|
879
891
|
|
880
892
|
--
|
881
893
|
|
882
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
894
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L78)
|
883
895
|
|
884
896
|
> def touch_id
|
885
897
|
|
@@ -896,7 +908,7 @@ Defaults to true.
|
|
896
908
|
|
897
909
|
--
|
898
910
|
|
899
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
911
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L87)
|
900
912
|
|
901
913
|
> def end_coverage
|
902
914
|
|
@@ -910,7 +922,7 @@ __Parameters:__
|
|
910
922
|
|
911
923
|
--
|
912
924
|
|
913
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
925
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L92)
|
914
926
|
|
915
927
|
> def get_settings
|
916
928
|
|
@@ -918,7 +930,7 @@ Get appium Settings for current test session
|
|
918
930
|
|
919
931
|
--
|
920
932
|
|
921
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
933
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L356)
|
922
934
|
|
923
935
|
> def extend_search_contexts
|
924
936
|
|
@@ -926,7 +938,7 @@ Get appium Settings for current test session
|
|
926
938
|
|
927
939
|
--
|
928
940
|
|
929
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
941
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L356)
|
930
942
|
|
931
943
|
> def find_element
|
932
944
|
|
@@ -934,7 +946,7 @@ Get appium Settings for current test session
|
|
934
946
|
|
935
947
|
--
|
936
948
|
|
937
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
949
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L356)
|
938
950
|
|
939
951
|
> def find_elements
|
940
952
|
|
@@ -946,7 +958,7 @@ find_element/s with their accessibility_id
|
|
946
958
|
|
947
959
|
--
|
948
960
|
|
949
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
961
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L387)
|
950
962
|
|
951
963
|
> def add_touch_actions
|
952
964
|
|
@@ -954,7 +966,7 @@ find_element/s with their accessibility_id
|
|
954
966
|
|
955
967
|
--
|
956
968
|
|
957
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
969
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L410)
|
958
970
|
|
959
971
|
> def add_ime_actions
|
960
972
|
|
@@ -962,7 +974,7 @@ find_element/s with their accessibility_id
|
|
962
974
|
|
963
975
|
--
|
964
976
|
|
965
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
977
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L485)
|
966
978
|
|
967
979
|
> def set_context
|
968
980
|
|
@@ -977,7 +989,7 @@ __Parameters:__
|
|
977
989
|
|
978
990
|
--
|
979
991
|
|
980
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
992
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L493)
|
981
993
|
|
982
994
|
> def current_context
|
983
995
|
|
@@ -989,7 +1001,7 @@ __Returns:__
|
|
989
1001
|
|
990
1002
|
--
|
991
1003
|
|
992
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1004
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L496)
|
993
1005
|
|
994
1006
|
> def available_contexts
|
995
1007
|
|
@@ -1001,7 +1013,7 @@ __Returns:__
|
|
1001
1013
|
|
1002
1014
|
--
|
1003
1015
|
|
1004
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1016
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L506)
|
1005
1017
|
|
1006
1018
|
> def within_context(context)
|
1007
1019
|
|
@@ -1017,7 +1029,7 @@ __Parameters:__
|
|
1017
1029
|
|
1018
1030
|
--
|
1019
1031
|
|
1020
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1032
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/device.rb#L514)
|
1021
1033
|
|
1022
1034
|
> def switch_to_default_context
|
1023
1035
|
|
@@ -1025,7 +1037,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1025
1037
|
|
1026
1038
|
--
|
1027
1039
|
|
1028
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1040
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/multi_touch.rb#L28)
|
1029
1041
|
|
1030
1042
|
> def pinch(percentage = 25, auto_perform = true)
|
1031
1043
|
|
@@ -1044,7 +1056,7 @@ __Parameters:__
|
|
1044
1056
|
|
1045
1057
|
--
|
1046
1058
|
|
1047
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1059
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/multi_touch.rb#L64)
|
1048
1060
|
|
1049
1061
|
> def zoom(percentage = 200, auto_perform = true)
|
1050
1062
|
|
@@ -1063,7 +1075,7 @@ __Parameters:__
|
|
1063
1075
|
|
1064
1076
|
--
|
1065
1077
|
|
1066
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1078
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/multi_touch.rb#L95)
|
1067
1079
|
|
1068
1080
|
> def initialize
|
1069
1081
|
|
@@ -1075,7 +1087,7 @@ __Returns:__
|
|
1075
1087
|
|
1076
1088
|
--
|
1077
1089
|
|
1078
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1090
|
+
##### [add](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/multi_touch.rb#L101)
|
1079
1091
|
|
1080
1092
|
> def add(chain)
|
1081
1093
|
|
@@ -1087,7 +1099,7 @@ __Parameters:__
|
|
1087
1099
|
|
1088
1100
|
--
|
1089
1101
|
|
1090
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1102
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/multi_touch.rb#L106)
|
1091
1103
|
|
1092
1104
|
> def perform
|
1093
1105
|
|
@@ -1095,7 +1107,7 @@ Ask Appium to perform the actions
|
|
1095
1107
|
|
1096
1108
|
--
|
1097
1109
|
|
1098
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1110
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L11)
|
1099
1111
|
|
1100
1112
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1101
1113
|
|
@@ -1103,7 +1115,7 @@ Ask Appium to perform the actions
|
|
1103
1115
|
|
1104
1116
|
--
|
1105
1117
|
|
1106
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1118
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L12)
|
1107
1119
|
|
1108
1120
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1109
1121
|
|
@@ -1111,7 +1123,7 @@ Ask Appium to perform the actions
|
|
1111
1123
|
|
1112
1124
|
--
|
1113
1125
|
|
1114
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1126
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L26)
|
1115
1127
|
|
1116
1128
|
> def actions
|
1117
1129
|
|
@@ -1119,7 +1131,7 @@ Returns the value of attribute actions
|
|
1119
1131
|
|
1120
1132
|
--
|
1121
1133
|
|
1122
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1134
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L28)
|
1123
1135
|
|
1124
1136
|
> def initialize
|
1125
1137
|
|
@@ -1131,7 +1143,7 @@ __Returns:__
|
|
1131
1143
|
|
1132
1144
|
--
|
1133
1145
|
|
1134
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1146
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L36)
|
1135
1147
|
|
1136
1148
|
> def move_to(opts)
|
1137
1149
|
|
@@ -1143,11 +1155,14 @@ __Parameters:__
|
|
1143
1155
|
|
1144
1156
|
--
|
1145
1157
|
|
1146
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1158
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L50)
|
1147
1159
|
|
1148
1160
|
> def long_press(opts)
|
1149
1161
|
|
1150
1162
|
Press down for a specific duration.
|
1163
|
+
Alternatively, you can use `press(...).wait(...).release()` instead of `long_press` if duration doesn't work well.
|
1164
|
+
https://github.com/appium/ruby_lib/issues/231#issuecomment-269895512
|
1165
|
+
e.g. Appium::TouchAction.new.press(x: 280, y: 530).wait(2000).release.perform
|
1151
1166
|
|
1152
1167
|
__Parameters:__
|
1153
1168
|
|
@@ -1161,7 +1176,7 @@ __Parameters:__
|
|
1161
1176
|
|
1162
1177
|
--
|
1163
1178
|
|
1164
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1179
|
+
##### [press](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L62)
|
1165
1180
|
|
1166
1181
|
> def press(opts)
|
1167
1182
|
|
@@ -1174,7 +1189,7 @@ __Parameters:__
|
|
1174
1189
|
|
1175
1190
|
--
|
1176
1191
|
|
1177
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1192
|
+
##### [release](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L73)
|
1178
1193
|
|
1179
1194
|
> def release(opts = nil)
|
1180
1195
|
|
@@ -1186,7 +1201,7 @@ __Parameters:__
|
|
1186
1201
|
|
1187
1202
|
--
|
1188
1203
|
|
1189
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1204
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L84)
|
1190
1205
|
|
1191
1206
|
> def tap(opts)
|
1192
1207
|
|
@@ -1198,7 +1213,7 @@ __Parameters:__
|
|
1198
1213
|
|
1199
1214
|
--
|
1200
1215
|
|
1201
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1216
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L97)
|
1202
1217
|
|
1203
1218
|
> def double_tap(opts)
|
1204
1219
|
|
@@ -1210,7 +1225,7 @@ __Parameters:__
|
|
1210
1225
|
|
1211
1226
|
--
|
1212
1227
|
|
1213
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1228
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L108)
|
1214
1229
|
|
1215
1230
|
> def two_finger_tap(opts)
|
1216
1231
|
|
@@ -1222,7 +1237,7 @@ __Parameters:__
|
|
1222
1237
|
|
1223
1238
|
--
|
1224
1239
|
|
1225
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1240
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L116)
|
1226
1241
|
|
1227
1242
|
> def wait(milliseconds)
|
1228
1243
|
|
@@ -1234,7 +1249,7 @@ __Parameters:__
|
|
1234
1249
|
|
1235
1250
|
--
|
1236
1251
|
|
1237
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1252
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L131)
|
1238
1253
|
|
1239
1254
|
> def swipe(opts, ele = nil)
|
1240
1255
|
|
@@ -1248,7 +1263,7 @@ __Parameters:__
|
|
1248
1263
|
|
1249
1264
|
--
|
1250
1265
|
|
1251
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1266
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L165)
|
1252
1267
|
|
1253
1268
|
> def perform
|
1254
1269
|
|
@@ -1256,7 +1271,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1256
1271
|
|
1257
1272
|
--
|
1258
1273
|
|
1259
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1274
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L171)
|
1260
1275
|
|
1261
1276
|
> def cancel
|
1262
1277
|
|
@@ -1264,7 +1279,7 @@ Does nothing, currently.
|
|
1264
1279
|
|
1265
1280
|
--
|
1266
1281
|
|
1267
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1282
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L179)
|
1268
1283
|
|
1269
1284
|
> def chain_method(method, args = nil)
|
1270
1285
|
|
@@ -1272,7 +1287,7 @@ Does nothing, currently.
|
|
1272
1287
|
|
1273
1288
|
--
|
1274
1289
|
|
1275
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1290
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/device/touch_actions.rb#L185)
|
1276
1291
|
|
1277
1292
|
> def args_with_ele_ref(args)
|
1278
1293
|
|
@@ -1280,7 +1295,7 @@ Does nothing, currently.
|
|
1280
1295
|
|
1281
1296
|
--
|
1282
1297
|
|
1283
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1298
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/wait.rb#L9)
|
1284
1299
|
|
1285
1300
|
> def _generic_wait(opts = {})
|
1286
1301
|
|
@@ -1289,7 +1304,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1289
1304
|
|
1290
1305
|
--
|
1291
1306
|
|
1292
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1307
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/wait.rb#L48)
|
1293
1308
|
|
1294
1309
|
> def _process_wait_opts(opts)
|
1295
1310
|
|
@@ -1297,7 +1312,7 @@ process opts before calling _generic_wait
|
|
1297
1312
|
|
1298
1313
|
--
|
1299
1314
|
|
1300
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1315
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/wait.rb#L69)
|
1301
1316
|
|
1302
1317
|
> def wait_true(opts = {}, &block)
|
1303
1318
|
|
@@ -1317,7 +1332,7 @@ __Parameters:__
|
|
1317
1332
|
|
1318
1333
|
--
|
1319
1334
|
|
1320
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1335
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/wait.rb#L87)
|
1321
1336
|
|
1322
1337
|
> def wait(opts = {}, &block)
|
1323
1338
|
|
@@ -1335,7 +1350,7 @@ __Parameters:__
|
|
1335
1350
|
|
1336
1351
|
--
|
1337
1352
|
|
1338
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1353
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L24)
|
1339
1354
|
|
1340
1355
|
> def ignore
|
1341
1356
|
|
@@ -1343,7 +1358,7 @@ Return yield and ignore any exceptions.
|
|
1343
1358
|
|
1344
1359
|
--
|
1345
1360
|
|
1346
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1361
|
+
##### [back](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L31)
|
1347
1362
|
|
1348
1363
|
> def back
|
1349
1364
|
|
@@ -1355,7 +1370,7 @@ __Returns:__
|
|
1355
1370
|
|
1356
1371
|
--
|
1357
1372
|
|
1358
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1373
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L36)
|
1359
1374
|
|
1360
1375
|
> def session_id
|
1361
1376
|
|
@@ -1363,7 +1378,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1363
1378
|
|
1364
1379
|
--
|
1365
1380
|
|
1366
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1381
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L44)
|
1367
1382
|
|
1368
1383
|
> def xpath(xpath_str)
|
1369
1384
|
|
@@ -1379,7 +1394,7 @@ __Returns:__
|
|
1379
1394
|
|
1380
1395
|
--
|
1381
1396
|
|
1382
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1397
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L52)
|
1383
1398
|
|
1384
1399
|
> def xpaths(xpath_str)
|
1385
1400
|
|
@@ -1395,7 +1410,7 @@ __Returns:__
|
|
1395
1410
|
|
1396
1411
|
--
|
1397
1412
|
|
1398
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1413
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L56)
|
1399
1414
|
|
1400
1415
|
> def _print_source(source)
|
1401
1416
|
|
@@ -1403,7 +1418,7 @@ __Returns:__
|
|
1403
1418
|
|
1404
1419
|
--
|
1405
1420
|
|
1406
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1421
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L69)
|
1407
1422
|
|
1408
1423
|
> def result
|
1409
1424
|
|
@@ -1411,7 +1426,7 @@ Returns the value of attribute result
|
|
1411
1426
|
|
1412
1427
|
--
|
1413
1428
|
|
1414
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1429
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L71)
|
1415
1430
|
|
1416
1431
|
> def initialize
|
1417
1432
|
|
@@ -1423,7 +1438,7 @@ __Returns:__
|
|
1423
1438
|
|
1424
1439
|
--
|
1425
1440
|
|
1426
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1441
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L75)
|
1427
1442
|
|
1428
1443
|
> def reset
|
1429
1444
|
|
@@ -1431,7 +1446,7 @@ __Returns:__
|
|
1431
1446
|
|
1432
1447
|
--
|
1433
1448
|
|
1434
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1449
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L80)
|
1435
1450
|
|
1436
1451
|
> def start_element(name, attrs = [])
|
1437
1452
|
|
@@ -1439,7 +1454,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1439
1454
|
|
1440
1455
|
--
|
1441
1456
|
|
1442
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1457
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L86)
|
1443
1458
|
|
1444
1459
|
> def formatted_result
|
1445
1460
|
|
@@ -1447,7 +1462,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1447
1462
|
|
1448
1463
|
--
|
1449
1464
|
|
1450
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1465
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L97)
|
1451
1466
|
|
1452
1467
|
> def get_page_class
|
1453
1468
|
|
@@ -1455,7 +1470,7 @@ Returns a string of class counts of visible elements.
|
|
1455
1470
|
|
1456
1471
|
--
|
1457
1472
|
|
1458
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1473
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L108)
|
1459
1474
|
|
1460
1475
|
> def page_class
|
1461
1476
|
|
@@ -1464,7 +1479,7 @@ Useful for appium_console.
|
|
1464
1479
|
|
1465
1480
|
--
|
1466
1481
|
|
1467
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1482
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L118)
|
1468
1483
|
|
1469
1484
|
> def px_to_window_rel(opts = {})
|
1470
1485
|
|
@@ -1476,7 +1491,7 @@ px_to_window_rel x: 50, y: 150
|
|
1476
1491
|
|
1477
1492
|
--
|
1478
1493
|
|
1479
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1494
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L137)
|
1480
1495
|
|
1481
1496
|
> def xml_keys(target)
|
1482
1497
|
|
@@ -1492,7 +1507,7 @@ __Returns:__
|
|
1492
1507
|
|
1493
1508
|
--
|
1494
1509
|
|
1495
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1510
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L145)
|
1496
1511
|
|
1497
1512
|
> def xml_values(target)
|
1498
1513
|
|
@@ -1508,7 +1523,7 @@ __Returns:__
|
|
1508
1523
|
|
1509
1524
|
--
|
1510
1525
|
|
1511
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1526
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L153)
|
1512
1527
|
|
1513
1528
|
> def resolve_id(id)
|
1514
1529
|
|
@@ -1524,7 +1539,7 @@ __Returns:__
|
|
1524
1539
|
|
1525
1540
|
--
|
1526
1541
|
|
1527
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1542
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L159)
|
1528
1543
|
|
1529
1544
|
> def filter
|
1530
1545
|
|
@@ -1532,7 +1547,7 @@ Returns the value of attribute filter
|
|
1532
1547
|
|
1533
1548
|
--
|
1534
1549
|
|
1535
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1550
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L162)
|
1536
1551
|
|
1537
1552
|
> def filter=(value)
|
1538
1553
|
|
@@ -1540,7 +1555,7 @@ convert to string to support symbols
|
|
1540
1555
|
|
1541
1556
|
--
|
1542
1557
|
|
1543
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1558
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L168)
|
1544
1559
|
|
1545
1560
|
> def initialize
|
1546
1561
|
|
@@ -1552,7 +1567,7 @@ __Returns:__
|
|
1552
1567
|
|
1553
1568
|
--
|
1554
1569
|
|
1555
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1570
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L173)
|
1556
1571
|
|
1557
1572
|
> def reset
|
1558
1573
|
|
@@ -1560,7 +1575,7 @@ __Returns:__
|
|
1560
1575
|
|
1561
1576
|
--
|
1562
1577
|
|
1563
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1578
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L179)
|
1564
1579
|
|
1565
1580
|
> def result
|
1566
1581
|
|
@@ -1568,7 +1583,7 @@ __Returns:__
|
|
1568
1583
|
|
1569
1584
|
--
|
1570
1585
|
|
1571
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1586
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L195)
|
1572
1587
|
|
1573
1588
|
> def start_element(name, attrs = [])
|
1574
1589
|
|
@@ -1576,7 +1591,7 @@ __Returns:__
|
|
1576
1591
|
|
1577
1592
|
--
|
1578
1593
|
|
1579
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1594
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L204)
|
1580
1595
|
|
1581
1596
|
> def end_element(name)
|
1582
1597
|
|
@@ -1584,7 +1599,7 @@ __Returns:__
|
|
1584
1599
|
|
1585
1600
|
--
|
1586
1601
|
|
1587
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1602
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L210)
|
1588
1603
|
|
1589
1604
|
> def characters(chars)
|
1590
1605
|
|
@@ -1592,7 +1607,7 @@ __Returns:__
|
|
1592
1607
|
|
1593
1608
|
--
|
1594
1609
|
|
1595
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1610
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/helper.rb#L217)
|
1596
1611
|
|
1597
1612
|
> def _no_such_element
|
1598
1613
|
|
@@ -1600,7 +1615,7 @@ __Returns:__
|
|
1600
1615
|
|
1601
1616
|
--
|
1602
1617
|
|
1603
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1618
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/command.rb#L4)
|
1604
1619
|
|
1605
1620
|
> COMMAND_NO_ARG = {
|
1606
1621
|
|
@@ -1608,7 +1623,7 @@ __Returns:__
|
|
1608
1623
|
|
1609
1624
|
--
|
1610
1625
|
|
1611
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1626
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/command.rb#L23)
|
1612
1627
|
|
1613
1628
|
> COMMAND = {
|
1614
1629
|
|
@@ -1616,7 +1631,7 @@ __Returns:__
|
|
1616
1631
|
|
1617
1632
|
--
|
1618
1633
|
|
1619
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1634
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/search_context.rb#L5)
|
1620
1635
|
|
1621
1636
|
> FINDERS = {
|
1622
1637
|
|
@@ -1624,7 +1639,7 @@ rubocop:disable Style/MutableConstant
|
|
1624
1639
|
|
1625
1640
|
--
|
1626
1641
|
|
1627
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1642
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/element/window.rb#L5)
|
1628
1643
|
|
1629
1644
|
> def window_size
|
1630
1645
|
|
@@ -1632,7 +1647,7 @@ Get the window's size
|
|
1632
1647
|
|
1633
1648
|
--
|
1634
1649
|
|
1635
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1650
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L4) ios
|
1636
1651
|
|
1637
1652
|
> def filter
|
1638
1653
|
|
@@ -1640,7 +1655,7 @@ Returns the value of attribute filter
|
|
1640
1655
|
|
1641
1656
|
--
|
1642
1657
|
|
1643
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1658
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L4) ios
|
1644
1659
|
|
1645
1660
|
> def filter=(value)
|
1646
1661
|
|
@@ -1652,7 +1667,7 @@ __Parameters:__
|
|
1652
1667
|
|
1653
1668
|
--
|
1654
1669
|
|
1655
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1670
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L6) ios
|
1656
1671
|
|
1657
1672
|
> def start_element(type, attrs = [])
|
1658
1673
|
|
@@ -1660,7 +1675,7 @@ __Parameters:__
|
|
1660
1675
|
|
1661
1676
|
--
|
1662
1677
|
|
1663
|
-
##### [_print_attr](https://github.com/appium/ruby_lib/blob/
|
1678
|
+
##### [_print_attr](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L15) ios
|
1664
1679
|
|
1665
1680
|
> def _print_attr(type, name, label, value, hint)
|
1666
1681
|
|
@@ -1668,7 +1683,7 @@ __Parameters:__
|
|
1668
1683
|
|
1669
1684
|
--
|
1670
1685
|
|
1671
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1686
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L41) ios
|
1672
1687
|
|
1673
1688
|
> def ios_password(length = 1)
|
1674
1689
|
|
@@ -1686,7 +1701,7 @@ __Returns:__
|
|
1686
1701
|
|
1687
1702
|
--
|
1688
1703
|
|
1689
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1704
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L53) ios
|
1690
1705
|
|
1691
1706
|
> def get_page(element = source_window(0), class_name = nil)
|
1692
1707
|
|
@@ -1707,7 +1722,7 @@ __Returns:__
|
|
1707
1722
|
|
1708
1723
|
--
|
1709
1724
|
|
1710
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1725
|
+
##### [page](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L139) ios
|
1711
1726
|
|
1712
1727
|
> def page(opts = {})
|
1713
1728
|
|
@@ -1733,7 +1748,7 @@ __Returns:__
|
|
1733
1748
|
|
1734
1749
|
--
|
1735
1750
|
|
1736
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1751
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L170) ios
|
1737
1752
|
|
1738
1753
|
> def source_window(_window_number = 0)
|
1739
1754
|
|
@@ -1749,7 +1764,7 @@ __Returns:__
|
|
1749
1764
|
|
1750
1765
|
--
|
1751
1766
|
|
1752
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
1767
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L185) ios
|
1753
1768
|
|
1754
1769
|
> def page_window(window_number = 0)
|
1755
1770
|
|
@@ -1767,7 +1782,7 @@ __Returns:__
|
|
1767
1782
|
|
1768
1783
|
--
|
1769
1784
|
|
1770
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1785
|
+
##### [id](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L193) ios
|
1771
1786
|
|
1772
1787
|
> def id(id)
|
1773
1788
|
|
@@ -1783,7 +1798,7 @@ __Returns:__
|
|
1783
1798
|
|
1784
1799
|
--
|
1785
1800
|
|
1786
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
1801
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L199) ios
|
1787
1802
|
|
1788
1803
|
> def ios_version
|
1789
1804
|
|
@@ -1795,7 +1810,7 @@ __Returns:__
|
|
1795
1810
|
|
1796
1811
|
--
|
1797
1812
|
|
1798
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1813
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L212) ios
|
1799
1814
|
|
1800
1815
|
> def ele_index(class_name, index)
|
1801
1816
|
|
@@ -1813,7 +1828,7 @@ __Returns:__
|
|
1813
1828
|
|
1814
1829
|
--
|
1815
1830
|
|
1816
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
1831
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L247) ios
|
1817
1832
|
|
1818
1833
|
> def find_ele_by_attr(class_name, attr, value)
|
1819
1834
|
|
@@ -1834,7 +1849,7 @@ __Returns:__
|
|
1834
1849
|
|
1835
1850
|
--
|
1836
1851
|
|
1837
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
1852
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L257) ios
|
1838
1853
|
|
1839
1854
|
> def find_eles_by_attr(class_name, attr, value)
|
1840
1855
|
|
@@ -1855,7 +1870,7 @@ __Returns:__
|
|
1855
1870
|
|
1856
1871
|
--
|
1857
1872
|
|
1858
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1873
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L280) ios
|
1859
1874
|
|
1860
1875
|
> def find_ele_by_attr_include(class_name, attr, value)
|
1861
1876
|
|
@@ -1876,7 +1891,7 @@ __Returns:__
|
|
1876
1891
|
|
1877
1892
|
--
|
1878
1893
|
|
1879
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1894
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L290) ios
|
1880
1895
|
|
1881
1896
|
> def find_eles_by_attr_include(class_name, attr, value)
|
1882
1897
|
|
@@ -1897,7 +1912,7 @@ __Returns:__
|
|
1897
1912
|
|
1898
1913
|
--
|
1899
1914
|
|
1900
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1915
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L297) ios
|
1901
1916
|
|
1902
1917
|
> def first_ele(class_name)
|
1903
1918
|
|
@@ -1913,7 +1928,7 @@ __Returns:__
|
|
1913
1928
|
|
1914
1929
|
--
|
1915
1930
|
|
1916
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1931
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L308) ios
|
1917
1932
|
|
1918
1933
|
> def last_ele(class_name)
|
1919
1934
|
|
@@ -1929,7 +1944,7 @@ __Returns:__
|
|
1929
1944
|
|
1930
1945
|
--
|
1931
1946
|
|
1932
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1947
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L322) ios
|
1933
1948
|
|
1934
1949
|
> def tag(class_name)
|
1935
1950
|
|
@@ -1945,7 +1960,7 @@ __Returns:__
|
|
1945
1960
|
|
1946
1961
|
--
|
1947
1962
|
|
1948
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1963
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L334) ios
|
1949
1964
|
|
1950
1965
|
> def tags(class_name)
|
1951
1966
|
|
@@ -1961,7 +1976,7 @@ __Returns:__
|
|
1961
1976
|
|
1962
1977
|
--
|
1963
1978
|
|
1964
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1979
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L371) ios
|
1965
1980
|
|
1966
1981
|
> def ele_by_json_visible_contains(element, value)
|
1967
1982
|
|
@@ -1980,7 +1995,7 @@ __Returns:__
|
|
1980
1995
|
|
1981
1996
|
--
|
1982
1997
|
|
1983
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1998
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L380) ios
|
1984
1999
|
|
1985
2000
|
> def eles_by_json_visible_contains(element, value)
|
1986
2001
|
|
@@ -1999,7 +2014,7 @@ __Returns:__
|
|
1999
2014
|
|
2000
2015
|
--
|
2001
2016
|
|
2002
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2017
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L410) ios
|
2003
2018
|
|
2004
2019
|
> def ele_by_json_visible_exact(element, value)
|
2005
2020
|
|
@@ -2018,7 +2033,7 @@ __Returns:__
|
|
2018
2033
|
|
2019
2034
|
--
|
2020
2035
|
|
2021
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2036
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L419) ios
|
2022
2037
|
|
2023
2038
|
> def eles_by_json_visible_exact(element, value)
|
2024
2039
|
|
@@ -2037,7 +2052,7 @@ __Returns:__
|
|
2037
2052
|
|
2038
2053
|
--
|
2039
2054
|
|
2040
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
2055
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L484) ios
|
2041
2056
|
|
2042
2057
|
> def _all_pred(opts)
|
2043
2058
|
|
@@ -2047,7 +2062,7 @@ visible - if true, only visible elements are returned. default true
|
|
2047
2062
|
|
2048
2063
|
--
|
2049
2064
|
|
2050
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
2065
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L497) ios
|
2051
2066
|
|
2052
2067
|
> def ele_with_pred(opts)
|
2053
2068
|
|
@@ -2063,7 +2078,7 @@ __Returns:__
|
|
2063
2078
|
|
2064
2079
|
--
|
2065
2080
|
|
2066
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
2081
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L508) ios
|
2067
2082
|
|
2068
2083
|
> def eles_with_pred(opts)
|
2069
2084
|
|
@@ -2079,7 +2094,7 @@ __Returns:__
|
|
2079
2094
|
|
2080
2095
|
--
|
2081
2096
|
|
2082
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
2097
|
+
##### [source](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L514) ios
|
2083
2098
|
|
2084
2099
|
> def source
|
2085
2100
|
|
@@ -2091,7 +2106,7 @@ __Returns:__
|
|
2091
2106
|
|
2092
2107
|
--
|
2093
2108
|
|
2094
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
2109
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L518) ios
|
2095
2110
|
|
2096
2111
|
> def _validate_object(*objects)
|
2097
2112
|
|
@@ -2099,7 +2114,7 @@ __Returns:__
|
|
2099
2114
|
|
2100
2115
|
--
|
2101
2116
|
|
2102
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
2117
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L567) ios
|
2103
2118
|
|
2104
2119
|
> def _by_json(opts)
|
2105
2120
|
|
@@ -2134,7 +2149,7 @@ opts = {
|
|
2134
2149
|
|
2135
2150
|
--
|
2136
2151
|
|
2137
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
2152
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L617) ios
|
2138
2153
|
|
2139
2154
|
> def eles_by_json(opts)
|
2140
2155
|
|
@@ -2153,7 +2168,7 @@ eles_by_json({
|
|
2153
2168
|
|
2154
2169
|
--
|
2155
2170
|
|
2156
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
2171
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L623) ios
|
2157
2172
|
|
2158
2173
|
> def ele_by_json(opts)
|
2159
2174
|
|
@@ -2161,7 +2176,7 @@ see eles_by_json
|
|
2161
2176
|
|
2162
2177
|
--
|
2163
2178
|
|
2164
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2179
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/helper.rb#L633) ios
|
2165
2180
|
|
2166
2181
|
> def get_source
|
2167
2182
|
|
@@ -2174,7 +2189,7 @@ __Returns:__
|
|
2174
2189
|
|
2175
2190
|
--
|
2176
2191
|
|
2177
|
-
##### [IAStaticText](https://github.com/appium/ruby_lib/blob/
|
2192
|
+
##### [IAStaticText](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/text.rb#L4) ios
|
2178
2193
|
|
2179
2194
|
> IAStaticText = 'UIAStaticText'.freeze
|
2180
2195
|
|
@@ -2182,7 +2197,7 @@ __Returns:__
|
|
2182
2197
|
|
2183
2198
|
--
|
2184
2199
|
|
2185
|
-
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/
|
2200
|
+
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/text.rb#L5) ios
|
2186
2201
|
|
2187
2202
|
> XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze
|
2188
2203
|
|
@@ -2190,7 +2205,7 @@ __Returns:__
|
|
2190
2205
|
|
2191
2206
|
--
|
2192
2207
|
|
2193
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
2208
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/text.rb#L8) ios
|
2194
2209
|
|
2195
2210
|
> def static_text_class
|
2196
2211
|
|
@@ -2202,7 +2217,7 @@ __Returns:__
|
|
2202
2217
|
|
2203
2218
|
--
|
2204
2219
|
|
2205
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2220
|
+
##### [text](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/text.rb#L16) ios
|
2206
2221
|
|
2207
2222
|
> def text(value)
|
2208
2223
|
|
@@ -2219,7 +2234,7 @@ __Returns:__
|
|
2219
2234
|
|
2220
2235
|
--
|
2221
2236
|
|
2222
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2237
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/text.rb#L30) ios
|
2223
2238
|
|
2224
2239
|
> def texts(value = false)
|
2225
2240
|
|
@@ -2236,7 +2251,7 @@ __Returns:__
|
|
2236
2251
|
|
2237
2252
|
--
|
2238
2253
|
|
2239
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2254
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/text.rb#L43) ios
|
2240
2255
|
|
2241
2256
|
> def first_text
|
2242
2257
|
|
@@ -2248,7 +2263,7 @@ __Returns:__
|
|
2248
2263
|
|
2249
2264
|
--
|
2250
2265
|
|
2251
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2266
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/text.rb#L49) ios
|
2252
2267
|
|
2253
2268
|
> def last_text
|
2254
2269
|
|
@@ -2260,7 +2275,7 @@ __Returns:__
|
|
2260
2275
|
|
2261
2276
|
--
|
2262
2277
|
|
2263
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2278
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/text.rb#L56) ios
|
2264
2279
|
|
2265
2280
|
> def text_exact(value)
|
2266
2281
|
|
@@ -2276,7 +2291,7 @@ __Returns:__
|
|
2276
2291
|
|
2277
2292
|
--
|
2278
2293
|
|
2279
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2294
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/text.rb#L67) ios
|
2280
2295
|
|
2281
2296
|
> def texts_exact(value)
|
2282
2297
|
|
@@ -2292,7 +2307,7 @@ __Returns:__
|
|
2292
2307
|
|
2293
2308
|
--
|
2294
2309
|
|
2295
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2310
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/alert.rb#L5) ios
|
2296
2311
|
|
2297
2312
|
> def alert_accept
|
2298
2313
|
|
@@ -2304,7 +2319,7 @@ __Returns:__
|
|
2304
2319
|
|
2305
2320
|
--
|
2306
2321
|
|
2307
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2322
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/alert.rb#L13) ios
|
2308
2323
|
|
2309
2324
|
> def alert_dismiss
|
2310
2325
|
|
@@ -2316,7 +2331,7 @@ __Returns:__
|
|
2316
2331
|
|
2317
2332
|
--
|
2318
2333
|
|
2319
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
2334
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/mobile_methods.rb#L10) ios
|
2320
2335
|
|
2321
2336
|
> def uiautomation_find
|
2322
2337
|
|
@@ -2328,7 +2343,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2328
2343
|
|
2329
2344
|
--
|
2330
2345
|
|
2331
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
2346
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/button.rb#L4) ios
|
2332
2347
|
|
2333
2348
|
> UIAButton = 'UIAButton'.freeze
|
2334
2349
|
|
@@ -2336,7 +2351,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2336
2351
|
|
2337
2352
|
--
|
2338
2353
|
|
2339
|
-
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/
|
2354
|
+
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/button.rb#L5) ios
|
2340
2355
|
|
2341
2356
|
> XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze
|
2342
2357
|
|
@@ -2344,7 +2359,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2344
2359
|
|
2345
2360
|
--
|
2346
2361
|
|
2347
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
2362
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/button.rb#L8) ios
|
2348
2363
|
|
2349
2364
|
> def button_class
|
2350
2365
|
|
@@ -2356,7 +2371,7 @@ __Returns:__
|
|
2356
2371
|
|
2357
2372
|
--
|
2358
2373
|
|
2359
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2374
|
+
##### [button](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/button.rb#L16) ios
|
2360
2375
|
|
2361
2376
|
> def button(value)
|
2362
2377
|
|
@@ -2373,7 +2388,7 @@ __Returns:__
|
|
2373
2388
|
|
2374
2389
|
--
|
2375
2390
|
|
2376
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2391
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/button.rb#L31) ios
|
2377
2392
|
|
2378
2393
|
> def buttons(value = false)
|
2379
2394
|
|
@@ -2390,7 +2405,7 @@ __Returns:__
|
|
2390
2405
|
|
2391
2406
|
--
|
2392
2407
|
|
2393
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2408
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/button.rb#L44) ios
|
2394
2409
|
|
2395
2410
|
> def first_button
|
2396
2411
|
|
@@ -2402,7 +2417,7 @@ __Returns:__
|
|
2402
2417
|
|
2403
2418
|
--
|
2404
2419
|
|
2405
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2420
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/button.rb#L52) ios
|
2406
2421
|
|
2407
2422
|
> def last_button
|
2408
2423
|
|
@@ -2416,7 +2431,7 @@ __Returns:__
|
|
2416
2431
|
|
2417
2432
|
--
|
2418
2433
|
|
2419
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2434
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/button.rb#L59) ios
|
2420
2435
|
|
2421
2436
|
> def button_exact(value)
|
2422
2437
|
|
@@ -2432,7 +2447,7 @@ __Returns:__
|
|
2432
2447
|
|
2433
2448
|
--
|
2434
2449
|
|
2435
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2450
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/button.rb#L70) ios
|
2436
2451
|
|
2437
2452
|
> def buttons_exact(value)
|
2438
2453
|
|
@@ -2448,7 +2463,7 @@ __Returns:__
|
|
2448
2463
|
|
2449
2464
|
--
|
2450
2465
|
|
2451
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2466
|
+
##### [find](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/generic.rb#L6) ios
|
2452
2467
|
|
2453
2468
|
> def find(value)
|
2454
2469
|
|
@@ -2464,7 +2479,7 @@ __Returns:__
|
|
2464
2479
|
|
2465
2480
|
--
|
2466
2481
|
|
2467
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2482
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/generic.rb#L17) ios
|
2468
2483
|
|
2469
2484
|
> def finds(value)
|
2470
2485
|
|
@@ -2480,7 +2495,7 @@ __Returns:__
|
|
2480
2495
|
|
2481
2496
|
--
|
2482
2497
|
|
2483
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2498
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/generic.rb#L28) ios
|
2484
2499
|
|
2485
2500
|
> def find_exact(value)
|
2486
2501
|
|
@@ -2496,7 +2511,7 @@ __Returns:__
|
|
2496
2511
|
|
2497
2512
|
--
|
2498
2513
|
|
2499
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2514
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/generic.rb#L39) ios
|
2500
2515
|
|
2501
2516
|
> def finds_exact(value)
|
2502
2517
|
|
@@ -2512,7 +2527,31 @@ __Returns:__
|
|
2512
2527
|
|
2513
2528
|
--
|
2514
2529
|
|
2515
|
-
##### [
|
2530
|
+
##### [_raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/generic.rb#L49) ios
|
2531
|
+
|
2532
|
+
> def _raise_error_if_no_element(element)
|
2533
|
+
|
2534
|
+
|
2535
|
+
|
2536
|
+
--
|
2537
|
+
|
2538
|
+
##### [_elements_include](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/generic.rb#L54) ios
|
2539
|
+
|
2540
|
+
> def _elements_include(elements, value)
|
2541
|
+
|
2542
|
+
|
2543
|
+
|
2544
|
+
--
|
2545
|
+
|
2546
|
+
##### [_elements_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/generic.rb#L62) ios
|
2547
|
+
|
2548
|
+
> def _elements_exact(elements, value)
|
2549
|
+
|
2550
|
+
|
2551
|
+
|
2552
|
+
--
|
2553
|
+
|
2554
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2516
2555
|
|
2517
2556
|
> UIATextField = 'UIATextField'.freeze
|
2518
2557
|
|
@@ -2520,7 +2559,7 @@ __Returns:__
|
|
2520
2559
|
|
2521
2560
|
--
|
2522
2561
|
|
2523
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2562
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2524
2563
|
|
2525
2564
|
> UIASecureTextField = 'UIASecureTextField'.freeze
|
2526
2565
|
|
@@ -2528,7 +2567,7 @@ __Returns:__
|
|
2528
2567
|
|
2529
2568
|
--
|
2530
2569
|
|
2531
|
-
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/
|
2570
|
+
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L6) ios
|
2532
2571
|
|
2533
2572
|
> XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze
|
2534
2573
|
|
@@ -2536,7 +2575,7 @@ __Returns:__
|
|
2536
2575
|
|
2537
2576
|
--
|
2538
2577
|
|
2539
|
-
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/
|
2578
|
+
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L7) ios
|
2540
2579
|
|
2541
2580
|
> XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze
|
2542
2581
|
|
@@ -2544,7 +2583,7 @@ __Returns:__
|
|
2544
2583
|
|
2545
2584
|
--
|
2546
2585
|
|
2547
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
2586
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
2548
2587
|
|
2549
2588
|
> def text_field_class
|
2550
2589
|
|
@@ -2556,7 +2595,7 @@ __Returns:__
|
|
2556
2595
|
|
2557
2596
|
--
|
2558
2597
|
|
2559
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
2598
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L15) ios
|
2560
2599
|
|
2561
2600
|
> def secure_text_field_class
|
2562
2601
|
|
@@ -2568,7 +2607,7 @@ __Returns:__
|
|
2568
2607
|
|
2569
2608
|
--
|
2570
2609
|
|
2571
|
-
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/
|
2610
|
+
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L40) ios
|
2572
2611
|
|
2573
2612
|
> def _textfield_visible
|
2574
2613
|
|
@@ -2576,7 +2615,7 @@ Appium
|
|
2576
2615
|
|
2577
2616
|
--
|
2578
2617
|
|
2579
|
-
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/
|
2618
|
+
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L45) ios
|
2580
2619
|
|
2581
2620
|
> def _textfield_exact_string(value)
|
2582
2621
|
|
@@ -2584,7 +2623,7 @@ Appium
|
|
2584
2623
|
|
2585
2624
|
--
|
2586
2625
|
|
2587
|
-
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/
|
2626
|
+
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L52) ios
|
2588
2627
|
|
2589
2628
|
> def _textfield_contains_string(value)
|
2590
2629
|
|
@@ -2592,7 +2631,7 @@ Appium
|
|
2592
2631
|
|
2593
2632
|
--
|
2594
2633
|
|
2595
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2634
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L65) ios
|
2596
2635
|
|
2597
2636
|
> def textfield(value)
|
2598
2637
|
|
@@ -2610,7 +2649,7 @@ __Returns:__
|
|
2610
2649
|
|
2611
2650
|
--
|
2612
2651
|
|
2613
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2652
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L91) ios
|
2614
2653
|
|
2615
2654
|
> def textfields(value = false)
|
2616
2655
|
|
@@ -2627,7 +2666,7 @@ __Returns:__
|
|
2627
2666
|
|
2628
2667
|
--
|
2629
2668
|
|
2630
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2669
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L103) ios
|
2631
2670
|
|
2632
2671
|
> def first_textfield
|
2633
2672
|
|
@@ -2639,7 +2678,7 @@ __Returns:__
|
|
2639
2678
|
|
2640
2679
|
--
|
2641
2680
|
|
2642
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2681
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L113) ios
|
2643
2682
|
|
2644
2683
|
> def last_textfield
|
2645
2684
|
|
@@ -2651,7 +2690,7 @@ __Returns:__
|
|
2651
2690
|
|
2652
2691
|
--
|
2653
2692
|
|
2654
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2693
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L126) ios
|
2655
2694
|
|
2656
2695
|
> def textfield_exact(value)
|
2657
2696
|
|
@@ -2667,7 +2706,7 @@ __Returns:__
|
|
2667
2706
|
|
2668
2707
|
--
|
2669
2708
|
|
2670
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2709
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/textfield.rb#L137) ios
|
2671
2710
|
|
2672
2711
|
> def textfields_exact(value)
|
2673
2712
|
|
@@ -2683,7 +2722,7 @@ __Returns:__
|
|
2683
2722
|
|
2684
2723
|
--
|
2685
2724
|
|
2686
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2725
|
+
##### [value](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/patch.rb#L12)
|
2687
2726
|
|
2688
2727
|
> def value
|
2689
2728
|
|
@@ -2693,7 +2732,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2693
2732
|
|
2694
2733
|
--
|
2695
2734
|
|
2696
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2735
|
+
##### [name](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/patch.rb#L19)
|
2697
2736
|
|
2698
2737
|
> def name
|
2699
2738
|
|
@@ -2703,7 +2742,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2703
2742
|
|
2704
2743
|
--
|
2705
2744
|
|
2706
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2745
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/patch.rb#L31)
|
2707
2746
|
|
2708
2747
|
> def location_rel
|
2709
2748
|
|
@@ -2721,7 +2760,7 @@ __Returns:__
|
|
2721
2760
|
|
2722
2761
|
--
|
2723
2762
|
|
2724
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2763
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/patch.rb#L152)
|
2725
2764
|
|
2726
2765
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2727
2766
|
|
@@ -2729,7 +2768,7 @@ __Returns:__
|
|
2729
2768
|
|
2730
2769
|
--
|
2731
2770
|
|
2732
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2771
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/common/patch.rb#L155)
|
2733
2772
|
|
2734
2773
|
> def patch_remote_driver_commands
|
2735
2774
|
|