appium_lib 9.3.8 → 9.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/android_tests/lib/android/specs/common/device.rb +2 -2
- data/android_tests/lib/android/specs/common/patch.rb +1 -1
- data/docs/android_docs.md +230 -230
- data/docs/ios_docs.md +383 -249
- data/docs/ios_xcuitest.md +7 -0
- data/ios_tests/lib/ios/specs/ios/xcuitest_gestures.rb +61 -0
- data/lib/appium_lib/android/element/button.rb +18 -34
- data/lib/appium_lib/android/helper.rb +12 -22
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/driver.rb +2 -0
- data/lib/appium_lib/ios/xcuitest_gestures.rb +144 -0
- data/release_notes.md +7 -0
- metadata +4 -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/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L76)
|
2
2
|
|
3
3
|
> def self.load_settings(opts = {})
|
4
4
|
|
@@ -27,7 +27,7 @@ __Returns:__
|
|
27
27
|
|
28
28
|
--
|
29
29
|
|
30
|
-
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/
|
30
|
+
##### [load_appium_txt](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L112)
|
31
31
|
|
32
32
|
> def self.load_settings(opts = {})
|
33
33
|
|
@@ -57,7 +57,7 @@ __Returns:__
|
|
57
57
|
|
58
58
|
--
|
59
59
|
|
60
|
-
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/
|
60
|
+
##### [expand_required_files](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L118)
|
61
61
|
|
62
62
|
> def self.expand_required_files(base_dir, file_paths)
|
63
63
|
|
@@ -75,7 +75,7 @@ __Returns:__
|
|
75
75
|
|
76
76
|
--
|
77
77
|
|
78
|
-
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/
|
78
|
+
##### [symbolize_keys](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L150)
|
79
79
|
|
80
80
|
> def self.symbolize_keys(hash)
|
81
81
|
|
@@ -86,7 +86,7 @@ https://github.com/rails/docrails/blob/a3b1105ada3da64acfa3843b164b14b734456a50/
|
|
86
86
|
|
87
87
|
--
|
88
88
|
|
89
|
-
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/
|
89
|
+
##### [promote_singleton_appium_methods](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L171)
|
90
90
|
|
91
91
|
> def self.promote_singleton_appium_methods(modules)
|
92
92
|
|
@@ -104,7 +104,7 @@ otherwise, the array of modules will be used as the promotion target.
|
|
104
104
|
|
105
105
|
--
|
106
106
|
|
107
|
-
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/
|
107
|
+
##### [promote_appium_methods](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L224)
|
108
108
|
|
109
109
|
> def self.promote_appium_methods(class_array)
|
110
110
|
|
@@ -134,7 +134,7 @@ __Parameters:__
|
|
134
134
|
|
135
135
|
--
|
136
136
|
|
137
|
-
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/
|
137
|
+
##### [init_caps_for_appium](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L259)
|
138
138
|
|
139
139
|
> def self.init_caps_for_appium(opts_caps = {})
|
140
140
|
|
@@ -153,7 +153,7 @@ __Returns:__
|
|
153
153
|
|
154
154
|
--
|
155
155
|
|
156
|
-
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/
|
156
|
+
##### [global_webdriver_http_sleep](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L277)
|
157
157
|
|
158
158
|
> def global_webdriver_http_sleep
|
159
159
|
|
@@ -161,7 +161,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
161
161
|
|
162
162
|
--
|
163
163
|
|
164
|
-
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/
|
164
|
+
##### [global_webdriver_http_sleep=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L277)
|
165
165
|
|
166
166
|
> def global_webdriver_http_sleep=(value)
|
167
167
|
|
@@ -169,7 +169,7 @@ The amount to sleep in seconds before every webdriver http call.
|
|
169
169
|
|
170
170
|
--
|
171
171
|
|
172
|
-
##### [caps](https://github.com/appium/ruby_lib/blob/
|
172
|
+
##### [caps](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L279)
|
173
173
|
|
174
174
|
> def caps
|
175
175
|
|
@@ -177,7 +177,7 @@ Selenium webdriver capabilities
|
|
177
177
|
|
178
178
|
--
|
179
179
|
|
180
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
180
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L279)
|
181
181
|
|
182
182
|
> def caps=(value)
|
183
183
|
|
@@ -185,7 +185,7 @@ Selenium webdriver capabilities
|
|
185
185
|
|
186
186
|
--
|
187
187
|
|
188
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
188
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L281)
|
189
189
|
|
190
190
|
> def custom_url
|
191
191
|
|
@@ -193,7 +193,7 @@ Custom URL for the selenium server
|
|
193
193
|
|
194
194
|
--
|
195
195
|
|
196
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
196
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L281)
|
197
197
|
|
198
198
|
> def custom_url=(value)
|
199
199
|
|
@@ -201,7 +201,7 @@ Custom URL for the selenium server
|
|
201
201
|
|
202
202
|
--
|
203
203
|
|
204
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
204
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L283)
|
205
205
|
|
206
206
|
> def export_session
|
207
207
|
|
@@ -209,7 +209,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
209
209
|
|
210
210
|
--
|
211
211
|
|
212
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
212
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L283)
|
213
213
|
|
214
214
|
> def export_session=(value)
|
215
215
|
|
@@ -217,7 +217,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
217
217
|
|
218
218
|
--
|
219
219
|
|
220
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
220
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L288)
|
221
221
|
|
222
222
|
> def default_wait
|
223
223
|
|
@@ -231,7 +231,7 @@ __Returns:__
|
|
231
231
|
|
232
232
|
--
|
233
233
|
|
234
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L290)
|
235
235
|
|
236
236
|
> def sauce_username
|
237
237
|
|
@@ -239,7 +239,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
239
239
|
|
240
240
|
--
|
241
241
|
|
242
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L290)
|
243
243
|
|
244
244
|
> def sauce_username=(value)
|
245
245
|
|
@@ -247,7 +247,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
247
247
|
|
248
248
|
--
|
249
249
|
|
250
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L292)
|
251
251
|
|
252
252
|
> def sauce_access_key
|
253
253
|
|
@@ -255,7 +255,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
255
255
|
|
256
256
|
--
|
257
257
|
|
258
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
258
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L292)
|
259
259
|
|
260
260
|
> def sauce_access_key=(value)
|
261
261
|
|
@@ -263,7 +263,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
263
263
|
|
264
264
|
--
|
265
265
|
|
266
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
266
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L294)
|
267
267
|
|
268
268
|
> def sauce_endpoint
|
269
269
|
|
@@ -271,7 +271,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
271
271
|
|
272
272
|
--
|
273
273
|
|
274
|
-
##### [sauce_endpoint=](https://github.com/appium/ruby_lib/blob/
|
274
|
+
##### [sauce_endpoint=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L294)
|
275
275
|
|
276
276
|
> def sauce_endpoint=(value)
|
277
277
|
|
@@ -279,7 +279,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
279
279
|
|
280
280
|
--
|
281
281
|
|
282
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
282
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L296)
|
283
283
|
|
284
284
|
> def appium_port
|
285
285
|
|
@@ -287,7 +287,7 @@ Appium's server port
|
|
287
287
|
|
288
288
|
--
|
289
289
|
|
290
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
290
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L296)
|
291
291
|
|
292
292
|
> def appium_port=(value)
|
293
293
|
|
@@ -295,7 +295,7 @@ Appium's server port
|
|
295
295
|
|
296
296
|
--
|
297
297
|
|
298
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
298
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L298)
|
299
299
|
|
300
300
|
> def appium_device
|
301
301
|
|
@@ -303,7 +303,7 @@ Device type to request from the appium server
|
|
303
303
|
|
304
304
|
--
|
305
305
|
|
306
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
306
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L298)
|
307
307
|
|
308
308
|
> def appium_device=(value)
|
309
309
|
|
@@ -311,7 +311,7 @@ Device type to request from the appium server
|
|
311
311
|
|
312
312
|
--
|
313
313
|
|
314
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
314
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L301)
|
315
315
|
|
316
316
|
> def automation_name
|
317
317
|
|
@@ -320,7 +320,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
320
320
|
|
321
321
|
--
|
322
322
|
|
323
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
323
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L303)
|
324
324
|
|
325
325
|
> def appium_server_status
|
326
326
|
|
@@ -328,7 +328,7 @@ Appium's server version
|
|
328
328
|
|
329
329
|
--
|
330
330
|
|
331
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
331
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L305)
|
332
332
|
|
333
333
|
> def appium_debug
|
334
334
|
|
@@ -336,7 +336,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
336
336
|
|
337
337
|
--
|
338
338
|
|
339
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
339
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L305)
|
340
340
|
|
341
341
|
> def appium_debug=(value)
|
342
342
|
|
@@ -344,7 +344,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
344
344
|
|
345
345
|
--
|
346
346
|
|
347
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
347
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L307)
|
348
348
|
|
349
349
|
> def listener
|
350
350
|
|
@@ -352,7 +352,7 @@ instance of AbstractEventListener for logging support
|
|
352
352
|
|
353
353
|
--
|
354
354
|
|
355
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
355
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L307)
|
356
356
|
|
357
357
|
> def listener=(value)
|
358
358
|
|
@@ -360,7 +360,7 @@ instance of AbstractEventListener for logging support
|
|
360
360
|
|
361
361
|
--
|
362
362
|
|
363
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
363
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L310)
|
364
364
|
|
365
365
|
> def driver
|
366
366
|
|
@@ -372,7 +372,7 @@ __Returns:__
|
|
372
372
|
|
373
373
|
--
|
374
374
|
|
375
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
375
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L313)
|
376
376
|
|
377
377
|
> def http_client
|
378
378
|
|
@@ -384,7 +384,7 @@ __Returns:__
|
|
384
384
|
|
385
385
|
--
|
386
386
|
|
387
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
387
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L318)
|
388
388
|
|
389
389
|
> def appium_wait_timeout
|
390
390
|
|
@@ -398,7 +398,7 @@ __Returns:__
|
|
398
398
|
|
399
399
|
--
|
400
400
|
|
401
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
401
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L323)
|
402
402
|
|
403
403
|
> def appium_wait_interval
|
404
404
|
|
@@ -412,7 +412,7 @@ __Returns:__
|
|
412
412
|
|
413
413
|
--
|
414
414
|
|
415
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
415
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L363)
|
416
416
|
|
417
417
|
> def initialize(opts = {})
|
418
418
|
|
@@ -428,7 +428,7 @@ __Returns:__
|
|
428
428
|
|
429
429
|
--
|
430
430
|
|
431
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
431
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L442)
|
432
432
|
|
433
433
|
> def driver_attributes
|
434
434
|
|
@@ -436,7 +436,7 @@ Returns a hash of the driver attributes
|
|
436
436
|
|
437
437
|
--
|
438
438
|
|
439
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
439
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L467)
|
440
440
|
|
441
441
|
> def device_is_android?
|
442
442
|
|
@@ -448,7 +448,7 @@ __Returns:__
|
|
448
448
|
|
449
449
|
--
|
450
450
|
|
451
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
451
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L473)
|
452
452
|
|
453
453
|
> def automation_name_is_xcuitest?
|
454
454
|
|
@@ -460,7 +460,7 @@ __Returns:__
|
|
460
460
|
|
461
461
|
--
|
462
462
|
|
463
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
463
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L480)
|
464
464
|
|
465
465
|
> def check_server_version_xcuitest
|
466
466
|
|
@@ -473,7 +473,7 @@ __Returns:__
|
|
473
473
|
|
474
474
|
--
|
475
475
|
|
476
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
476
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L501)
|
477
477
|
|
478
478
|
> def appium_server_version
|
479
479
|
|
@@ -494,7 +494,7 @@ __Returns:__
|
|
494
494
|
|
495
495
|
--
|
496
496
|
|
497
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
497
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L518)
|
498
498
|
|
499
499
|
> def appium_client_version
|
500
500
|
|
@@ -512,7 +512,7 @@ __Returns:__
|
|
512
512
|
|
513
513
|
--
|
514
514
|
|
515
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
515
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L530)
|
516
516
|
|
517
517
|
> def self.absolute_app_path(opts)
|
518
518
|
|
@@ -529,7 +529,7 @@ __Returns:__
|
|
529
529
|
|
530
530
|
--
|
531
531
|
|
532
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
532
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L563)
|
533
533
|
|
534
534
|
> def server_url
|
535
535
|
|
@@ -541,7 +541,7 @@ __Returns:__
|
|
541
541
|
|
542
542
|
--
|
543
543
|
|
544
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
544
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L574)
|
545
545
|
|
546
546
|
> def restart
|
547
547
|
|
@@ -553,7 +553,7 @@ __Returns:__
|
|
553
553
|
|
554
554
|
--
|
555
555
|
|
556
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
556
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L585)
|
557
557
|
|
558
558
|
> def screenshot(png_save_path)
|
559
559
|
|
@@ -571,7 +571,7 @@ __Returns:__
|
|
571
571
|
|
572
572
|
--
|
573
573
|
|
574
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
574
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L592)
|
575
575
|
|
576
576
|
> def driver_quit
|
577
577
|
|
@@ -583,7 +583,7 @@ __Returns:__
|
|
583
583
|
|
584
584
|
--
|
585
585
|
|
586
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
586
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L602)
|
587
587
|
|
588
588
|
> def start_driver
|
589
589
|
|
@@ -595,7 +595,7 @@ __Returns:__
|
|
595
595
|
|
596
596
|
--
|
597
597
|
|
598
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
598
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L640)
|
599
599
|
|
600
600
|
> def no_wait
|
601
601
|
|
@@ -603,7 +603,7 @@ Set implicit wait to zero.
|
|
603
603
|
|
604
604
|
--
|
605
605
|
|
606
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
606
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L654)
|
607
607
|
|
608
608
|
> def set_wait(timeout = nil)
|
609
609
|
|
@@ -625,7 +625,7 @@ __Returns:__
|
|
625
625
|
|
626
626
|
--
|
627
627
|
|
628
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
628
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L671)
|
629
629
|
|
630
630
|
> def exists(pre_check = 0, post_check = @default_wait)
|
631
631
|
|
@@ -649,7 +649,7 @@ __Returns:__
|
|
649
649
|
|
650
650
|
--
|
651
651
|
|
652
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
652
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L695)
|
653
653
|
|
654
654
|
> def execute_script(script, *args)
|
655
655
|
|
@@ -667,7 +667,7 @@ __Returns:__
|
|
667
667
|
|
668
668
|
--
|
669
669
|
|
670
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
670
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L717)
|
671
671
|
|
672
672
|
> def find_elements(*args)
|
673
673
|
|
@@ -693,7 +693,7 @@ __Returns:__
|
|
693
693
|
|
694
694
|
--
|
695
695
|
|
696
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
696
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L732)
|
697
697
|
|
698
698
|
> def find_element(*args)
|
699
699
|
|
@@ -714,7 +714,7 @@ __Returns:__
|
|
714
714
|
|
715
715
|
--
|
716
716
|
|
717
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
717
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L745)
|
718
718
|
|
719
719
|
> def set_location(opts = {})
|
720
720
|
|
@@ -730,7 +730,7 @@ __Returns:__
|
|
730
730
|
|
731
731
|
--
|
732
732
|
|
733
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
733
|
+
##### [x](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L755)
|
734
734
|
|
735
735
|
> def x
|
736
736
|
|
@@ -743,7 +743,7 @@ __Returns:__
|
|
743
743
|
|
744
744
|
--
|
745
745
|
|
746
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
746
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/driver.rb#L764)
|
747
747
|
|
748
748
|
> def set_automation_name_if_nil
|
749
749
|
|
@@ -752,7 +752,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
752
752
|
|
753
753
|
--
|
754
754
|
|
755
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
755
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/logger.rb#L13)
|
756
756
|
|
757
757
|
> def logger=(value)
|
758
758
|
|
@@ -764,7 +764,7 @@ __Parameters:__
|
|
764
764
|
|
765
765
|
--
|
766
766
|
|
767
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
767
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/logger.rb#L17)
|
768
768
|
|
769
769
|
> def logger
|
770
770
|
|
@@ -772,7 +772,7 @@ __Parameters:__
|
|
772
772
|
|
773
773
|
--
|
774
774
|
|
775
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
775
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L7)
|
776
776
|
|
777
777
|
> def app_strings
|
778
778
|
|
@@ -783,7 +783,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
783
783
|
|
784
784
|
--
|
785
785
|
|
786
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
786
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L13)
|
787
787
|
|
788
788
|
> def background_app
|
789
789
|
|
@@ -792,7 +792,7 @@ This is a blocking application
|
|
792
792
|
|
793
793
|
--
|
794
794
|
|
795
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
795
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L24)
|
796
796
|
|
797
797
|
> def current_activity
|
798
798
|
|
@@ -800,7 +800,7 @@ This is a blocking application
|
|
800
800
|
|
801
801
|
--
|
802
802
|
|
803
|
-
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/
|
803
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L26)
|
804
804
|
|
805
805
|
> def get_system_bars
|
806
806
|
|
@@ -815,7 +815,7 @@ __Returns:__
|
|
815
815
|
|
816
816
|
--
|
817
817
|
|
818
|
-
##### [get_display_density](https://github.com/appium/ruby_lib/blob/
|
818
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L34)
|
819
819
|
|
820
820
|
> def get_display_density
|
821
821
|
|
@@ -830,7 +830,7 @@ __Returns:__
|
|
830
830
|
|
831
831
|
--
|
832
832
|
|
833
|
-
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/
|
833
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L42)
|
834
834
|
|
835
835
|
> def is_keyboard_shown
|
836
836
|
|
@@ -845,7 +845,7 @@ __Returns:__
|
|
845
845
|
|
846
846
|
--
|
847
847
|
|
848
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
848
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L50)
|
849
849
|
|
850
850
|
> def launch_app
|
851
851
|
|
@@ -853,7 +853,7 @@ Start the simulator and application configured with desired capabilities
|
|
853
853
|
|
854
854
|
--
|
855
855
|
|
856
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
856
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L53)
|
857
857
|
|
858
858
|
> def reset
|
859
859
|
|
@@ -861,7 +861,7 @@ Reset the device, relaunching the application.
|
|
861
861
|
|
862
862
|
--
|
863
863
|
|
864
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
864
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L56)
|
865
865
|
|
866
866
|
> def shake
|
867
867
|
|
@@ -869,7 +869,7 @@ Cause the device to shake
|
|
869
869
|
|
870
870
|
--
|
871
871
|
|
872
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
872
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L59)
|
873
873
|
|
874
874
|
> def toggle_flight_mode
|
875
875
|
|
@@ -877,7 +877,7 @@ Toggle flight mode on or off
|
|
877
877
|
|
878
878
|
--
|
879
879
|
|
880
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
880
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L62)
|
881
881
|
|
882
882
|
> def device_locked?
|
883
883
|
|
@@ -885,7 +885,7 @@ Toggle flight mode on or off
|
|
885
885
|
|
886
886
|
--
|
887
887
|
|
888
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
888
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L64)
|
889
889
|
|
890
890
|
> def hide_keyboard
|
891
891
|
|
@@ -898,7 +898,7 @@ Defaults to 'Done'.
|
|
898
898
|
|
899
899
|
--
|
900
900
|
|
901
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
901
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L73)
|
902
902
|
|
903
903
|
> def press_keycode
|
904
904
|
|
@@ -913,7 +913,7 @@ __Parameters:__
|
|
913
913
|
|
914
914
|
--
|
915
915
|
|
916
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
916
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L79)
|
917
917
|
|
918
918
|
> def long_press_keycode
|
919
919
|
|
@@ -928,7 +928,7 @@ __Parameters:__
|
|
928
928
|
|
929
929
|
--
|
930
930
|
|
931
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
931
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L85)
|
932
932
|
|
933
933
|
> def push_file
|
934
934
|
|
@@ -942,7 +942,7 @@ __Parameters:__
|
|
942
942
|
|
943
943
|
--
|
944
944
|
|
945
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
945
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L90)
|
946
946
|
|
947
947
|
> def pull_file
|
948
948
|
|
@@ -959,7 +959,7 @@ __Parameters:__
|
|
959
959
|
|
960
960
|
--
|
961
961
|
|
962
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
962
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L100)
|
963
963
|
|
964
964
|
> def pull_folder
|
965
965
|
|
@@ -974,7 +974,7 @@ __Parameters:__
|
|
974
974
|
|
975
975
|
--
|
976
976
|
|
977
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
977
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L108)
|
978
978
|
|
979
979
|
> def touch_id
|
980
980
|
|
@@ -991,7 +991,7 @@ Defaults to true.
|
|
991
991
|
|
992
992
|
--
|
993
993
|
|
994
|
-
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/
|
994
|
+
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L117)
|
995
995
|
|
996
996
|
> def toggle_touch_id_enrollment
|
997
997
|
|
@@ -999,7 +999,7 @@ iOS Simulator only: Toggle touch id enrollment on an iOS Simulator.
|
|
999
999
|
|
1000
1000
|
--
|
1001
1001
|
|
1002
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
1002
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L120)
|
1003
1003
|
|
1004
1004
|
> def end_coverage
|
1005
1005
|
|
@@ -1013,7 +1013,7 @@ __Parameters:__
|
|
1013
1013
|
|
1014
1014
|
--
|
1015
1015
|
|
1016
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
1016
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L125)
|
1017
1017
|
|
1018
1018
|
> def get_settings
|
1019
1019
|
|
@@ -1021,7 +1021,7 @@ Get appium Settings for current test session
|
|
1021
1021
|
|
1022
1022
|
--
|
1023
1023
|
|
1024
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
1024
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L128)
|
1025
1025
|
|
1026
1026
|
> def update_settings
|
1027
1027
|
|
@@ -1033,7 +1033,7 @@ __Parameters:__
|
|
1033
1033
|
|
1034
1034
|
--
|
1035
1035
|
|
1036
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
1036
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L132)
|
1037
1037
|
|
1038
1038
|
> def start_activity
|
1039
1039
|
|
@@ -1047,7 +1047,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
1047
1047
|
|
1048
1048
|
--
|
1049
1049
|
|
1050
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
1050
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L146)
|
1051
1051
|
|
1052
1052
|
> def get_network_connection
|
1053
1053
|
|
@@ -1056,7 +1056,7 @@ See set_network_connection method for return value
|
|
1056
1056
|
|
1057
1057
|
--
|
1058
1058
|
|
1059
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
1059
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L150)
|
1060
1060
|
|
1061
1061
|
> def set_network_connection
|
1062
1062
|
|
@@ -1075,7 +1075,7 @@ __Parameters:__
|
|
1075
1075
|
|
1076
1076
|
--
|
1077
1077
|
|
1078
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
1078
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L163)
|
1079
1079
|
|
1080
1080
|
> def set_immediate_value
|
1081
1081
|
|
@@ -1089,7 +1089,7 @@ set_immediate_value element, 'hello'
|
|
1089
1089
|
|
1090
1090
|
--
|
1091
1091
|
|
1092
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
1092
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L172)
|
1093
1093
|
|
1094
1094
|
> def get_performance_data_types
|
1095
1095
|
|
@@ -1103,7 +1103,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1103
1103
|
|
1104
1104
|
--
|
1105
1105
|
|
1106
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
1106
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L434)
|
1107
1107
|
|
1108
1108
|
> def extend_search_contexts
|
1109
1109
|
|
@@ -1111,7 +1111,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1111
1111
|
|
1112
1112
|
--
|
1113
1113
|
|
1114
|
-
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/
|
1114
|
+
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L434)
|
1115
1115
|
|
1116
1116
|
> def find_element_with_appium
|
1117
1117
|
|
@@ -1119,7 +1119,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1119
1119
|
|
1120
1120
|
--
|
1121
1121
|
|
1122
|
-
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/
|
1122
|
+
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L434)
|
1123
1123
|
|
1124
1124
|
> def find_elements_with_appium
|
1125
1125
|
|
@@ -1131,7 +1131,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1131
1131
|
|
1132
1132
|
--
|
1133
1133
|
|
1134
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1134
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L465)
|
1135
1135
|
|
1136
1136
|
> def add_touch_actions
|
1137
1137
|
|
@@ -1139,7 +1139,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1139
1139
|
|
1140
1140
|
--
|
1141
1141
|
|
1142
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1142
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L488)
|
1143
1143
|
|
1144
1144
|
> def add_ime_actions
|
1145
1145
|
|
@@ -1147,7 +1147,7 @@ find_element/s_with_appium with their accessibility_id
|
|
1147
1147
|
|
1148
1148
|
--
|
1149
1149
|
|
1150
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1150
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L563)
|
1151
1151
|
|
1152
1152
|
> def set_context
|
1153
1153
|
|
@@ -1162,7 +1162,7 @@ __Parameters:__
|
|
1162
1162
|
|
1163
1163
|
--
|
1164
1164
|
|
1165
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1165
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L571)
|
1166
1166
|
|
1167
1167
|
> def current_context
|
1168
1168
|
|
@@ -1174,7 +1174,7 @@ __Returns:__
|
|
1174
1174
|
|
1175
1175
|
--
|
1176
1176
|
|
1177
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1177
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L574)
|
1178
1178
|
|
1179
1179
|
> def available_contexts
|
1180
1180
|
|
@@ -1186,7 +1186,7 @@ __Returns:__
|
|
1186
1186
|
|
1187
1187
|
--
|
1188
1188
|
|
1189
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1189
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L584)
|
1190
1190
|
|
1191
1191
|
> def within_context(context)
|
1192
1192
|
|
@@ -1202,7 +1202,7 @@ __Parameters:__
|
|
1202
1202
|
|
1203
1203
|
--
|
1204
1204
|
|
1205
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1205
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/device.rb#L592)
|
1206
1206
|
|
1207
1207
|
> def switch_to_default_context
|
1208
1208
|
|
@@ -1210,7 +1210,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1210
1210
|
|
1211
1211
|
--
|
1212
1212
|
|
1213
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1213
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L28)
|
1214
1214
|
|
1215
1215
|
> def pinch(percentage = 25, auto_perform = true)
|
1216
1216
|
|
@@ -1229,7 +1229,7 @@ __Parameters:__
|
|
1229
1229
|
|
1230
1230
|
--
|
1231
1231
|
|
1232
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1232
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L57)
|
1233
1233
|
|
1234
1234
|
> def zoom(percentage = 200, auto_perform = true)
|
1235
1235
|
|
@@ -1248,7 +1248,7 @@ __Parameters:__
|
|
1248
1248
|
|
1249
1249
|
--
|
1250
1250
|
|
1251
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1251
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L79)
|
1252
1252
|
|
1253
1253
|
> def pinch_for_xcuitest(rate)
|
1254
1254
|
|
@@ -1256,7 +1256,7 @@ __Parameters:__
|
|
1256
1256
|
|
1257
1257
|
--
|
1258
1258
|
|
1259
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1259
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L94)
|
1260
1260
|
|
1261
1261
|
> def pinch_android(rate)
|
1262
1262
|
|
@@ -1264,7 +1264,7 @@ __Parameters:__
|
|
1264
1264
|
|
1265
1265
|
--
|
1266
1266
|
|
1267
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1267
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L108)
|
1268
1268
|
|
1269
1269
|
> def pinch_ios(rate)
|
1270
1270
|
|
@@ -1272,7 +1272,7 @@ __Parameters:__
|
|
1272
1272
|
|
1273
1273
|
--
|
1274
1274
|
|
1275
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1275
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L122)
|
1276
1276
|
|
1277
1277
|
> def zoom_for_xcuitest(rate)
|
1278
1278
|
|
@@ -1280,7 +1280,7 @@ __Parameters:__
|
|
1280
1280
|
|
1281
1281
|
--
|
1282
1282
|
|
1283
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1283
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L137)
|
1284
1284
|
|
1285
1285
|
> def zoom_android(rate)
|
1286
1286
|
|
@@ -1288,7 +1288,7 @@ __Parameters:__
|
|
1288
1288
|
|
1289
1289
|
--
|
1290
1290
|
|
1291
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1291
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L151)
|
1292
1292
|
|
1293
1293
|
> def zoom_ios(rate)
|
1294
1294
|
|
@@ -1296,7 +1296,7 @@ __Parameters:__
|
|
1296
1296
|
|
1297
1297
|
--
|
1298
1298
|
|
1299
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1299
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L166)
|
1300
1300
|
|
1301
1301
|
> def actions
|
1302
1302
|
|
@@ -1304,7 +1304,7 @@ self
|
|
1304
1304
|
|
1305
1305
|
--
|
1306
1306
|
|
1307
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1307
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L169)
|
1308
1308
|
|
1309
1309
|
> def initialize
|
1310
1310
|
|
@@ -1316,7 +1316,7 @@ __Returns:__
|
|
1316
1316
|
|
1317
1317
|
--
|
1318
1318
|
|
1319
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1319
|
+
##### [add](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L175)
|
1320
1320
|
|
1321
1321
|
> def add(chain)
|
1322
1322
|
|
@@ -1328,7 +1328,7 @@ __Parameters:__
|
|
1328
1328
|
|
1329
1329
|
--
|
1330
1330
|
|
1331
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1331
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/multi_touch.rb#L180)
|
1332
1332
|
|
1333
1333
|
> def perform
|
1334
1334
|
|
@@ -1336,7 +1336,7 @@ Ask Appium to perform the actions
|
|
1336
1336
|
|
1337
1337
|
--
|
1338
1338
|
|
1339
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1339
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L20)
|
1340
1340
|
|
1341
1341
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1342
1342
|
|
@@ -1344,7 +1344,7 @@ Ask Appium to perform the actions
|
|
1344
1344
|
|
1345
1345
|
--
|
1346
1346
|
|
1347
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1347
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L21)
|
1348
1348
|
|
1349
1349
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1350
1350
|
|
@@ -1352,7 +1352,7 @@ Ask Appium to perform the actions
|
|
1352
1352
|
|
1353
1353
|
--
|
1354
1354
|
|
1355
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1355
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L35)
|
1356
1356
|
|
1357
1357
|
> def actions
|
1358
1358
|
|
@@ -1360,7 +1360,7 @@ Returns the value of attribute actions
|
|
1360
1360
|
|
1361
1361
|
--
|
1362
1362
|
|
1363
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1363
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L37)
|
1364
1364
|
|
1365
1365
|
> def initialize
|
1366
1366
|
|
@@ -1372,7 +1372,7 @@ __Returns:__
|
|
1372
1372
|
|
1373
1373
|
--
|
1374
1374
|
|
1375
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1375
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L48)
|
1376
1376
|
|
1377
1377
|
> def move_to(opts)
|
1378
1378
|
|
@@ -1386,7 +1386,7 @@ __Parameters:__
|
|
1386
1386
|
|
1387
1387
|
--
|
1388
1388
|
|
1389
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1389
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L62)
|
1390
1390
|
|
1391
1391
|
> def long_press(opts)
|
1392
1392
|
|
@@ -1407,7 +1407,7 @@ __Parameters:__
|
|
1407
1407
|
|
1408
1408
|
--
|
1409
1409
|
|
1410
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1410
|
+
##### [press](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L74)
|
1411
1411
|
|
1412
1412
|
> def press(opts)
|
1413
1413
|
|
@@ -1420,7 +1420,7 @@ __Parameters:__
|
|
1420
1420
|
|
1421
1421
|
--
|
1422
1422
|
|
1423
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1423
|
+
##### [release](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L85)
|
1424
1424
|
|
1425
1425
|
> def release(opts = nil)
|
1426
1426
|
|
@@ -1432,7 +1432,7 @@ __Parameters:__
|
|
1432
1432
|
|
1433
1433
|
--
|
1434
1434
|
|
1435
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1435
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L97)
|
1436
1436
|
|
1437
1437
|
> def tap(opts)
|
1438
1438
|
|
@@ -1445,7 +1445,7 @@ __Parameters:__
|
|
1445
1445
|
|
1446
1446
|
--
|
1447
1447
|
|
1448
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1448
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L110)
|
1449
1449
|
|
1450
1450
|
> def double_tap(opts)
|
1451
1451
|
|
@@ -1457,7 +1457,7 @@ __Parameters:__
|
|
1457
1457
|
|
1458
1458
|
--
|
1459
1459
|
|
1460
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1460
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L121)
|
1461
1461
|
|
1462
1462
|
> def two_finger_tap(opts)
|
1463
1463
|
|
@@ -1469,7 +1469,7 @@ __Parameters:__
|
|
1469
1469
|
|
1470
1470
|
--
|
1471
1471
|
|
1472
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1472
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L129)
|
1473
1473
|
|
1474
1474
|
> def wait(milliseconds)
|
1475
1475
|
|
@@ -1481,7 +1481,7 @@ __Parameters:__
|
|
1481
1481
|
|
1482
1482
|
--
|
1483
1483
|
|
1484
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1484
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L152)
|
1485
1485
|
|
1486
1486
|
> def swipe(opts, ele = nil)
|
1487
1487
|
|
@@ -1502,7 +1502,7 @@ __Parameters:__
|
|
1502
1502
|
|
1503
1503
|
--
|
1504
1504
|
|
1505
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1505
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L177)
|
1506
1506
|
|
1507
1507
|
> def perform
|
1508
1508
|
|
@@ -1510,7 +1510,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1510
1510
|
|
1511
1511
|
--
|
1512
1512
|
|
1513
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1513
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L184)
|
1514
1514
|
|
1515
1515
|
> def cancel
|
1516
1516
|
|
@@ -1518,7 +1518,7 @@ Does nothing, currently.
|
|
1518
1518
|
|
1519
1519
|
--
|
1520
1520
|
|
1521
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1521
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L190)
|
1522
1522
|
|
1523
1523
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1524
1524
|
|
@@ -1526,7 +1526,7 @@ Does nothing, currently.
|
|
1526
1526
|
|
1527
1527
|
--
|
1528
1528
|
|
1529
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1529
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L208)
|
1530
1530
|
|
1531
1531
|
> def chain_method(method, args = nil)
|
1532
1532
|
|
@@ -1534,7 +1534,7 @@ Does nothing, currently.
|
|
1534
1534
|
|
1535
1535
|
--
|
1536
1536
|
|
1537
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1537
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/device/touch_actions.rb#L214)
|
1538
1538
|
|
1539
1539
|
> def args_with_ele_ref(args)
|
1540
1540
|
|
@@ -1542,7 +1542,7 @@ Does nothing, currently.
|
|
1542
1542
|
|
1543
1543
|
--
|
1544
1544
|
|
1545
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1545
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/wait.rb#L9)
|
1546
1546
|
|
1547
1547
|
> def _generic_wait(opts = {})
|
1548
1548
|
|
@@ -1551,7 +1551,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1551
1551
|
|
1552
1552
|
--
|
1553
1553
|
|
1554
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1554
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/wait.rb#L48)
|
1555
1555
|
|
1556
1556
|
> def _process_wait_opts(opts)
|
1557
1557
|
|
@@ -1559,7 +1559,7 @@ process opts before calling _generic_wait
|
|
1559
1559
|
|
1560
1560
|
--
|
1561
1561
|
|
1562
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1562
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/wait.rb#L69)
|
1563
1563
|
|
1564
1564
|
> def wait_true(opts = {}, &block)
|
1565
1565
|
|
@@ -1579,7 +1579,7 @@ __Parameters:__
|
|
1579
1579
|
|
1580
1580
|
--
|
1581
1581
|
|
1582
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1582
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/wait.rb#L87)
|
1583
1583
|
|
1584
1584
|
> def wait(opts = {}, &block)
|
1585
1585
|
|
@@ -1597,7 +1597,7 @@ __Parameters:__
|
|
1597
1597
|
|
1598
1598
|
--
|
1599
1599
|
|
1600
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1600
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L24)
|
1601
1601
|
|
1602
1602
|
> def ignore
|
1603
1603
|
|
@@ -1605,7 +1605,7 @@ Return yield and ignore any exceptions.
|
|
1605
1605
|
|
1606
1606
|
--
|
1607
1607
|
|
1608
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1608
|
+
##### [back](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L31)
|
1609
1609
|
|
1610
1610
|
> def back
|
1611
1611
|
|
@@ -1617,7 +1617,7 @@ __Returns:__
|
|
1617
1617
|
|
1618
1618
|
--
|
1619
1619
|
|
1620
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1620
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L36)
|
1621
1621
|
|
1622
1622
|
> def session_id
|
1623
1623
|
|
@@ -1625,7 +1625,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1625
1625
|
|
1626
1626
|
--
|
1627
1627
|
|
1628
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1628
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L44)
|
1629
1629
|
|
1630
1630
|
> def xpath(xpath_str)
|
1631
1631
|
|
@@ -1641,7 +1641,7 @@ __Returns:__
|
|
1641
1641
|
|
1642
1642
|
--
|
1643
1643
|
|
1644
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1644
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L52)
|
1645
1645
|
|
1646
1646
|
> def xpaths(xpath_str)
|
1647
1647
|
|
@@ -1657,7 +1657,7 @@ __Returns:__
|
|
1657
1657
|
|
1658
1658
|
--
|
1659
1659
|
|
1660
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1660
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L56)
|
1661
1661
|
|
1662
1662
|
> def _print_source(source)
|
1663
1663
|
|
@@ -1665,7 +1665,7 @@ __Returns:__
|
|
1665
1665
|
|
1666
1666
|
--
|
1667
1667
|
|
1668
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1668
|
+
##### [result](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L69)
|
1669
1669
|
|
1670
1670
|
> def result
|
1671
1671
|
|
@@ -1673,7 +1673,7 @@ Returns the value of attribute result
|
|
1673
1673
|
|
1674
1674
|
--
|
1675
1675
|
|
1676
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1676
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L71)
|
1677
1677
|
|
1678
1678
|
> def initialize
|
1679
1679
|
|
@@ -1685,7 +1685,7 @@ __Returns:__
|
|
1685
1685
|
|
1686
1686
|
--
|
1687
1687
|
|
1688
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1688
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L75)
|
1689
1689
|
|
1690
1690
|
> def reset
|
1691
1691
|
|
@@ -1693,7 +1693,7 @@ __Returns:__
|
|
1693
1693
|
|
1694
1694
|
--
|
1695
1695
|
|
1696
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1696
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L80)
|
1697
1697
|
|
1698
1698
|
> def start_element(name, attrs = [])
|
1699
1699
|
|
@@ -1701,7 +1701,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1701
1701
|
|
1702
1702
|
--
|
1703
1703
|
|
1704
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1704
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L86)
|
1705
1705
|
|
1706
1706
|
> def formatted_result
|
1707
1707
|
|
@@ -1709,7 +1709,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1709
1709
|
|
1710
1710
|
--
|
1711
1711
|
|
1712
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1712
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L97)
|
1713
1713
|
|
1714
1714
|
> def get_page_class
|
1715
1715
|
|
@@ -1717,7 +1717,7 @@ Returns a string of class counts of visible elements.
|
|
1717
1717
|
|
1718
1718
|
--
|
1719
1719
|
|
1720
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1720
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L108)
|
1721
1721
|
|
1722
1722
|
> def page_class
|
1723
1723
|
|
@@ -1726,7 +1726,7 @@ Useful for appium_console.
|
|
1726
1726
|
|
1727
1727
|
--
|
1728
1728
|
|
1729
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1729
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L118)
|
1730
1730
|
|
1731
1731
|
> def px_to_window_rel(opts = {})
|
1732
1732
|
|
@@ -1738,7 +1738,7 @@ px_to_window_rel x: 50, y: 150
|
|
1738
1738
|
|
1739
1739
|
--
|
1740
1740
|
|
1741
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1741
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L137)
|
1742
1742
|
|
1743
1743
|
> def xml_keys(target)
|
1744
1744
|
|
@@ -1754,7 +1754,7 @@ __Returns:__
|
|
1754
1754
|
|
1755
1755
|
--
|
1756
1756
|
|
1757
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1757
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L145)
|
1758
1758
|
|
1759
1759
|
> def xml_values(target)
|
1760
1760
|
|
@@ -1770,7 +1770,7 @@ __Returns:__
|
|
1770
1770
|
|
1771
1771
|
--
|
1772
1772
|
|
1773
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1773
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L153)
|
1774
1774
|
|
1775
1775
|
> def resolve_id(id)
|
1776
1776
|
|
@@ -1786,7 +1786,7 @@ __Returns:__
|
|
1786
1786
|
|
1787
1787
|
--
|
1788
1788
|
|
1789
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1789
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L159)
|
1790
1790
|
|
1791
1791
|
> def filter
|
1792
1792
|
|
@@ -1794,7 +1794,7 @@ Returns the value of attribute filter
|
|
1794
1794
|
|
1795
1795
|
--
|
1796
1796
|
|
1797
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1797
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L162)
|
1798
1798
|
|
1799
1799
|
> def filter=(value)
|
1800
1800
|
|
@@ -1802,7 +1802,7 @@ convert to string to support symbols
|
|
1802
1802
|
|
1803
1803
|
--
|
1804
1804
|
|
1805
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1805
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L168)
|
1806
1806
|
|
1807
1807
|
> def initialize
|
1808
1808
|
|
@@ -1814,7 +1814,7 @@ __Returns:__
|
|
1814
1814
|
|
1815
1815
|
--
|
1816
1816
|
|
1817
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1817
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L173)
|
1818
1818
|
|
1819
1819
|
> def reset
|
1820
1820
|
|
@@ -1822,7 +1822,7 @@ __Returns:__
|
|
1822
1822
|
|
1823
1823
|
--
|
1824
1824
|
|
1825
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1825
|
+
##### [result](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L179)
|
1826
1826
|
|
1827
1827
|
> def result
|
1828
1828
|
|
@@ -1830,7 +1830,7 @@ __Returns:__
|
|
1830
1830
|
|
1831
1831
|
--
|
1832
1832
|
|
1833
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1833
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L195)
|
1834
1834
|
|
1835
1835
|
> def start_element(name, attrs = [])
|
1836
1836
|
|
@@ -1838,7 +1838,7 @@ __Returns:__
|
|
1838
1838
|
|
1839
1839
|
--
|
1840
1840
|
|
1841
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1841
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L204)
|
1842
1842
|
|
1843
1843
|
> def end_element(name)
|
1844
1844
|
|
@@ -1846,7 +1846,7 @@ __Returns:__
|
|
1846
1846
|
|
1847
1847
|
--
|
1848
1848
|
|
1849
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1849
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L210)
|
1850
1850
|
|
1851
1851
|
> def characters(chars)
|
1852
1852
|
|
@@ -1854,7 +1854,7 @@ __Returns:__
|
|
1854
1854
|
|
1855
1855
|
--
|
1856
1856
|
|
1857
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1857
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/helper.rb#L217)
|
1858
1858
|
|
1859
1859
|
> def _no_such_element
|
1860
1860
|
|
@@ -1862,7 +1862,7 @@ __Returns:__
|
|
1862
1862
|
|
1863
1863
|
--
|
1864
1864
|
|
1865
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1865
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/command.rb#L4)
|
1866
1866
|
|
1867
1867
|
> COMMAND_NO_ARG = {
|
1868
1868
|
|
@@ -1870,7 +1870,7 @@ __Returns:__
|
|
1870
1870
|
|
1871
1871
|
--
|
1872
1872
|
|
1873
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1873
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/command.rb#L27)
|
1874
1874
|
|
1875
1875
|
> COMMAND = {
|
1876
1876
|
|
@@ -1878,7 +1878,7 @@ __Returns:__
|
|
1878
1878
|
|
1879
1879
|
--
|
1880
1880
|
|
1881
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1881
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/element/window.rb#L5)
|
1882
1882
|
|
1883
1883
|
> def window_size
|
1884
1884
|
|
@@ -1886,7 +1886,7 @@ Get the window's size
|
|
1886
1886
|
|
1887
1887
|
--
|
1888
1888
|
|
1889
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1889
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/search_context.rb#L5)
|
1890
1890
|
|
1891
1891
|
> FINDERS = {
|
1892
1892
|
|
@@ -1894,7 +1894,7 @@ rubocop:disable Style/MutableConstant
|
|
1894
1894
|
|
1895
1895
|
--
|
1896
1896
|
|
1897
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1897
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L4) ios
|
1898
1898
|
|
1899
1899
|
> def filter
|
1900
1900
|
|
@@ -1902,7 +1902,7 @@ Returns the value of attribute filter
|
|
1902
1902
|
|
1903
1903
|
--
|
1904
1904
|
|
1905
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1905
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L4) ios
|
1906
1906
|
|
1907
1907
|
> def filter=(value)
|
1908
1908
|
|
@@ -1914,7 +1914,7 @@ __Parameters:__
|
|
1914
1914
|
|
1915
1915
|
--
|
1916
1916
|
|
1917
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1917
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L6) ios
|
1918
1918
|
|
1919
1919
|
> def start_element(type, attrs = [])
|
1920
1920
|
|
@@ -1922,7 +1922,7 @@ __Parameters:__
|
|
1922
1922
|
|
1923
1923
|
--
|
1924
1924
|
|
1925
|
-
##### [_print_attr](https://github.com/appium/ruby_lib/blob/
|
1925
|
+
##### [_print_attr](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L15) ios
|
1926
1926
|
|
1927
1927
|
> def _print_attr(type, name, label, value, hint)
|
1928
1928
|
|
@@ -1930,7 +1930,7 @@ __Parameters:__
|
|
1930
1930
|
|
1931
1931
|
--
|
1932
1932
|
|
1933
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1933
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L41) ios
|
1934
1934
|
|
1935
1935
|
> def ios_password(length = 1)
|
1936
1936
|
|
@@ -1948,7 +1948,7 @@ __Returns:__
|
|
1948
1948
|
|
1949
1949
|
--
|
1950
1950
|
|
1951
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1951
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L53) ios
|
1952
1952
|
|
1953
1953
|
> def get_page(element = source_window(0), class_name = nil)
|
1954
1954
|
|
@@ -1969,7 +1969,7 @@ __Returns:__
|
|
1969
1969
|
|
1970
1970
|
--
|
1971
1971
|
|
1972
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1972
|
+
##### [page](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L139) ios
|
1973
1973
|
|
1974
1974
|
> def page(opts = {})
|
1975
1975
|
|
@@ -1995,7 +1995,7 @@ __Returns:__
|
|
1995
1995
|
|
1996
1996
|
--
|
1997
1997
|
|
1998
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1998
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L170) ios
|
1999
1999
|
|
2000
2000
|
> def source_window(_window_number = 0)
|
2001
2001
|
|
@@ -2011,7 +2011,7 @@ __Returns:__
|
|
2011
2011
|
|
2012
2012
|
--
|
2013
2013
|
|
2014
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
2014
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L185) ios
|
2015
2015
|
|
2016
2016
|
> def page_window(window_number = 0)
|
2017
2017
|
|
@@ -2029,7 +2029,7 @@ __Returns:__
|
|
2029
2029
|
|
2030
2030
|
--
|
2031
2031
|
|
2032
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
2032
|
+
##### [id](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L193) ios
|
2033
2033
|
|
2034
2034
|
> def id(id)
|
2035
2035
|
|
@@ -2045,7 +2045,7 @@ __Returns:__
|
|
2045
2045
|
|
2046
2046
|
--
|
2047
2047
|
|
2048
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
2048
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L199) ios
|
2049
2049
|
|
2050
2050
|
> def ios_version
|
2051
2051
|
|
@@ -2057,7 +2057,7 @@ __Returns:__
|
|
2057
2057
|
|
2058
2058
|
--
|
2059
2059
|
|
2060
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
2060
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L212) ios
|
2061
2061
|
|
2062
2062
|
> def ele_index(class_name, index)
|
2063
2063
|
|
@@ -2075,7 +2075,7 @@ __Returns:__
|
|
2075
2075
|
|
2076
2076
|
--
|
2077
2077
|
|
2078
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
2078
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L248) ios
|
2079
2079
|
|
2080
2080
|
> def find_ele_by_attr(class_name, attr, value)
|
2081
2081
|
|
@@ -2097,7 +2097,7 @@ __Returns:__
|
|
2097
2097
|
|
2098
2098
|
--
|
2099
2099
|
|
2100
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
2100
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L259) ios
|
2101
2101
|
|
2102
2102
|
> def find_eles_by_attr(class_name, attr, value)
|
2103
2103
|
|
@@ -2119,7 +2119,7 @@ __Returns:__
|
|
2119
2119
|
|
2120
2120
|
--
|
2121
2121
|
|
2122
|
-
##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/
|
2122
|
+
##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L280) ios
|
2123
2123
|
|
2124
2124
|
> def find_ele_by_predicate(class_name: '*', value:)
|
2125
2125
|
|
@@ -2136,7 +2136,7 @@ __Returns:__
|
|
2136
2136
|
|
2137
2137
|
--
|
2138
2138
|
|
2139
|
-
##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/
|
2139
|
+
##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L291) ios
|
2140
2140
|
|
2141
2141
|
> def find_eles_by_predicate(class_name: '*', value:)
|
2142
2142
|
|
@@ -2155,7 +2155,7 @@ __Returns:__
|
|
2155
2155
|
|
2156
2156
|
--
|
2157
2157
|
|
2158
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
2158
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L307) ios
|
2159
2159
|
|
2160
2160
|
> def find_ele_by_attr_include(class_name, attr, value)
|
2161
2161
|
|
@@ -2176,7 +2176,7 @@ __Returns:__
|
|
2176
2176
|
|
2177
2177
|
--
|
2178
2178
|
|
2179
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
2179
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L317) ios
|
2180
2180
|
|
2181
2181
|
> def find_eles_by_attr_include(class_name, attr, value)
|
2182
2182
|
|
@@ -2197,7 +2197,7 @@ __Returns:__
|
|
2197
2197
|
|
2198
2198
|
--
|
2199
2199
|
|
2200
|
-
##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/
|
2200
|
+
##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L325) ios
|
2201
2201
|
|
2202
2202
|
> def find_ele_by_predicate_include(class_name: '*', value:)
|
2203
2203
|
|
@@ -2214,7 +2214,7 @@ __Returns:__
|
|
2214
2214
|
|
2215
2215
|
--
|
2216
2216
|
|
2217
|
-
##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/
|
2217
|
+
##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L336) ios
|
2218
2218
|
|
2219
2219
|
> def find_eles_by_predicate_include(class_name: '*', value:)
|
2220
2220
|
|
@@ -2233,7 +2233,7 @@ __Returns:__
|
|
2233
2233
|
|
2234
2234
|
--
|
2235
2235
|
|
2236
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
2236
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L349) ios
|
2237
2237
|
|
2238
2238
|
> def first_ele(class_name)
|
2239
2239
|
|
@@ -2249,7 +2249,7 @@ __Returns:__
|
|
2249
2249
|
|
2250
2250
|
--
|
2251
2251
|
|
2252
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2252
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L356) ios
|
2253
2253
|
|
2254
2254
|
> def last_ele(class_name)
|
2255
2255
|
|
@@ -2265,7 +2265,7 @@ __Returns:__
|
|
2265
2265
|
|
2266
2266
|
--
|
2267
2267
|
|
2268
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2268
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L370) ios
|
2269
2269
|
|
2270
2270
|
> def tag(class_name)
|
2271
2271
|
|
@@ -2281,7 +2281,7 @@ __Returns:__
|
|
2281
2281
|
|
2282
2282
|
--
|
2283
2283
|
|
2284
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2284
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L382) ios
|
2285
2285
|
|
2286
2286
|
> def tags(class_name)
|
2287
2287
|
|
@@ -2297,7 +2297,7 @@ __Returns:__
|
|
2297
2297
|
|
2298
2298
|
--
|
2299
2299
|
|
2300
|
-
##### [tags_include](https://github.com/appium/ruby_lib/blob/
|
2300
|
+
##### [tags_include](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L398) ios
|
2301
2301
|
|
2302
2302
|
> def tags_include(class_names:, value: nil)
|
2303
2303
|
|
@@ -2317,7 +2317,7 @@ __Returns:__
|
|
2317
2317
|
|
2318
2318
|
--
|
2319
2319
|
|
2320
|
-
##### [tags_exact](https://github.com/appium/ruby_lib/blob/
|
2320
|
+
##### [tags_exact](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L427) ios
|
2321
2321
|
|
2322
2322
|
> def tags_exact(class_names:, value: nil)
|
2323
2323
|
|
@@ -2337,7 +2337,7 @@ __Returns:__
|
|
2337
2337
|
|
2338
2338
|
--
|
2339
2339
|
|
2340
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2340
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L478) ios
|
2341
2341
|
|
2342
2342
|
> def ele_by_json_visible_contains(element, value)
|
2343
2343
|
|
@@ -2356,7 +2356,7 @@ __Returns:__
|
|
2356
2356
|
|
2357
2357
|
--
|
2358
2358
|
|
2359
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2359
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L487) ios
|
2360
2360
|
|
2361
2361
|
> def eles_by_json_visible_contains(element, value)
|
2362
2362
|
|
@@ -2375,7 +2375,7 @@ __Returns:__
|
|
2375
2375
|
|
2376
2376
|
--
|
2377
2377
|
|
2378
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2378
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L517) ios
|
2379
2379
|
|
2380
2380
|
> def ele_by_json_visible_exact(element, value)
|
2381
2381
|
|
@@ -2394,7 +2394,7 @@ __Returns:__
|
|
2394
2394
|
|
2395
2395
|
--
|
2396
2396
|
|
2397
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2397
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L526) ios
|
2398
2398
|
|
2399
2399
|
> def eles_by_json_visible_exact(element, value)
|
2400
2400
|
|
@@ -2413,7 +2413,7 @@ __Returns:__
|
|
2413
2413
|
|
2414
2414
|
--
|
2415
2415
|
|
2416
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
2416
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L591) ios
|
2417
2417
|
|
2418
2418
|
> def _all_pred(opts)
|
2419
2419
|
|
@@ -2423,7 +2423,7 @@ visible - if true, only visible elements are returned. default true
|
|
2423
2423
|
|
2424
2424
|
--
|
2425
2425
|
|
2426
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
2426
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L604) ios
|
2427
2427
|
|
2428
2428
|
> def ele_with_pred(opts)
|
2429
2429
|
|
@@ -2439,7 +2439,7 @@ __Returns:__
|
|
2439
2439
|
|
2440
2440
|
--
|
2441
2441
|
|
2442
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
2442
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L615) ios
|
2443
2443
|
|
2444
2444
|
> def eles_with_pred(opts)
|
2445
2445
|
|
@@ -2455,7 +2455,7 @@ __Returns:__
|
|
2455
2455
|
|
2456
2456
|
--
|
2457
2457
|
|
2458
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
2458
|
+
##### [source](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L621) ios
|
2459
2459
|
|
2460
2460
|
> def source
|
2461
2461
|
|
@@ -2467,7 +2467,7 @@ __Returns:__
|
|
2467
2467
|
|
2468
2468
|
--
|
2469
2469
|
|
2470
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
2470
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L625) ios
|
2471
2471
|
|
2472
2472
|
> def _validate_object(*objects)
|
2473
2473
|
|
@@ -2475,7 +2475,7 @@ __Returns:__
|
|
2475
2475
|
|
2476
2476
|
--
|
2477
2477
|
|
2478
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
2478
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L674) ios
|
2479
2479
|
|
2480
2480
|
> def _by_json(opts)
|
2481
2481
|
|
@@ -2510,7 +2510,7 @@ opts = {
|
|
2510
2510
|
|
2511
2511
|
--
|
2512
2512
|
|
2513
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
2513
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L724) ios
|
2514
2514
|
|
2515
2515
|
> def eles_by_json(opts)
|
2516
2516
|
|
@@ -2529,7 +2529,7 @@ eles_by_json({
|
|
2529
2529
|
|
2530
2530
|
--
|
2531
2531
|
|
2532
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
2532
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L730) ios
|
2533
2533
|
|
2534
2534
|
> def ele_by_json(opts)
|
2535
2535
|
|
@@ -2537,7 +2537,7 @@ see eles_by_json
|
|
2537
2537
|
|
2538
2538
|
--
|
2539
2539
|
|
2540
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2540
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/helper.rb#L740) ios
|
2541
2541
|
|
2542
2542
|
> def get_source
|
2543
2543
|
|
@@ -2550,7 +2550,7 @@ __Returns:__
|
|
2550
2550
|
|
2551
2551
|
--
|
2552
2552
|
|
2553
|
-
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/
|
2553
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/text.rb#L4) ios
|
2554
2554
|
|
2555
2555
|
> UIAStaticText = 'UIAStaticText'.freeze
|
2556
2556
|
|
@@ -2558,7 +2558,7 @@ __Returns:__
|
|
2558
2558
|
|
2559
2559
|
--
|
2560
2560
|
|
2561
|
-
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/
|
2561
|
+
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/text.rb#L5) ios
|
2562
2562
|
|
2563
2563
|
> XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze
|
2564
2564
|
|
@@ -2566,7 +2566,7 @@ __Returns:__
|
|
2566
2566
|
|
2567
2567
|
--
|
2568
2568
|
|
2569
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
2569
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/text.rb#L8) ios
|
2570
2570
|
|
2571
2571
|
> def static_text_class
|
2572
2572
|
|
@@ -2578,7 +2578,7 @@ __Returns:__
|
|
2578
2578
|
|
2579
2579
|
--
|
2580
2580
|
|
2581
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2581
|
+
##### [text](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/text.rb#L16) ios
|
2582
2582
|
|
2583
2583
|
> def text(value)
|
2584
2584
|
|
@@ -2595,7 +2595,7 @@ __Returns:__
|
|
2595
2595
|
|
2596
2596
|
--
|
2597
2597
|
|
2598
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2598
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/text.rb#L30) ios
|
2599
2599
|
|
2600
2600
|
> def texts(value = false)
|
2601
2601
|
|
@@ -2612,7 +2612,7 @@ __Returns:__
|
|
2612
2612
|
|
2613
2613
|
--
|
2614
2614
|
|
2615
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2615
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/text.rb#L43) ios
|
2616
2616
|
|
2617
2617
|
> def first_text
|
2618
2618
|
|
@@ -2624,7 +2624,7 @@ __Returns:__
|
|
2624
2624
|
|
2625
2625
|
--
|
2626
2626
|
|
2627
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2627
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/text.rb#L49) ios
|
2628
2628
|
|
2629
2629
|
> def last_text
|
2630
2630
|
|
@@ -2636,7 +2636,7 @@ __Returns:__
|
|
2636
2636
|
|
2637
2637
|
--
|
2638
2638
|
|
2639
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2639
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/text.rb#L56) ios
|
2640
2640
|
|
2641
2641
|
> def text_exact(value)
|
2642
2642
|
|
@@ -2652,7 +2652,7 @@ __Returns:__
|
|
2652
2652
|
|
2653
2653
|
--
|
2654
2654
|
|
2655
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2655
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/text.rb#L67) ios
|
2656
2656
|
|
2657
2657
|
> def texts_exact(value)
|
2658
2658
|
|
@@ -2668,7 +2668,7 @@ __Returns:__
|
|
2668
2668
|
|
2669
2669
|
--
|
2670
2670
|
|
2671
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2671
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/alert.rb#L5) ios
|
2672
2672
|
|
2673
2673
|
> def alert_accept
|
2674
2674
|
|
@@ -2680,7 +2680,7 @@ __Returns:__
|
|
2680
2680
|
|
2681
2681
|
--
|
2682
2682
|
|
2683
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2683
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/alert.rb#L13) ios
|
2684
2684
|
|
2685
2685
|
> def alert_dismiss
|
2686
2686
|
|
@@ -2692,7 +2692,7 @@ __Returns:__
|
|
2692
2692
|
|
2693
2693
|
--
|
2694
2694
|
|
2695
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
2695
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/button.rb#L4) ios
|
2696
2696
|
|
2697
2697
|
> UIAButton = 'UIAButton'.freeze
|
2698
2698
|
|
@@ -2700,7 +2700,7 @@ __Returns:__
|
|
2700
2700
|
|
2701
2701
|
--
|
2702
2702
|
|
2703
|
-
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/
|
2703
|
+
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/button.rb#L5) ios
|
2704
2704
|
|
2705
2705
|
> XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze
|
2706
2706
|
|
@@ -2708,7 +2708,7 @@ __Returns:__
|
|
2708
2708
|
|
2709
2709
|
--
|
2710
2710
|
|
2711
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
2711
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/button.rb#L8) ios
|
2712
2712
|
|
2713
2713
|
> def button_class
|
2714
2714
|
|
@@ -2720,7 +2720,7 @@ __Returns:__
|
|
2720
2720
|
|
2721
2721
|
--
|
2722
2722
|
|
2723
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2723
|
+
##### [button](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/button.rb#L16) ios
|
2724
2724
|
|
2725
2725
|
> def button(value)
|
2726
2726
|
|
@@ -2737,7 +2737,7 @@ __Returns:__
|
|
2737
2737
|
|
2738
2738
|
--
|
2739
2739
|
|
2740
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2740
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/button.rb#L31) ios
|
2741
2741
|
|
2742
2742
|
> def buttons(value = false)
|
2743
2743
|
|
@@ -2754,7 +2754,7 @@ __Returns:__
|
|
2754
2754
|
|
2755
2755
|
--
|
2756
2756
|
|
2757
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2757
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/button.rb#L44) ios
|
2758
2758
|
|
2759
2759
|
> def first_button
|
2760
2760
|
|
@@ -2766,7 +2766,7 @@ __Returns:__
|
|
2766
2766
|
|
2767
2767
|
--
|
2768
2768
|
|
2769
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2769
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/button.rb#L52) ios
|
2770
2770
|
|
2771
2771
|
> def last_button
|
2772
2772
|
|
@@ -2780,7 +2780,7 @@ __Returns:__
|
|
2780
2780
|
|
2781
2781
|
--
|
2782
2782
|
|
2783
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2783
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/button.rb#L59) ios
|
2784
2784
|
|
2785
2785
|
> def button_exact(value)
|
2786
2786
|
|
@@ -2796,7 +2796,7 @@ __Returns:__
|
|
2796
2796
|
|
2797
2797
|
--
|
2798
2798
|
|
2799
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2799
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/button.rb#L70) ios
|
2800
2800
|
|
2801
2801
|
> def buttons_exact(value)
|
2802
2802
|
|
@@ -2812,7 +2812,7 @@ __Returns:__
|
|
2812
2812
|
|
2813
2813
|
--
|
2814
2814
|
|
2815
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
2815
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/mobile_methods.rb#L32) ios
|
2816
2816
|
|
2817
2817
|
> def uiautomation_find
|
2818
2818
|
|
@@ -2824,7 +2824,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2824
2824
|
|
2825
2825
|
--
|
2826
2826
|
|
2827
|
-
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/
|
2827
|
+
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/mobile_methods.rb#L32) ios
|
2828
2828
|
|
2829
2829
|
> def ios_predicate_string_find
|
2830
2830
|
|
@@ -2838,7 +2838,7 @@ find_element/s can be used with a [Predicates](https://developer.apple.com/libra
|
|
2838
2838
|
|
2839
2839
|
--
|
2840
2840
|
|
2841
|
-
##### [ios_class_chain_find](https://github.com/appium/ruby_lib/blob/
|
2841
|
+
##### [ios_class_chain_find](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/mobile_methods.rb#L32) ios
|
2842
2842
|
|
2843
2843
|
> def ios_class_chain_find
|
2844
2844
|
|
@@ -2856,7 +2856,7 @@ find_element/s can be used with a [class chain]( https://github.com/facebook/Web
|
|
2856
2856
|
|
2857
2857
|
--
|
2858
2858
|
|
2859
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2859
|
+
##### [find](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/generic.rb#L6) ios
|
2860
2860
|
|
2861
2861
|
> def find(value)
|
2862
2862
|
|
@@ -2872,7 +2872,7 @@ __Returns:__
|
|
2872
2872
|
|
2873
2873
|
--
|
2874
2874
|
|
2875
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2875
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/generic.rb#L17) ios
|
2876
2876
|
|
2877
2877
|
> def finds(value)
|
2878
2878
|
|
@@ -2888,7 +2888,7 @@ __Returns:__
|
|
2888
2888
|
|
2889
2889
|
--
|
2890
2890
|
|
2891
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2891
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/generic.rb#L29) ios
|
2892
2892
|
|
2893
2893
|
> def find_exact(value)
|
2894
2894
|
|
@@ -2904,7 +2904,7 @@ __Returns:__
|
|
2904
2904
|
|
2905
2905
|
--
|
2906
2906
|
|
2907
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2907
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/generic.rb#L40) ios
|
2908
2908
|
|
2909
2909
|
> def finds_exact(value)
|
2910
2910
|
|
@@ -2920,7 +2920,7 @@ __Returns:__
|
|
2920
2920
|
|
2921
2921
|
--
|
2922
2922
|
|
2923
|
-
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/
|
2923
|
+
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/generic.rb#L51) ios
|
2924
2924
|
|
2925
2925
|
> def raise_error_if_no_element(element)
|
2926
2926
|
|
@@ -2928,7 +2928,7 @@ __Returns:__
|
|
2928
2928
|
|
2929
2929
|
--
|
2930
2930
|
|
2931
|
-
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/
|
2931
|
+
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/generic.rb#L58) ios
|
2932
2932
|
|
2933
2933
|
> def select_visible_elements(elements)
|
2934
2934
|
|
@@ -2936,7 +2936,7 @@ Return visible elements.
|
|
2936
2936
|
|
2937
2937
|
--
|
2938
2938
|
|
2939
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2939
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2940
2940
|
|
2941
2941
|
> UIATextField = 'UIATextField'.freeze
|
2942
2942
|
|
@@ -2944,7 +2944,7 @@ Return visible elements.
|
|
2944
2944
|
|
2945
2945
|
--
|
2946
2946
|
|
2947
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2947
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2948
2948
|
|
2949
2949
|
> UIASecureTextField = 'UIASecureTextField'.freeze
|
2950
2950
|
|
@@ -2952,7 +2952,7 @@ Return visible elements.
|
|
2952
2952
|
|
2953
2953
|
--
|
2954
2954
|
|
2955
|
-
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/
|
2955
|
+
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L6) ios
|
2956
2956
|
|
2957
2957
|
> XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze
|
2958
2958
|
|
@@ -2960,7 +2960,7 @@ Return visible elements.
|
|
2960
2960
|
|
2961
2961
|
--
|
2962
2962
|
|
2963
|
-
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/
|
2963
|
+
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L7) ios
|
2964
2964
|
|
2965
2965
|
> XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze
|
2966
2966
|
|
@@ -2968,7 +2968,7 @@ Return visible elements.
|
|
2968
2968
|
|
2969
2969
|
--
|
2970
2970
|
|
2971
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
2971
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
2972
2972
|
|
2973
2973
|
> def text_field_class
|
2974
2974
|
|
@@ -2980,7 +2980,7 @@ __Returns:__
|
|
2980
2980
|
|
2981
2981
|
--
|
2982
2982
|
|
2983
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
2983
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L15) ios
|
2984
2984
|
|
2985
2985
|
> def secure_text_field_class
|
2986
2986
|
|
@@ -2992,7 +2992,7 @@ __Returns:__
|
|
2992
2992
|
|
2993
2993
|
--
|
2994
2994
|
|
2995
|
-
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/
|
2995
|
+
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L35) ios
|
2996
2996
|
|
2997
2997
|
> def _textfield_visible
|
2998
2998
|
|
@@ -3000,7 +3000,7 @@ Appium
|
|
3000
3000
|
|
3001
3001
|
--
|
3002
3002
|
|
3003
|
-
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/
|
3003
|
+
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L40) ios
|
3004
3004
|
|
3005
3005
|
> def _textfield_exact_string(value)
|
3006
3006
|
|
@@ -3008,7 +3008,7 @@ Appium
|
|
3008
3008
|
|
3009
3009
|
--
|
3010
3010
|
|
3011
|
-
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/
|
3011
|
+
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L47) ios
|
3012
3012
|
|
3013
3013
|
> def _textfield_contains_string(value)
|
3014
3014
|
|
@@ -3016,7 +3016,7 @@ Appium
|
|
3016
3016
|
|
3017
3017
|
--
|
3018
3018
|
|
3019
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
3019
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L60) ios
|
3020
3020
|
|
3021
3021
|
> def textfield(value)
|
3022
3022
|
|
@@ -3034,7 +3034,7 @@ __Returns:__
|
|
3034
3034
|
|
3035
3035
|
--
|
3036
3036
|
|
3037
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
3037
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L86) ios
|
3038
3038
|
|
3039
3039
|
> def textfields(value = false)
|
3040
3040
|
|
@@ -3051,7 +3051,7 @@ __Returns:__
|
|
3051
3051
|
|
3052
3052
|
--
|
3053
3053
|
|
3054
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
3054
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L100) ios
|
3055
3055
|
|
3056
3056
|
> def first_textfield
|
3057
3057
|
|
@@ -3063,7 +3063,7 @@ __Returns:__
|
|
3063
3063
|
|
3064
3064
|
--
|
3065
3065
|
|
3066
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
3066
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L110) ios
|
3067
3067
|
|
3068
3068
|
> def last_textfield
|
3069
3069
|
|
@@ -3075,7 +3075,7 @@ __Returns:__
|
|
3075
3075
|
|
3076
3076
|
--
|
3077
3077
|
|
3078
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
3078
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L123) ios
|
3079
3079
|
|
3080
3080
|
> def textfield_exact(value)
|
3081
3081
|
|
@@ -3091,7 +3091,7 @@ __Returns:__
|
|
3091
3091
|
|
3092
3092
|
--
|
3093
3093
|
|
3094
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
3094
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/element/textfield.rb#L134) ios
|
3095
3095
|
|
3096
3096
|
> def textfields_exact(value)
|
3097
3097
|
|
@@ -3107,7 +3107,141 @@ __Returns:__
|
|
3107
3107
|
|
3108
3108
|
--
|
3109
3109
|
|
3110
|
-
##### [
|
3110
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/xcuitest_gestures.rb#L10) ios
|
3111
|
+
|
3112
|
+
> def swipe(direction:, element: nil)
|
3113
|
+
|
3114
|
+
|
3115
|
+
|
3116
|
+
__Parameters:__
|
3117
|
+
|
3118
|
+
[string] direction - Either 'up', 'down', 'left' or 'right'.
|
3119
|
+
|
3120
|
+
[Hash] opts - a customizable set of options
|
3121
|
+
|
3122
|
+
--
|
3123
|
+
|
3124
|
+
##### [scroll](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/xcuitest_gestures.rb#L30) ios
|
3125
|
+
|
3126
|
+
> def scroll(direction:, name: nil, element: nil, to_visible: nil, predicate_string: nil)
|
3127
|
+
|
3128
|
+
|
3129
|
+
|
3130
|
+
__Parameters:__
|
3131
|
+
|
3132
|
+
[string] direction - Either 'up', 'down', 'left' or 'right'.
|
3133
|
+
|
3134
|
+
[Hash] opts - a customizable set of options
|
3135
|
+
|
3136
|
+
--
|
3137
|
+
|
3138
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/xcuitest_gestures.rb#L49) ios
|
3139
|
+
|
3140
|
+
> def pinch(scale:, velocity: 1.0, element: nil)
|
3141
|
+
|
3142
|
+
|
3143
|
+
|
3144
|
+
__Parameters:__
|
3145
|
+
|
3146
|
+
[scale] scale - X tap coordinate of type float. Mandatory parameter
|
3147
|
+
|
3148
|
+
[float] velocity - Y tap coordinate of type float. Mandatory parameter
|
3149
|
+
|
3150
|
+
[Hash] opts - a customizable set of options
|
3151
|
+
|
3152
|
+
--
|
3153
|
+
|
3154
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/xcuitest_gestures.rb#L66) ios
|
3155
|
+
|
3156
|
+
> def double_tap(x: nil, y: nil, element: nil)
|
3157
|
+
|
3158
|
+
|
3159
|
+
|
3160
|
+
__Parameters:__
|
3161
|
+
|
3162
|
+
[float] x - X Screen x tap coordinate of type float. Mandatory parameter only if element is not set
|
3163
|
+
|
3164
|
+
[float] y - Y Screen y tap coordinate of type float. Mandatory parameter only if element is not set
|
3165
|
+
|
3166
|
+
[Hash] opts - a customizable set of options
|
3167
|
+
|
3168
|
+
--
|
3169
|
+
|
3170
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/xcuitest_gestures.rb#L79) ios
|
3171
|
+
|
3172
|
+
> def two_finger_tap(element:)
|
3173
|
+
|
3174
|
+
|
3175
|
+
|
3176
|
+
__Parameters:__
|
3177
|
+
|
3178
|
+
[Element] :element - Element to long tap on.
|
3179
|
+
|
3180
|
+
```ruby
|
3181
|
+
two_finger_tap element: find_element(:accessibility_id, "some item")
|
3182
|
+
```
|
3183
|
+
|
3184
|
+
--
|
3185
|
+
|
3186
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/xcuitest_gestures.rb#L96) ios
|
3187
|
+
|
3188
|
+
> def tap(x:, y:, element: nil)
|
3189
|
+
|
3190
|
+
|
3191
|
+
|
3192
|
+
__Parameters:__
|
3193
|
+
|
3194
|
+
[float] x - X tap coordinate of type float. Mandatory parameter
|
3195
|
+
|
3196
|
+
[float] y - Y tap coordinate of type float. Mandatory parameter
|
3197
|
+
|
3198
|
+
[Hash] opts - a customizable set of options
|
3199
|
+
|
3200
|
+
--
|
3201
|
+
|
3202
|
+
##### [drag_from_to_for_duration](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/xcuitest_gestures.rb#L118) ios
|
3203
|
+
|
3204
|
+
> def drag_from_to_for_duration(from_x:, from_y:, to_x:, to_y:, duration: 1.0, element: nil)
|
3205
|
+
|
3206
|
+
rubocop:disable Metrics/ParameterLists
|
3207
|
+
|
3208
|
+
__Parameters:__
|
3209
|
+
|
3210
|
+
[float] duration - Float number of seconds in range [0.5, 60]. How long the tap gesture at starting
|
3211
|
+
drag point should be before to start dragging. Mandatory parameter
|
3212
|
+
|
3213
|
+
[float] from_x - The x coordinate of starting drag point (type float). Mandatory parameter
|
3214
|
+
|
3215
|
+
[float] from_y - The y coordinate of starting drag point (type float). Mandatory parameter
|
3216
|
+
|
3217
|
+
[float] to_x - The x coordinate of ending drag point (type float). Mandatory parameter
|
3218
|
+
|
3219
|
+
[float] to_y - The y coordinate of ending drag point (type float). Mandatory parameter
|
3220
|
+
|
3221
|
+
[Hash] opts - a customizable set of options
|
3222
|
+
|
3223
|
+
--
|
3224
|
+
|
3225
|
+
##### [select_picker_wheel](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/ios/xcuitest_gestures.rb#L135) ios
|
3226
|
+
|
3227
|
+
> def select_picker_wheel(element:, order:)
|
3228
|
+
|
3229
|
+
https://github.com/facebook/WebDriverAgent/pull/523
|
3230
|
+
https://github.com/appium/appium-xcuitest-driver/pull/420
|
3231
|
+
|
3232
|
+
__Parameters:__
|
3233
|
+
|
3234
|
+
[String] order - The order to move picker to. "next" or "previous".
|
3235
|
+
|
3236
|
+
[Element] element - Element id to perform select picker wheel on.
|
3237
|
+
|
3238
|
+
```ruby
|
3239
|
+
select_picker_wheel order: "next", element: find_element(:accessibility_id, "some picker")
|
3240
|
+
```
|
3241
|
+
|
3242
|
+
--
|
3243
|
+
|
3244
|
+
##### [value](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/patch.rb#L12)
|
3111
3245
|
|
3112
3246
|
> def value
|
3113
3247
|
|
@@ -3117,7 +3251,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
3117
3251
|
|
3118
3252
|
--
|
3119
3253
|
|
3120
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
3254
|
+
##### [name](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/patch.rb#L19)
|
3121
3255
|
|
3122
3256
|
> def name
|
3123
3257
|
|
@@ -3127,7 +3261,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
3127
3261
|
|
3128
3262
|
--
|
3129
3263
|
|
3130
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
3264
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/patch.rb#L31)
|
3131
3265
|
|
3132
3266
|
> def location_rel
|
3133
3267
|
|
@@ -3145,7 +3279,7 @@ __Returns:__
|
|
3145
3279
|
|
3146
3280
|
--
|
3147
3281
|
|
3148
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
3282
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/patch.rb#L152)
|
3149
3283
|
|
3150
3284
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
3151
3285
|
|
@@ -3153,7 +3287,7 @@ __Returns:__
|
|
3153
3287
|
|
3154
3288
|
--
|
3155
3289
|
|
3156
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
3290
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/125bb67e570b396d675cb24d7c51f43a24a58897/lib/appium_lib/common/patch.rb#L155)
|
3157
3291
|
|
3158
3292
|
> def patch_remote_driver_commands
|
3159
3293
|
|