appium_lib 9.1.3 → 9.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +81 -0
- data/Rakefile +12 -5
- data/android_tests/lib/android/specs/driver.rb +10 -5
- data/android_tests/lib/run.rb +8 -1
- data/docs/android_docs.md +254 -276
- data/docs/ios_docs.md +263 -271
- data/docs/ios_xcuitest.md +1 -0
- data/ios_tests/appium.txt +1 -0
- data/ios_tests/lib/ios/specs/driver.rb +8 -12
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/multi_touch.rb +1 -1
- data/lib/appium_lib/device/touch_actions.rb +2 -1
- data/lib/appium_lib/driver.rb +19 -25
- data/lib/appium_lib/ios/mobile_methods.rb +9 -0
- metadata +3 -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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/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/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L283)
|
210
210
|
|
211
211
|
> def default_wait
|
212
212
|
|
@@ -220,37 +220,7 @@ __Returns:__
|
|
220
220
|
|
221
221
|
--
|
222
222
|
|
223
|
-
##### [
|
224
|
-
|
225
|
-
> def default_wait=(value)
|
226
|
-
|
227
|
-
Default wait time for elements to appear
|
228
|
-
Returns the default client side wait.
|
229
|
-
This value is independent of what the server is using
|
230
|
-
|
231
|
-
__Returns:__
|
232
|
-
|
233
|
-
[Integer]
|
234
|
-
|
235
|
-
--
|
236
|
-
|
237
|
-
##### [last_waits](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L285)
|
238
|
-
|
239
|
-
> def last_waits
|
240
|
-
|
241
|
-
Array of previous wait time values
|
242
|
-
|
243
|
-
--
|
244
|
-
|
245
|
-
##### [last_waits=](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L285)
|
246
|
-
|
247
|
-
> def last_waits=(value)
|
248
|
-
|
249
|
-
Array of previous wait time values
|
250
|
-
|
251
|
-
--
|
252
|
-
|
253
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/driver.rb#L287)
|
223
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L285)
|
254
224
|
|
255
225
|
> def sauce_username
|
256
226
|
|
@@ -258,7 +228,7 @@ Username for use on Sauce Labs
|
|
258
228
|
|
259
229
|
--
|
260
230
|
|
261
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
231
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L285)
|
262
232
|
|
263
233
|
> def sauce_username=(value)
|
264
234
|
|
@@ -266,7 +236,7 @@ Username for use on Sauce Labs
|
|
266
236
|
|
267
237
|
--
|
268
238
|
|
269
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
239
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L287)
|
270
240
|
|
271
241
|
> def sauce_access_key
|
272
242
|
|
@@ -274,7 +244,7 @@ Access Key for use on Sauce Labs
|
|
274
244
|
|
275
245
|
--
|
276
246
|
|
277
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
247
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L287)
|
278
248
|
|
279
249
|
> def sauce_access_key=(value)
|
280
250
|
|
@@ -282,7 +252,7 @@ Access Key for use on Sauce Labs
|
|
282
252
|
|
283
253
|
--
|
284
254
|
|
285
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
255
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L289)
|
286
256
|
|
287
257
|
> def appium_port
|
288
258
|
|
@@ -290,7 +260,7 @@ Appium's server port
|
|
290
260
|
|
291
261
|
--
|
292
262
|
|
293
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
263
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L289)
|
294
264
|
|
295
265
|
> def appium_port=(value)
|
296
266
|
|
@@ -298,7 +268,7 @@ Appium's server port
|
|
298
268
|
|
299
269
|
--
|
300
270
|
|
301
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
271
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L291)
|
302
272
|
|
303
273
|
> def appium_device
|
304
274
|
|
@@ -306,7 +276,7 @@ Device type to request from the appium server
|
|
306
276
|
|
307
277
|
--
|
308
278
|
|
309
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
279
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L291)
|
310
280
|
|
311
281
|
> def appium_device=(value)
|
312
282
|
|
@@ -314,15 +284,16 @@ Device type to request from the appium server
|
|
314
284
|
|
315
285
|
--
|
316
286
|
|
317
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
287
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L294)
|
318
288
|
|
319
289
|
> def automation_name
|
320
290
|
|
321
|
-
Automation name sent to appium server
|
291
|
+
Automation name sent to appium server or received from server
|
292
|
+
If automation_name is nil, it is not set both client side and server side.
|
322
293
|
|
323
294
|
--
|
324
295
|
|
325
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
296
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L296)
|
326
297
|
|
327
298
|
> def appium_server_version
|
328
299
|
|
@@ -343,7 +314,7 @@ __Returns:__
|
|
343
314
|
|
344
315
|
--
|
345
316
|
|
346
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
317
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L298)
|
347
318
|
|
348
319
|
> def appium_debug
|
349
320
|
|
@@ -351,7 +322,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
351
322
|
|
352
323
|
--
|
353
324
|
|
354
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
325
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L298)
|
355
326
|
|
356
327
|
> def appium_debug=(value)
|
357
328
|
|
@@ -359,7 +330,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
359
330
|
|
360
331
|
--
|
361
332
|
|
362
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
333
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L300)
|
363
334
|
|
364
335
|
> def listener
|
365
336
|
|
@@ -367,7 +338,7 @@ instance of AbstractEventListener for logging support
|
|
367
338
|
|
368
339
|
--
|
369
340
|
|
370
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
341
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L300)
|
371
342
|
|
372
343
|
> def listener=(value)
|
373
344
|
|
@@ -375,7 +346,7 @@ instance of AbstractEventListener for logging support
|
|
375
346
|
|
376
347
|
--
|
377
348
|
|
378
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
349
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L303)
|
379
350
|
|
380
351
|
> def driver
|
381
352
|
|
@@ -387,7 +358,7 @@ __Returns:__
|
|
387
358
|
|
388
359
|
--
|
389
360
|
|
390
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
361
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L306)
|
391
362
|
|
392
363
|
> def http_client
|
393
364
|
|
@@ -399,7 +370,7 @@ __Returns:__
|
|
399
370
|
|
400
371
|
--
|
401
372
|
|
402
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
373
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L327)
|
403
374
|
|
404
375
|
> def initialize(opts = {})
|
405
376
|
|
@@ -430,7 +401,7 @@ __Returns:__
|
|
430
401
|
|
431
402
|
--
|
432
403
|
|
433
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
404
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L399)
|
434
405
|
|
435
406
|
> def driver_attributes
|
436
407
|
|
@@ -438,7 +409,7 @@ Returns a hash of the driver attributes
|
|
438
409
|
|
439
410
|
--
|
440
411
|
|
441
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
412
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L421)
|
442
413
|
|
443
414
|
> def device_is_android?
|
444
415
|
|
@@ -450,7 +421,7 @@ __Returns:__
|
|
450
421
|
|
451
422
|
--
|
452
423
|
|
453
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
424
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L427)
|
454
425
|
|
455
426
|
> def automation_name_is_xcuitest?
|
456
427
|
|
@@ -462,7 +433,7 @@ __Returns:__
|
|
462
433
|
|
463
434
|
--
|
464
435
|
|
465
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
436
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L434)
|
466
437
|
|
467
438
|
> def check_server_version_xcuitest
|
468
439
|
|
@@ -475,7 +446,7 @@ __Returns:__
|
|
475
446
|
|
476
447
|
--
|
477
448
|
|
478
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
449
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L466)
|
479
450
|
|
480
451
|
> def appium_client_version
|
481
452
|
|
@@ -493,7 +464,7 @@ __Returns:__
|
|
493
464
|
|
494
465
|
--
|
495
466
|
|
496
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
467
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L478)
|
497
468
|
|
498
469
|
> def self.absolute_app_path(opts)
|
499
470
|
|
@@ -510,7 +481,7 @@ __Returns:__
|
|
510
481
|
|
511
482
|
--
|
512
483
|
|
513
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
484
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L511)
|
514
485
|
|
515
486
|
> def server_url
|
516
487
|
|
@@ -522,7 +493,7 @@ __Returns:__
|
|
522
493
|
|
523
494
|
--
|
524
495
|
|
525
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
496
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L522)
|
526
497
|
|
527
498
|
> def restart
|
528
499
|
|
@@ -534,7 +505,7 @@ __Returns:__
|
|
534
505
|
|
535
506
|
--
|
536
507
|
|
537
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
508
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L533)
|
538
509
|
|
539
510
|
> def screenshot(png_save_path)
|
540
511
|
|
@@ -552,7 +523,7 @@ __Returns:__
|
|
552
523
|
|
553
524
|
--
|
554
525
|
|
555
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
526
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L540)
|
556
527
|
|
557
528
|
> def driver_quit
|
558
529
|
|
@@ -564,7 +535,7 @@ __Returns:__
|
|
564
535
|
|
565
536
|
--
|
566
537
|
|
567
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
538
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L550)
|
568
539
|
|
569
540
|
> def start_driver
|
570
541
|
|
@@ -576,26 +547,23 @@ __Returns:__
|
|
576
547
|
|
577
548
|
--
|
578
549
|
|
579
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
550
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L588)
|
580
551
|
|
581
552
|
> def no_wait
|
582
553
|
|
583
|
-
Set implicit wait
|
554
|
+
Set implicit wait to zero.
|
584
555
|
|
585
556
|
--
|
586
557
|
|
587
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
558
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L602)
|
588
559
|
|
589
560
|
> def set_wait(timeout = nil)
|
590
561
|
|
591
|
-
Set implicit wait
|
592
|
-
if set_wait is called without a param then the second to last
|
593
|
-
wait will be used.
|
562
|
+
Set implicit wait. Default to @default_wait.
|
594
563
|
|
595
564
|
```ruby`
|
596
565
|
set_wait 2
|
597
|
-
set_wait
|
598
|
-
set_wait # 2
|
566
|
+
set_wait # @default_wait
|
599
567
|
|
600
568
|
````
|
601
569
|
|
@@ -609,7 +577,7 @@ __Returns:__
|
|
609
577
|
|
610
578
|
--
|
611
579
|
|
612
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
580
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L619)
|
613
581
|
|
614
582
|
> def exists(pre_check = 0, post_check = @default_wait)
|
615
583
|
|
@@ -635,7 +603,7 @@ __Returns:__
|
|
635
603
|
|
636
604
|
--
|
637
605
|
|
638
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
606
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L643)
|
639
607
|
|
640
608
|
> def execute_script(script, *args)
|
641
609
|
|
@@ -653,7 +621,7 @@ __Returns:__
|
|
653
621
|
|
654
622
|
--
|
655
623
|
|
656
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
624
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L651)
|
657
625
|
|
658
626
|
> def find_elements(*args)
|
659
627
|
|
@@ -669,7 +637,7 @@ __Returns:__
|
|
669
637
|
|
670
638
|
--
|
671
639
|
|
672
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
640
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L659)
|
673
641
|
|
674
642
|
> def find_element(*args)
|
675
643
|
|
@@ -685,7 +653,7 @@ __Returns:__
|
|
685
653
|
|
686
654
|
--
|
687
655
|
|
688
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
656
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L672)
|
689
657
|
|
690
658
|
> def set_location(opts = {})
|
691
659
|
|
@@ -701,7 +669,7 @@ __Returns:__
|
|
701
669
|
|
702
670
|
--
|
703
671
|
|
704
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
672
|
+
##### [x](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L682)
|
705
673
|
|
706
674
|
> def x
|
707
675
|
|
@@ -714,7 +682,16 @@ __Returns:__
|
|
714
682
|
|
715
683
|
--
|
716
684
|
|
717
|
-
##### [
|
685
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/driver.rb#L691)
|
686
|
+
|
687
|
+
> def set_automation_name_if_nil
|
688
|
+
|
689
|
+
If "automationName" is set only server side, this method set "automationName" attribute into @automation_name.
|
690
|
+
Since @automation_name is set only client side before start_driver is called.
|
691
|
+
|
692
|
+
--
|
693
|
+
|
694
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/logger.rb#L13)
|
718
695
|
|
719
696
|
> def logger=(value)
|
720
697
|
|
@@ -726,7 +703,7 @@ __Parameters:__
|
|
726
703
|
|
727
704
|
--
|
728
705
|
|
729
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
706
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/logger.rb#L17)
|
730
707
|
|
731
708
|
> def logger
|
732
709
|
|
@@ -734,7 +711,7 @@ __Parameters:__
|
|
734
711
|
|
735
712
|
--
|
736
713
|
|
737
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
714
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L7)
|
738
715
|
|
739
716
|
> def app_strings
|
740
717
|
|
@@ -745,7 +722,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
745
722
|
|
746
723
|
--
|
747
724
|
|
748
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
725
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L13)
|
749
726
|
|
750
727
|
> def background_app
|
751
728
|
|
@@ -754,7 +731,7 @@ This is a blocking application
|
|
754
731
|
|
755
732
|
--
|
756
733
|
|
757
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
734
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L18)
|
758
735
|
|
759
736
|
> def current_activity
|
760
737
|
|
@@ -762,7 +739,7 @@ This is a blocking application
|
|
762
739
|
|
763
740
|
--
|
764
741
|
|
765
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
742
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L20)
|
766
743
|
|
767
744
|
> def launch_app
|
768
745
|
|
@@ -770,7 +747,7 @@ Start the simulator and application configured with desired capabilities
|
|
770
747
|
|
771
748
|
--
|
772
749
|
|
773
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
750
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L23)
|
774
751
|
|
775
752
|
> def reset
|
776
753
|
|
@@ -778,7 +755,7 @@ Reset the device, relaunching the application.
|
|
778
755
|
|
779
756
|
--
|
780
757
|
|
781
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
758
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L26)
|
782
759
|
|
783
760
|
> def shake
|
784
761
|
|
@@ -786,7 +763,7 @@ Cause the device to shake
|
|
786
763
|
|
787
764
|
--
|
788
765
|
|
789
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
766
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L29)
|
790
767
|
|
791
768
|
> def toggle_flight_mode
|
792
769
|
|
@@ -794,7 +771,7 @@ Toggle flight mode on or off
|
|
794
771
|
|
795
772
|
--
|
796
773
|
|
797
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
774
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L32)
|
798
775
|
|
799
776
|
> def device_locked?
|
800
777
|
|
@@ -802,7 +779,7 @@ Toggle flight mode on or off
|
|
802
779
|
|
803
780
|
--
|
804
781
|
|
805
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
782
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L34)
|
806
783
|
|
807
784
|
> def hide_keyboard
|
808
785
|
|
@@ -815,7 +792,7 @@ Defaults to 'Done'.
|
|
815
792
|
|
816
793
|
--
|
817
794
|
|
818
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
795
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L43)
|
819
796
|
|
820
797
|
> def press_keycode
|
821
798
|
|
@@ -830,7 +807,7 @@ __Parameters:__
|
|
830
807
|
|
831
808
|
--
|
832
809
|
|
833
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
810
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L49)
|
834
811
|
|
835
812
|
> def long_press_keycode
|
836
813
|
|
@@ -845,7 +822,7 @@ __Parameters:__
|
|
845
822
|
|
846
823
|
--
|
847
824
|
|
848
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
825
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L55)
|
849
826
|
|
850
827
|
> def push_file
|
851
828
|
|
@@ -859,7 +836,7 @@ __Parameters:__
|
|
859
836
|
|
860
837
|
--
|
861
838
|
|
862
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
839
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L60)
|
863
840
|
|
864
841
|
> def pull_file
|
865
842
|
|
@@ -876,7 +853,7 @@ __Parameters:__
|
|
876
853
|
|
877
854
|
--
|
878
855
|
|
879
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
856
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L70)
|
880
857
|
|
881
858
|
> def pull_folder
|
882
859
|
|
@@ -891,7 +868,7 @@ __Parameters:__
|
|
891
868
|
|
892
869
|
--
|
893
870
|
|
894
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
871
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L78)
|
895
872
|
|
896
873
|
> def touch_id
|
897
874
|
|
@@ -908,7 +885,7 @@ Defaults to true.
|
|
908
885
|
|
909
886
|
--
|
910
887
|
|
911
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
888
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L87)
|
912
889
|
|
913
890
|
> def end_coverage
|
914
891
|
|
@@ -922,7 +899,7 @@ __Parameters:__
|
|
922
899
|
|
923
900
|
--
|
924
901
|
|
925
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
902
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L92)
|
926
903
|
|
927
904
|
> def get_settings
|
928
905
|
|
@@ -930,7 +907,7 @@ Get appium Settings for current test session
|
|
930
907
|
|
931
908
|
--
|
932
909
|
|
933
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
910
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L356)
|
934
911
|
|
935
912
|
> def extend_search_contexts
|
936
913
|
|
@@ -938,7 +915,7 @@ Get appium Settings for current test session
|
|
938
915
|
|
939
916
|
--
|
940
917
|
|
941
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
918
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L356)
|
942
919
|
|
943
920
|
> def find_element
|
944
921
|
|
@@ -946,7 +923,7 @@ Get appium Settings for current test session
|
|
946
923
|
|
947
924
|
--
|
948
925
|
|
949
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
926
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L356)
|
950
927
|
|
951
928
|
> def find_elements
|
952
929
|
|
@@ -958,7 +935,7 @@ find_element/s with their accessibility_id
|
|
958
935
|
|
959
936
|
--
|
960
937
|
|
961
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
938
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L387)
|
962
939
|
|
963
940
|
> def add_touch_actions
|
964
941
|
|
@@ -966,7 +943,7 @@ find_element/s with their accessibility_id
|
|
966
943
|
|
967
944
|
--
|
968
945
|
|
969
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
946
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L410)
|
970
947
|
|
971
948
|
> def add_ime_actions
|
972
949
|
|
@@ -974,7 +951,7 @@ find_element/s with their accessibility_id
|
|
974
951
|
|
975
952
|
--
|
976
953
|
|
977
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
954
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L485)
|
978
955
|
|
979
956
|
> def set_context
|
980
957
|
|
@@ -989,7 +966,7 @@ __Parameters:__
|
|
989
966
|
|
990
967
|
--
|
991
968
|
|
992
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
969
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L493)
|
993
970
|
|
994
971
|
> def current_context
|
995
972
|
|
@@ -1001,7 +978,7 @@ __Returns:__
|
|
1001
978
|
|
1002
979
|
--
|
1003
980
|
|
1004
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
981
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L496)
|
1005
982
|
|
1006
983
|
> def available_contexts
|
1007
984
|
|
@@ -1013,7 +990,7 @@ __Returns:__
|
|
1013
990
|
|
1014
991
|
--
|
1015
992
|
|
1016
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
993
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L506)
|
1017
994
|
|
1018
995
|
> def within_context(context)
|
1019
996
|
|
@@ -1029,7 +1006,7 @@ __Parameters:__
|
|
1029
1006
|
|
1030
1007
|
--
|
1031
1008
|
|
1032
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1009
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/device.rb#L514)
|
1033
1010
|
|
1034
1011
|
> def switch_to_default_context
|
1035
1012
|
|
@@ -1037,7 +1014,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1037
1014
|
|
1038
1015
|
--
|
1039
1016
|
|
1040
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1017
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/multi_touch.rb#L28)
|
1041
1018
|
|
1042
1019
|
> def pinch(percentage = 25, auto_perform = true)
|
1043
1020
|
|
@@ -1056,7 +1033,7 @@ __Parameters:__
|
|
1056
1033
|
|
1057
1034
|
--
|
1058
1035
|
|
1059
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1036
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/multi_touch.rb#L64)
|
1060
1037
|
|
1061
1038
|
> def zoom(percentage = 200, auto_perform = true)
|
1062
1039
|
|
@@ -1075,7 +1052,7 @@ __Parameters:__
|
|
1075
1052
|
|
1076
1053
|
--
|
1077
1054
|
|
1078
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1055
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/multi_touch.rb#L95)
|
1079
1056
|
|
1080
1057
|
> def initialize
|
1081
1058
|
|
@@ -1087,7 +1064,7 @@ __Returns:__
|
|
1087
1064
|
|
1088
1065
|
--
|
1089
1066
|
|
1090
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1067
|
+
##### [add](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/multi_touch.rb#L101)
|
1091
1068
|
|
1092
1069
|
> def add(chain)
|
1093
1070
|
|
@@ -1099,7 +1076,7 @@ __Parameters:__
|
|
1099
1076
|
|
1100
1077
|
--
|
1101
1078
|
|
1102
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1079
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/multi_touch.rb#L106)
|
1103
1080
|
|
1104
1081
|
> def perform
|
1105
1082
|
|
@@ -1107,7 +1084,7 @@ Ask Appium to perform the actions
|
|
1107
1084
|
|
1108
1085
|
--
|
1109
1086
|
|
1110
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1087
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L11)
|
1111
1088
|
|
1112
1089
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1113
1090
|
|
@@ -1115,7 +1092,7 @@ Ask Appium to perform the actions
|
|
1115
1092
|
|
1116
1093
|
--
|
1117
1094
|
|
1118
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1095
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L12)
|
1119
1096
|
|
1120
1097
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1121
1098
|
|
@@ -1123,7 +1100,7 @@ Ask Appium to perform the actions
|
|
1123
1100
|
|
1124
1101
|
--
|
1125
1102
|
|
1126
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1103
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L26)
|
1127
1104
|
|
1128
1105
|
> def actions
|
1129
1106
|
|
@@ -1131,7 +1108,7 @@ Returns the value of attribute actions
|
|
1131
1108
|
|
1132
1109
|
--
|
1133
1110
|
|
1134
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1111
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L28)
|
1135
1112
|
|
1136
1113
|
> def initialize
|
1137
1114
|
|
@@ -1143,7 +1120,7 @@ __Returns:__
|
|
1143
1120
|
|
1144
1121
|
--
|
1145
1122
|
|
1146
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1123
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L36)
|
1147
1124
|
|
1148
1125
|
> def move_to(opts)
|
1149
1126
|
|
@@ -1155,7 +1132,7 @@ __Parameters:__
|
|
1155
1132
|
|
1156
1133
|
--
|
1157
1134
|
|
1158
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1135
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L50)
|
1159
1136
|
|
1160
1137
|
> def long_press(opts)
|
1161
1138
|
|
@@ -1176,7 +1153,7 @@ __Parameters:__
|
|
1176
1153
|
|
1177
1154
|
--
|
1178
1155
|
|
1179
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1156
|
+
##### [press](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L62)
|
1180
1157
|
|
1181
1158
|
> def press(opts)
|
1182
1159
|
|
@@ -1189,7 +1166,7 @@ __Parameters:__
|
|
1189
1166
|
|
1190
1167
|
--
|
1191
1168
|
|
1192
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1169
|
+
##### [release](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L73)
|
1193
1170
|
|
1194
1171
|
> def release(opts = nil)
|
1195
1172
|
|
@@ -1201,11 +1178,12 @@ __Parameters:__
|
|
1201
1178
|
|
1202
1179
|
--
|
1203
1180
|
|
1204
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1181
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L85)
|
1205
1182
|
|
1206
1183
|
> def tap(opts)
|
1207
1184
|
|
1208
|
-
Touch a point on the screen
|
1185
|
+
Touch a point on the screen.
|
1186
|
+
Alternatively, you can use `press(...).release.perform` instead of `tap(...).perform`.
|
1209
1187
|
|
1210
1188
|
__Parameters:__
|
1211
1189
|
|
@@ -1213,7 +1191,7 @@ __Parameters:__
|
|
1213
1191
|
|
1214
1192
|
--
|
1215
1193
|
|
1216
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1194
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L98)
|
1217
1195
|
|
1218
1196
|
> def double_tap(opts)
|
1219
1197
|
|
@@ -1225,7 +1203,7 @@ __Parameters:__
|
|
1225
1203
|
|
1226
1204
|
--
|
1227
1205
|
|
1228
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1206
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L109)
|
1229
1207
|
|
1230
1208
|
> def two_finger_tap(opts)
|
1231
1209
|
|
@@ -1237,7 +1215,7 @@ __Parameters:__
|
|
1237
1215
|
|
1238
1216
|
--
|
1239
1217
|
|
1240
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1218
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L117)
|
1241
1219
|
|
1242
1220
|
> def wait(milliseconds)
|
1243
1221
|
|
@@ -1249,7 +1227,7 @@ __Parameters:__
|
|
1249
1227
|
|
1250
1228
|
--
|
1251
1229
|
|
1252
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1230
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L132)
|
1253
1231
|
|
1254
1232
|
> def swipe(opts, ele = nil)
|
1255
1233
|
|
@@ -1263,7 +1241,7 @@ __Parameters:__
|
|
1263
1241
|
|
1264
1242
|
--
|
1265
1243
|
|
1266
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1244
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L166)
|
1267
1245
|
|
1268
1246
|
> def perform
|
1269
1247
|
|
@@ -1271,7 +1249,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1271
1249
|
|
1272
1250
|
--
|
1273
1251
|
|
1274
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1252
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L172)
|
1275
1253
|
|
1276
1254
|
> def cancel
|
1277
1255
|
|
@@ -1279,7 +1257,7 @@ Does nothing, currently.
|
|
1279
1257
|
|
1280
1258
|
--
|
1281
1259
|
|
1282
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1260
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L180)
|
1283
1261
|
|
1284
1262
|
> def chain_method(method, args = nil)
|
1285
1263
|
|
@@ -1287,7 +1265,7 @@ Does nothing, currently.
|
|
1287
1265
|
|
1288
1266
|
--
|
1289
1267
|
|
1290
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1268
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/device/touch_actions.rb#L186)
|
1291
1269
|
|
1292
1270
|
> def args_with_ele_ref(args)
|
1293
1271
|
|
@@ -1295,7 +1273,7 @@ Does nothing, currently.
|
|
1295
1273
|
|
1296
1274
|
--
|
1297
1275
|
|
1298
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1276
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/wait.rb#L9)
|
1299
1277
|
|
1300
1278
|
> def _generic_wait(opts = {})
|
1301
1279
|
|
@@ -1304,7 +1282,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1304
1282
|
|
1305
1283
|
--
|
1306
1284
|
|
1307
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1285
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/wait.rb#L48)
|
1308
1286
|
|
1309
1287
|
> def _process_wait_opts(opts)
|
1310
1288
|
|
@@ -1312,7 +1290,7 @@ process opts before calling _generic_wait
|
|
1312
1290
|
|
1313
1291
|
--
|
1314
1292
|
|
1315
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1293
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/wait.rb#L69)
|
1316
1294
|
|
1317
1295
|
> def wait_true(opts = {}, &block)
|
1318
1296
|
|
@@ -1332,7 +1310,7 @@ __Parameters:__
|
|
1332
1310
|
|
1333
1311
|
--
|
1334
1312
|
|
1335
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1313
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/wait.rb#L87)
|
1336
1314
|
|
1337
1315
|
> def wait(opts = {}, &block)
|
1338
1316
|
|
@@ -1350,7 +1328,7 @@ __Parameters:__
|
|
1350
1328
|
|
1351
1329
|
--
|
1352
1330
|
|
1353
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1331
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L24)
|
1354
1332
|
|
1355
1333
|
> def ignore
|
1356
1334
|
|
@@ -1358,7 +1336,7 @@ Return yield and ignore any exceptions.
|
|
1358
1336
|
|
1359
1337
|
--
|
1360
1338
|
|
1361
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1339
|
+
##### [back](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L31)
|
1362
1340
|
|
1363
1341
|
> def back
|
1364
1342
|
|
@@ -1370,7 +1348,7 @@ __Returns:__
|
|
1370
1348
|
|
1371
1349
|
--
|
1372
1350
|
|
1373
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1351
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L36)
|
1374
1352
|
|
1375
1353
|
> def session_id
|
1376
1354
|
|
@@ -1378,7 +1356,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1378
1356
|
|
1379
1357
|
--
|
1380
1358
|
|
1381
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1359
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L44)
|
1382
1360
|
|
1383
1361
|
> def xpath(xpath_str)
|
1384
1362
|
|
@@ -1394,7 +1372,7 @@ __Returns:__
|
|
1394
1372
|
|
1395
1373
|
--
|
1396
1374
|
|
1397
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1375
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L52)
|
1398
1376
|
|
1399
1377
|
> def xpaths(xpath_str)
|
1400
1378
|
|
@@ -1410,7 +1388,7 @@ __Returns:__
|
|
1410
1388
|
|
1411
1389
|
--
|
1412
1390
|
|
1413
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1391
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L56)
|
1414
1392
|
|
1415
1393
|
> def _print_source(source)
|
1416
1394
|
|
@@ -1418,7 +1396,7 @@ __Returns:__
|
|
1418
1396
|
|
1419
1397
|
--
|
1420
1398
|
|
1421
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1399
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L69)
|
1422
1400
|
|
1423
1401
|
> def result
|
1424
1402
|
|
@@ -1426,7 +1404,7 @@ Returns the value of attribute result
|
|
1426
1404
|
|
1427
1405
|
--
|
1428
1406
|
|
1429
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1407
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L71)
|
1430
1408
|
|
1431
1409
|
> def initialize
|
1432
1410
|
|
@@ -1438,7 +1416,7 @@ __Returns:__
|
|
1438
1416
|
|
1439
1417
|
--
|
1440
1418
|
|
1441
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1419
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L75)
|
1442
1420
|
|
1443
1421
|
> def reset
|
1444
1422
|
|
@@ -1446,7 +1424,7 @@ __Returns:__
|
|
1446
1424
|
|
1447
1425
|
--
|
1448
1426
|
|
1449
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1427
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L80)
|
1450
1428
|
|
1451
1429
|
> def start_element(name, attrs = [])
|
1452
1430
|
|
@@ -1454,7 +1432,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1454
1432
|
|
1455
1433
|
--
|
1456
1434
|
|
1457
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1435
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L86)
|
1458
1436
|
|
1459
1437
|
> def formatted_result
|
1460
1438
|
|
@@ -1462,7 +1440,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1462
1440
|
|
1463
1441
|
--
|
1464
1442
|
|
1465
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1443
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L97)
|
1466
1444
|
|
1467
1445
|
> def get_page_class
|
1468
1446
|
|
@@ -1470,7 +1448,7 @@ Returns a string of class counts of visible elements.
|
|
1470
1448
|
|
1471
1449
|
--
|
1472
1450
|
|
1473
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1451
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L108)
|
1474
1452
|
|
1475
1453
|
> def page_class
|
1476
1454
|
|
@@ -1479,7 +1457,7 @@ Useful for appium_console.
|
|
1479
1457
|
|
1480
1458
|
--
|
1481
1459
|
|
1482
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1460
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L118)
|
1483
1461
|
|
1484
1462
|
> def px_to_window_rel(opts = {})
|
1485
1463
|
|
@@ -1491,7 +1469,7 @@ px_to_window_rel x: 50, y: 150
|
|
1491
1469
|
|
1492
1470
|
--
|
1493
1471
|
|
1494
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1472
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L137)
|
1495
1473
|
|
1496
1474
|
> def xml_keys(target)
|
1497
1475
|
|
@@ -1507,7 +1485,7 @@ __Returns:__
|
|
1507
1485
|
|
1508
1486
|
--
|
1509
1487
|
|
1510
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1488
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L145)
|
1511
1489
|
|
1512
1490
|
> def xml_values(target)
|
1513
1491
|
|
@@ -1523,7 +1501,7 @@ __Returns:__
|
|
1523
1501
|
|
1524
1502
|
--
|
1525
1503
|
|
1526
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1504
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L153)
|
1527
1505
|
|
1528
1506
|
> def resolve_id(id)
|
1529
1507
|
|
@@ -1539,7 +1517,7 @@ __Returns:__
|
|
1539
1517
|
|
1540
1518
|
--
|
1541
1519
|
|
1542
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1520
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L159)
|
1543
1521
|
|
1544
1522
|
> def filter
|
1545
1523
|
|
@@ -1547,7 +1525,7 @@ Returns the value of attribute filter
|
|
1547
1525
|
|
1548
1526
|
--
|
1549
1527
|
|
1550
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1528
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L162)
|
1551
1529
|
|
1552
1530
|
> def filter=(value)
|
1553
1531
|
|
@@ -1555,7 +1533,7 @@ convert to string to support symbols
|
|
1555
1533
|
|
1556
1534
|
--
|
1557
1535
|
|
1558
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1536
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L168)
|
1559
1537
|
|
1560
1538
|
> def initialize
|
1561
1539
|
|
@@ -1567,7 +1545,7 @@ __Returns:__
|
|
1567
1545
|
|
1568
1546
|
--
|
1569
1547
|
|
1570
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1548
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L173)
|
1571
1549
|
|
1572
1550
|
> def reset
|
1573
1551
|
|
@@ -1575,7 +1553,7 @@ __Returns:__
|
|
1575
1553
|
|
1576
1554
|
--
|
1577
1555
|
|
1578
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1556
|
+
##### [result](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L179)
|
1579
1557
|
|
1580
1558
|
> def result
|
1581
1559
|
|
@@ -1583,7 +1561,7 @@ __Returns:__
|
|
1583
1561
|
|
1584
1562
|
--
|
1585
1563
|
|
1586
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1564
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L195)
|
1587
1565
|
|
1588
1566
|
> def start_element(name, attrs = [])
|
1589
1567
|
|
@@ -1591,7 +1569,7 @@ __Returns:__
|
|
1591
1569
|
|
1592
1570
|
--
|
1593
1571
|
|
1594
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1572
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L204)
|
1595
1573
|
|
1596
1574
|
> def end_element(name)
|
1597
1575
|
|
@@ -1599,7 +1577,7 @@ __Returns:__
|
|
1599
1577
|
|
1600
1578
|
--
|
1601
1579
|
|
1602
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1580
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L210)
|
1603
1581
|
|
1604
1582
|
> def characters(chars)
|
1605
1583
|
|
@@ -1607,7 +1585,7 @@ __Returns:__
|
|
1607
1585
|
|
1608
1586
|
--
|
1609
1587
|
|
1610
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1588
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/helper.rb#L217)
|
1611
1589
|
|
1612
1590
|
> def _no_such_element
|
1613
1591
|
|
@@ -1615,7 +1593,7 @@ __Returns:__
|
|
1615
1593
|
|
1616
1594
|
--
|
1617
1595
|
|
1618
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1596
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/command.rb#L4)
|
1619
1597
|
|
1620
1598
|
> COMMAND_NO_ARG = {
|
1621
1599
|
|
@@ -1623,7 +1601,7 @@ __Returns:__
|
|
1623
1601
|
|
1624
1602
|
--
|
1625
1603
|
|
1626
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1604
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/command.rb#L23)
|
1627
1605
|
|
1628
1606
|
> COMMAND = {
|
1629
1607
|
|
@@ -1631,23 +1609,23 @@ __Returns:__
|
|
1631
1609
|
|
1632
1610
|
--
|
1633
1611
|
|
1634
|
-
##### [
|
1612
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/element/window.rb#L5)
|
1635
1613
|
|
1636
|
-
>
|
1614
|
+
> def window_size
|
1637
1615
|
|
1638
|
-
|
1616
|
+
Get the window's size
|
1639
1617
|
|
1640
1618
|
--
|
1641
1619
|
|
1642
|
-
##### [
|
1620
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/search_context.rb#L5)
|
1643
1621
|
|
1644
|
-
>
|
1622
|
+
> FINDERS = {
|
1645
1623
|
|
1646
|
-
|
1624
|
+
rubocop:disable Style/MutableConstant
|
1647
1625
|
|
1648
1626
|
--
|
1649
1627
|
|
1650
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1628
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L4) ios
|
1651
1629
|
|
1652
1630
|
> def filter
|
1653
1631
|
|
@@ -1655,7 +1633,7 @@ Returns the value of attribute filter
|
|
1655
1633
|
|
1656
1634
|
--
|
1657
1635
|
|
1658
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1636
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L4) ios
|
1659
1637
|
|
1660
1638
|
> def filter=(value)
|
1661
1639
|
|
@@ -1667,7 +1645,7 @@ __Parameters:__
|
|
1667
1645
|
|
1668
1646
|
--
|
1669
1647
|
|
1670
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1648
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L6) ios
|
1671
1649
|
|
1672
1650
|
> def start_element(type, attrs = [])
|
1673
1651
|
|
@@ -1675,7 +1653,7 @@ __Parameters:__
|
|
1675
1653
|
|
1676
1654
|
--
|
1677
1655
|
|
1678
|
-
##### [_print_attr](https://github.com/appium/ruby_lib/blob/
|
1656
|
+
##### [_print_attr](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L15) ios
|
1679
1657
|
|
1680
1658
|
> def _print_attr(type, name, label, value, hint)
|
1681
1659
|
|
@@ -1683,7 +1661,7 @@ __Parameters:__
|
|
1683
1661
|
|
1684
1662
|
--
|
1685
1663
|
|
1686
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1664
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L41) ios
|
1687
1665
|
|
1688
1666
|
> def ios_password(length = 1)
|
1689
1667
|
|
@@ -1701,7 +1679,7 @@ __Returns:__
|
|
1701
1679
|
|
1702
1680
|
--
|
1703
1681
|
|
1704
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1682
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L53) ios
|
1705
1683
|
|
1706
1684
|
> def get_page(element = source_window(0), class_name = nil)
|
1707
1685
|
|
@@ -1722,7 +1700,7 @@ __Returns:__
|
|
1722
1700
|
|
1723
1701
|
--
|
1724
1702
|
|
1725
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1703
|
+
##### [page](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L139) ios
|
1726
1704
|
|
1727
1705
|
> def page(opts = {})
|
1728
1706
|
|
@@ -1748,7 +1726,7 @@ __Returns:__
|
|
1748
1726
|
|
1749
1727
|
--
|
1750
1728
|
|
1751
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1729
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L170) ios
|
1752
1730
|
|
1753
1731
|
> def source_window(_window_number = 0)
|
1754
1732
|
|
@@ -1764,7 +1742,7 @@ __Returns:__
|
|
1764
1742
|
|
1765
1743
|
--
|
1766
1744
|
|
1767
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
1745
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L185) ios
|
1768
1746
|
|
1769
1747
|
> def page_window(window_number = 0)
|
1770
1748
|
|
@@ -1782,7 +1760,7 @@ __Returns:__
|
|
1782
1760
|
|
1783
1761
|
--
|
1784
1762
|
|
1785
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1763
|
+
##### [id](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L193) ios
|
1786
1764
|
|
1787
1765
|
> def id(id)
|
1788
1766
|
|
@@ -1798,7 +1776,7 @@ __Returns:__
|
|
1798
1776
|
|
1799
1777
|
--
|
1800
1778
|
|
1801
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
1779
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L199) ios
|
1802
1780
|
|
1803
1781
|
> def ios_version
|
1804
1782
|
|
@@ -1810,7 +1788,7 @@ __Returns:__
|
|
1810
1788
|
|
1811
1789
|
--
|
1812
1790
|
|
1813
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1791
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L212) ios
|
1814
1792
|
|
1815
1793
|
> def ele_index(class_name, index)
|
1816
1794
|
|
@@ -1828,7 +1806,7 @@ __Returns:__
|
|
1828
1806
|
|
1829
1807
|
--
|
1830
1808
|
|
1831
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
1809
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L247) ios
|
1832
1810
|
|
1833
1811
|
> def find_ele_by_attr(class_name, attr, value)
|
1834
1812
|
|
@@ -1849,7 +1827,7 @@ __Returns:__
|
|
1849
1827
|
|
1850
1828
|
--
|
1851
1829
|
|
1852
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
1830
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L257) ios
|
1853
1831
|
|
1854
1832
|
> def find_eles_by_attr(class_name, attr, value)
|
1855
1833
|
|
@@ -1870,7 +1848,7 @@ __Returns:__
|
|
1870
1848
|
|
1871
1849
|
--
|
1872
1850
|
|
1873
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1851
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L280) ios
|
1874
1852
|
|
1875
1853
|
> def find_ele_by_attr_include(class_name, attr, value)
|
1876
1854
|
|
@@ -1891,7 +1869,7 @@ __Returns:__
|
|
1891
1869
|
|
1892
1870
|
--
|
1893
1871
|
|
1894
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
1872
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L290) ios
|
1895
1873
|
|
1896
1874
|
> def find_eles_by_attr_include(class_name, attr, value)
|
1897
1875
|
|
@@ -1912,7 +1890,7 @@ __Returns:__
|
|
1912
1890
|
|
1913
1891
|
--
|
1914
1892
|
|
1915
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
1893
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L297) ios
|
1916
1894
|
|
1917
1895
|
> def first_ele(class_name)
|
1918
1896
|
|
@@ -1928,7 +1906,7 @@ __Returns:__
|
|
1928
1906
|
|
1929
1907
|
--
|
1930
1908
|
|
1931
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
1909
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L308) ios
|
1932
1910
|
|
1933
1911
|
> def last_ele(class_name)
|
1934
1912
|
|
@@ -1944,7 +1922,7 @@ __Returns:__
|
|
1944
1922
|
|
1945
1923
|
--
|
1946
1924
|
|
1947
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
1925
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L322) ios
|
1948
1926
|
|
1949
1927
|
> def tag(class_name)
|
1950
1928
|
|
@@ -1960,7 +1938,7 @@ __Returns:__
|
|
1960
1938
|
|
1961
1939
|
--
|
1962
1940
|
|
1963
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
1941
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L334) ios
|
1964
1942
|
|
1965
1943
|
> def tags(class_name)
|
1966
1944
|
|
@@ -1976,7 +1954,7 @@ __Returns:__
|
|
1976
1954
|
|
1977
1955
|
--
|
1978
1956
|
|
1979
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1957
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L371) ios
|
1980
1958
|
|
1981
1959
|
> def ele_by_json_visible_contains(element, value)
|
1982
1960
|
|
@@ -1995,7 +1973,7 @@ __Returns:__
|
|
1995
1973
|
|
1996
1974
|
--
|
1997
1975
|
|
1998
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
1976
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L380) ios
|
1999
1977
|
|
2000
1978
|
> def eles_by_json_visible_contains(element, value)
|
2001
1979
|
|
@@ -2014,7 +1992,7 @@ __Returns:__
|
|
2014
1992
|
|
2015
1993
|
--
|
2016
1994
|
|
2017
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
1995
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L410) ios
|
2018
1996
|
|
2019
1997
|
> def ele_by_json_visible_exact(element, value)
|
2020
1998
|
|
@@ -2033,7 +2011,7 @@ __Returns:__
|
|
2033
2011
|
|
2034
2012
|
--
|
2035
2013
|
|
2036
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2014
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L419) ios
|
2037
2015
|
|
2038
2016
|
> def eles_by_json_visible_exact(element, value)
|
2039
2017
|
|
@@ -2052,7 +2030,7 @@ __Returns:__
|
|
2052
2030
|
|
2053
2031
|
--
|
2054
2032
|
|
2055
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
2033
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L484) ios
|
2056
2034
|
|
2057
2035
|
> def _all_pred(opts)
|
2058
2036
|
|
@@ -2062,7 +2040,7 @@ visible - if true, only visible elements are returned. default true
|
|
2062
2040
|
|
2063
2041
|
--
|
2064
2042
|
|
2065
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
2043
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L497) ios
|
2066
2044
|
|
2067
2045
|
> def ele_with_pred(opts)
|
2068
2046
|
|
@@ -2078,7 +2056,7 @@ __Returns:__
|
|
2078
2056
|
|
2079
2057
|
--
|
2080
2058
|
|
2081
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
2059
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L508) ios
|
2082
2060
|
|
2083
2061
|
> def eles_with_pred(opts)
|
2084
2062
|
|
@@ -2094,7 +2072,7 @@ __Returns:__
|
|
2094
2072
|
|
2095
2073
|
--
|
2096
2074
|
|
2097
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
2075
|
+
##### [source](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L514) ios
|
2098
2076
|
|
2099
2077
|
> def source
|
2100
2078
|
|
@@ -2106,7 +2084,7 @@ __Returns:__
|
|
2106
2084
|
|
2107
2085
|
--
|
2108
2086
|
|
2109
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
2087
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L518) ios
|
2110
2088
|
|
2111
2089
|
> def _validate_object(*objects)
|
2112
2090
|
|
@@ -2114,7 +2092,7 @@ __Returns:__
|
|
2114
2092
|
|
2115
2093
|
--
|
2116
2094
|
|
2117
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
2095
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L567) ios
|
2118
2096
|
|
2119
2097
|
> def _by_json(opts)
|
2120
2098
|
|
@@ -2149,7 +2127,7 @@ opts = {
|
|
2149
2127
|
|
2150
2128
|
--
|
2151
2129
|
|
2152
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
2130
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L617) ios
|
2153
2131
|
|
2154
2132
|
> def eles_by_json(opts)
|
2155
2133
|
|
@@ -2168,7 +2146,7 @@ eles_by_json({
|
|
2168
2146
|
|
2169
2147
|
--
|
2170
2148
|
|
2171
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
2149
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L623) ios
|
2172
2150
|
|
2173
2151
|
> def ele_by_json(opts)
|
2174
2152
|
|
@@ -2176,7 +2154,7 @@ see eles_by_json
|
|
2176
2154
|
|
2177
2155
|
--
|
2178
2156
|
|
2179
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2157
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/helper.rb#L633) ios
|
2180
2158
|
|
2181
2159
|
> def get_source
|
2182
2160
|
|
@@ -2189,7 +2167,7 @@ __Returns:__
|
|
2189
2167
|
|
2190
2168
|
--
|
2191
2169
|
|
2192
|
-
##### [IAStaticText](https://github.com/appium/ruby_lib/blob/
|
2170
|
+
##### [IAStaticText](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/text.rb#L4) ios
|
2193
2171
|
|
2194
2172
|
> IAStaticText = 'UIAStaticText'.freeze
|
2195
2173
|
|
@@ -2197,7 +2175,7 @@ __Returns:__
|
|
2197
2175
|
|
2198
2176
|
--
|
2199
2177
|
|
2200
|
-
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/
|
2178
|
+
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/text.rb#L5) ios
|
2201
2179
|
|
2202
2180
|
> XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze
|
2203
2181
|
|
@@ -2205,7 +2183,7 @@ __Returns:__
|
|
2205
2183
|
|
2206
2184
|
--
|
2207
2185
|
|
2208
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
2186
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/text.rb#L8) ios
|
2209
2187
|
|
2210
2188
|
> def static_text_class
|
2211
2189
|
|
@@ -2217,7 +2195,7 @@ __Returns:__
|
|
2217
2195
|
|
2218
2196
|
--
|
2219
2197
|
|
2220
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2198
|
+
##### [text](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/text.rb#L16) ios
|
2221
2199
|
|
2222
2200
|
> def text(value)
|
2223
2201
|
|
@@ -2234,7 +2212,7 @@ __Returns:__
|
|
2234
2212
|
|
2235
2213
|
--
|
2236
2214
|
|
2237
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2215
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/text.rb#L30) ios
|
2238
2216
|
|
2239
2217
|
> def texts(value = false)
|
2240
2218
|
|
@@ -2251,7 +2229,7 @@ __Returns:__
|
|
2251
2229
|
|
2252
2230
|
--
|
2253
2231
|
|
2254
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2232
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/text.rb#L43) ios
|
2255
2233
|
|
2256
2234
|
> def first_text
|
2257
2235
|
|
@@ -2263,7 +2241,7 @@ __Returns:__
|
|
2263
2241
|
|
2264
2242
|
--
|
2265
2243
|
|
2266
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2244
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/text.rb#L49) ios
|
2267
2245
|
|
2268
2246
|
> def last_text
|
2269
2247
|
|
@@ -2275,7 +2253,7 @@ __Returns:__
|
|
2275
2253
|
|
2276
2254
|
--
|
2277
2255
|
|
2278
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2256
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/text.rb#L56) ios
|
2279
2257
|
|
2280
2258
|
> def text_exact(value)
|
2281
2259
|
|
@@ -2291,7 +2269,7 @@ __Returns:__
|
|
2291
2269
|
|
2292
2270
|
--
|
2293
2271
|
|
2294
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2272
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/text.rb#L67) ios
|
2295
2273
|
|
2296
2274
|
> def texts_exact(value)
|
2297
2275
|
|
@@ -2307,7 +2285,7 @@ __Returns:__
|
|
2307
2285
|
|
2308
2286
|
--
|
2309
2287
|
|
2310
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2288
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/alert.rb#L5) ios
|
2311
2289
|
|
2312
2290
|
> def alert_accept
|
2313
2291
|
|
@@ -2319,7 +2297,7 @@ __Returns:__
|
|
2319
2297
|
|
2320
2298
|
--
|
2321
2299
|
|
2322
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2300
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/alert.rb#L13) ios
|
2323
2301
|
|
2324
2302
|
> def alert_dismiss
|
2325
2303
|
|
@@ -2331,19 +2309,7 @@ __Returns:__
|
|
2331
2309
|
|
2332
2310
|
--
|
2333
2311
|
|
2334
|
-
##### [
|
2335
|
-
|
2336
|
-
> def uiautomation_find
|
2337
|
-
|
2338
|
-
find_element/s can be used with a [UIAutomation command](https://developer.apple.com/library/ios/documentation/ToolsLanguages/Reference/UIAWindowClassReference/UIAWindow/UIAWindow.html#//apple_ref/doc/uid/TP40009930).
|
2339
|
-
|
2340
|
-
```ruby
|
2341
|
-
find_elements :uiautomation, 'elements()
|
2342
|
-
```
|
2343
|
-
|
2344
|
-
--
|
2345
|
-
|
2346
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/ba2fbdcb206609259134fc09eac7940c21cc2c13/lib/appium_lib/ios/element/button.rb#L4) ios
|
2312
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/button.rb#L4) ios
|
2347
2313
|
|
2348
2314
|
> UIAButton = 'UIAButton'.freeze
|
2349
2315
|
|
@@ -2351,7 +2317,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2351
2317
|
|
2352
2318
|
--
|
2353
2319
|
|
2354
|
-
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/
|
2320
|
+
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/button.rb#L5) ios
|
2355
2321
|
|
2356
2322
|
> XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze
|
2357
2323
|
|
@@ -2359,7 +2325,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2359
2325
|
|
2360
2326
|
--
|
2361
2327
|
|
2362
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
2328
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/button.rb#L8) ios
|
2363
2329
|
|
2364
2330
|
> def button_class
|
2365
2331
|
|
@@ -2371,7 +2337,7 @@ __Returns:__
|
|
2371
2337
|
|
2372
2338
|
--
|
2373
2339
|
|
2374
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2340
|
+
##### [button](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/button.rb#L16) ios
|
2375
2341
|
|
2376
2342
|
> def button(value)
|
2377
2343
|
|
@@ -2388,7 +2354,7 @@ __Returns:__
|
|
2388
2354
|
|
2389
2355
|
--
|
2390
2356
|
|
2391
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2357
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/button.rb#L31) ios
|
2392
2358
|
|
2393
2359
|
> def buttons(value = false)
|
2394
2360
|
|
@@ -2405,7 +2371,7 @@ __Returns:__
|
|
2405
2371
|
|
2406
2372
|
--
|
2407
2373
|
|
2408
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2374
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/button.rb#L44) ios
|
2409
2375
|
|
2410
2376
|
> def first_button
|
2411
2377
|
|
@@ -2417,7 +2383,7 @@ __Returns:__
|
|
2417
2383
|
|
2418
2384
|
--
|
2419
2385
|
|
2420
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2386
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/button.rb#L52) ios
|
2421
2387
|
|
2422
2388
|
> def last_button
|
2423
2389
|
|
@@ -2431,7 +2397,7 @@ __Returns:__
|
|
2431
2397
|
|
2432
2398
|
--
|
2433
2399
|
|
2434
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2400
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/button.rb#L59) ios
|
2435
2401
|
|
2436
2402
|
> def button_exact(value)
|
2437
2403
|
|
@@ -2447,7 +2413,7 @@ __Returns:__
|
|
2447
2413
|
|
2448
2414
|
--
|
2449
2415
|
|
2450
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2416
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/button.rb#L70) ios
|
2451
2417
|
|
2452
2418
|
> def buttons_exact(value)
|
2453
2419
|
|
@@ -2463,7 +2429,33 @@ __Returns:__
|
|
2463
2429
|
|
2464
2430
|
--
|
2465
2431
|
|
2466
|
-
##### [
|
2432
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/mobile_methods.rb#L19) ios
|
2433
|
+
|
2434
|
+
> def uiautomation_find
|
2435
|
+
|
2436
|
+
find_element/s can be used with a [UIAutomation command](https://developer.apple.com/library/ios/documentation/ToolsLanguages/Reference/UIAWindowClassReference/UIAWindow/UIAWindow.html#//apple_ref/doc/uid/TP40009930).
|
2437
|
+
|
2438
|
+
```ruby
|
2439
|
+
find_elements :uiautomation, 'elements()
|
2440
|
+
```
|
2441
|
+
|
2442
|
+
--
|
2443
|
+
|
2444
|
+
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/mobile_methods.rb#L19) ios
|
2445
|
+
|
2446
|
+
> def ios_predicate_string_find
|
2447
|
+
|
2448
|
+
find_element/s can be used with a [Predicates](https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/Predicates/AdditionalChapters/Introduction.html)
|
2449
|
+
|
2450
|
+
```ruby
|
2451
|
+
find_elements :predicate, "isWDVisible == 1"
|
2452
|
+
find_elements :predicate, 'wdName == "Buttons"'
|
2453
|
+
find_elements :predicate, 'wdValue == "SearchBar" AND isWDDivisible == 1'
|
2454
|
+
```
|
2455
|
+
|
2456
|
+
--
|
2457
|
+
|
2458
|
+
##### [find](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/generic.rb#L6) ios
|
2467
2459
|
|
2468
2460
|
> def find(value)
|
2469
2461
|
|
@@ -2479,7 +2471,7 @@ __Returns:__
|
|
2479
2471
|
|
2480
2472
|
--
|
2481
2473
|
|
2482
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2474
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/generic.rb#L17) ios
|
2483
2475
|
|
2484
2476
|
> def finds(value)
|
2485
2477
|
|
@@ -2495,7 +2487,7 @@ __Returns:__
|
|
2495
2487
|
|
2496
2488
|
--
|
2497
2489
|
|
2498
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2490
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/generic.rb#L28) ios
|
2499
2491
|
|
2500
2492
|
> def find_exact(value)
|
2501
2493
|
|
@@ -2511,7 +2503,7 @@ __Returns:__
|
|
2511
2503
|
|
2512
2504
|
--
|
2513
2505
|
|
2514
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2506
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/generic.rb#L39) ios
|
2515
2507
|
|
2516
2508
|
> def finds_exact(value)
|
2517
2509
|
|
@@ -2527,7 +2519,7 @@ __Returns:__
|
|
2527
2519
|
|
2528
2520
|
--
|
2529
2521
|
|
2530
|
-
##### [_raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/
|
2522
|
+
##### [_raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/generic.rb#L49) ios
|
2531
2523
|
|
2532
2524
|
> def _raise_error_if_no_element(element)
|
2533
2525
|
|
@@ -2535,7 +2527,7 @@ __Returns:__
|
|
2535
2527
|
|
2536
2528
|
--
|
2537
2529
|
|
2538
|
-
##### [_elements_include](https://github.com/appium/ruby_lib/blob/
|
2530
|
+
##### [_elements_include](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/generic.rb#L54) ios
|
2539
2531
|
|
2540
2532
|
> def _elements_include(elements, value)
|
2541
2533
|
|
@@ -2543,7 +2535,7 @@ __Returns:__
|
|
2543
2535
|
|
2544
2536
|
--
|
2545
2537
|
|
2546
|
-
##### [_elements_exact](https://github.com/appium/ruby_lib/blob/
|
2538
|
+
##### [_elements_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/generic.rb#L62) ios
|
2547
2539
|
|
2548
2540
|
> def _elements_exact(elements, value)
|
2549
2541
|
|
@@ -2551,7 +2543,7 @@ __Returns:__
|
|
2551
2543
|
|
2552
2544
|
--
|
2553
2545
|
|
2554
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2546
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2555
2547
|
|
2556
2548
|
> UIATextField = 'UIATextField'.freeze
|
2557
2549
|
|
@@ -2559,7 +2551,7 @@ __Returns:__
|
|
2559
2551
|
|
2560
2552
|
--
|
2561
2553
|
|
2562
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2554
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2563
2555
|
|
2564
2556
|
> UIASecureTextField = 'UIASecureTextField'.freeze
|
2565
2557
|
|
@@ -2567,7 +2559,7 @@ __Returns:__
|
|
2567
2559
|
|
2568
2560
|
--
|
2569
2561
|
|
2570
|
-
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/
|
2562
|
+
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L6) ios
|
2571
2563
|
|
2572
2564
|
> XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze
|
2573
2565
|
|
@@ -2575,7 +2567,7 @@ __Returns:__
|
|
2575
2567
|
|
2576
2568
|
--
|
2577
2569
|
|
2578
|
-
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/
|
2570
|
+
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L7) ios
|
2579
2571
|
|
2580
2572
|
> XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze
|
2581
2573
|
|
@@ -2583,7 +2575,7 @@ __Returns:__
|
|
2583
2575
|
|
2584
2576
|
--
|
2585
2577
|
|
2586
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
2578
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
2587
2579
|
|
2588
2580
|
> def text_field_class
|
2589
2581
|
|
@@ -2595,7 +2587,7 @@ __Returns:__
|
|
2595
2587
|
|
2596
2588
|
--
|
2597
2589
|
|
2598
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
2590
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L15) ios
|
2599
2591
|
|
2600
2592
|
> def secure_text_field_class
|
2601
2593
|
|
@@ -2607,7 +2599,7 @@ __Returns:__
|
|
2607
2599
|
|
2608
2600
|
--
|
2609
2601
|
|
2610
|
-
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/
|
2602
|
+
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L40) ios
|
2611
2603
|
|
2612
2604
|
> def _textfield_visible
|
2613
2605
|
|
@@ -2615,7 +2607,7 @@ Appium
|
|
2615
2607
|
|
2616
2608
|
--
|
2617
2609
|
|
2618
|
-
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/
|
2610
|
+
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L45) ios
|
2619
2611
|
|
2620
2612
|
> def _textfield_exact_string(value)
|
2621
2613
|
|
@@ -2623,7 +2615,7 @@ Appium
|
|
2623
2615
|
|
2624
2616
|
--
|
2625
2617
|
|
2626
|
-
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/
|
2618
|
+
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L52) ios
|
2627
2619
|
|
2628
2620
|
> def _textfield_contains_string(value)
|
2629
2621
|
|
@@ -2631,7 +2623,7 @@ Appium
|
|
2631
2623
|
|
2632
2624
|
--
|
2633
2625
|
|
2634
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2626
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L65) ios
|
2635
2627
|
|
2636
2628
|
> def textfield(value)
|
2637
2629
|
|
@@ -2649,7 +2641,7 @@ __Returns:__
|
|
2649
2641
|
|
2650
2642
|
--
|
2651
2643
|
|
2652
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2644
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L91) ios
|
2653
2645
|
|
2654
2646
|
> def textfields(value = false)
|
2655
2647
|
|
@@ -2666,7 +2658,7 @@ __Returns:__
|
|
2666
2658
|
|
2667
2659
|
--
|
2668
2660
|
|
2669
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2661
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L103) ios
|
2670
2662
|
|
2671
2663
|
> def first_textfield
|
2672
2664
|
|
@@ -2678,7 +2670,7 @@ __Returns:__
|
|
2678
2670
|
|
2679
2671
|
--
|
2680
2672
|
|
2681
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2673
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L113) ios
|
2682
2674
|
|
2683
2675
|
> def last_textfield
|
2684
2676
|
|
@@ -2690,7 +2682,7 @@ __Returns:__
|
|
2690
2682
|
|
2691
2683
|
--
|
2692
2684
|
|
2693
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2685
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L126) ios
|
2694
2686
|
|
2695
2687
|
> def textfield_exact(value)
|
2696
2688
|
|
@@ -2706,7 +2698,7 @@ __Returns:__
|
|
2706
2698
|
|
2707
2699
|
--
|
2708
2700
|
|
2709
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
2701
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/ios/element/textfield.rb#L137) ios
|
2710
2702
|
|
2711
2703
|
> def textfields_exact(value)
|
2712
2704
|
|
@@ -2722,7 +2714,7 @@ __Returns:__
|
|
2722
2714
|
|
2723
2715
|
--
|
2724
2716
|
|
2725
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
2717
|
+
##### [value](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/patch.rb#L12)
|
2726
2718
|
|
2727
2719
|
> def value
|
2728
2720
|
|
@@ -2732,7 +2724,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2732
2724
|
|
2733
2725
|
--
|
2734
2726
|
|
2735
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
2727
|
+
##### [name](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/patch.rb#L19)
|
2736
2728
|
|
2737
2729
|
> def name
|
2738
2730
|
|
@@ -2742,7 +2734,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2742
2734
|
|
2743
2735
|
--
|
2744
2736
|
|
2745
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
2737
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/patch.rb#L31)
|
2746
2738
|
|
2747
2739
|
> def location_rel
|
2748
2740
|
|
@@ -2760,7 +2752,7 @@ __Returns:__
|
|
2760
2752
|
|
2761
2753
|
--
|
2762
2754
|
|
2763
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
2755
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/patch.rb#L152)
|
2764
2756
|
|
2765
2757
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2766
2758
|
|
@@ -2768,7 +2760,7 @@ __Returns:__
|
|
2768
2760
|
|
2769
2761
|
--
|
2770
2762
|
|
2771
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
2763
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/ecf1a5a1e323aeb1efdaebbfe1ae566bfcae1978/lib/appium_lib/common/patch.rb#L155)
|
2772
2764
|
|
2773
2765
|
> def patch_remote_driver_commands
|
2774
2766
|
|