appium_lib 9.4.7 → 9.4.8
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 +13 -0
- data/docs/android_docs.md +264 -229
- data/docs/ios_docs.md +294 -264
- data/lib/appium_lib/android/client_xpath.rb +4 -0
- data/lib/appium_lib/common/command.rb +1 -0
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/common/wait.rb +53 -40
- data/lib/appium_lib/device/device.rb +24 -4
- data/lib/appium_lib/ios/helper.rb +19 -27
- data/release_notes.md +7 -0
- metadata +2 -2
data/docs/ios_docs.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
##### [load_settings](https://github.com/appium/ruby_lib/blob/
|
|
1
|
+
##### [load_settings](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/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/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/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
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
|
180
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L281)
|
|
181
181
|
|
|
182
182
|
> def custom_url
|
|
183
183
|
|
|
@@ -185,7 +185,7 @@ Custom URL for the selenium server
|
|
|
185
185
|
|
|
186
186
|
--
|
|
187
187
|
|
|
188
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
|
188
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L283)
|
|
189
189
|
|
|
190
190
|
> def export_session
|
|
191
191
|
|
|
@@ -193,7 +193,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
|
193
193
|
|
|
194
194
|
--
|
|
195
195
|
|
|
196
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
|
196
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L288)
|
|
197
197
|
|
|
198
198
|
> def default_wait
|
|
199
199
|
|
|
@@ -207,7 +207,7 @@ __Returns:__
|
|
|
207
207
|
|
|
208
208
|
--
|
|
209
209
|
|
|
210
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
|
210
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L290)
|
|
211
211
|
|
|
212
212
|
> def sauce_username
|
|
213
213
|
|
|
@@ -215,7 +215,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
|
215
215
|
|
|
216
216
|
--
|
|
217
217
|
|
|
218
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
|
218
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L292)
|
|
219
219
|
|
|
220
220
|
> def sauce_access_key
|
|
221
221
|
|
|
@@ -223,7 +223,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
|
223
223
|
|
|
224
224
|
--
|
|
225
225
|
|
|
226
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
|
226
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L294)
|
|
227
227
|
|
|
228
228
|
> def sauce_endpoint
|
|
229
229
|
|
|
@@ -231,7 +231,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
|
231
231
|
|
|
232
232
|
--
|
|
233
233
|
|
|
234
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
|
234
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L296)
|
|
235
235
|
|
|
236
236
|
> def appium_port
|
|
237
237
|
|
|
@@ -239,7 +239,7 @@ Appium's server port
|
|
|
239
239
|
|
|
240
240
|
--
|
|
241
241
|
|
|
242
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
|
242
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L298)
|
|
243
243
|
|
|
244
244
|
> def appium_device
|
|
245
245
|
|
|
@@ -247,7 +247,7 @@ Device type to request from the appium server
|
|
|
247
247
|
|
|
248
248
|
--
|
|
249
249
|
|
|
250
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
|
250
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L301)
|
|
251
251
|
|
|
252
252
|
> def automation_name
|
|
253
253
|
|
|
@@ -256,7 +256,7 @@ If automation_name is nil, it is not set both client side and server side.
|
|
|
256
256
|
|
|
257
257
|
--
|
|
258
258
|
|
|
259
|
-
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/
|
|
259
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L303)
|
|
260
260
|
|
|
261
261
|
> def appium_server_status
|
|
262
262
|
|
|
@@ -264,7 +264,7 @@ Appium's server version
|
|
|
264
264
|
|
|
265
265
|
--
|
|
266
266
|
|
|
267
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
|
267
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L305)
|
|
268
268
|
|
|
269
269
|
> def appium_debug
|
|
270
270
|
|
|
@@ -272,7 +272,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
|
272
272
|
|
|
273
273
|
--
|
|
274
274
|
|
|
275
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
|
275
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L307)
|
|
276
276
|
|
|
277
277
|
> def listener
|
|
278
278
|
|
|
@@ -280,7 +280,7 @@ instance of AbstractEventListener for logging support
|
|
|
280
280
|
|
|
281
281
|
--
|
|
282
282
|
|
|
283
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
|
283
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L310)
|
|
284
284
|
|
|
285
285
|
> def driver
|
|
286
286
|
|
|
@@ -292,7 +292,7 @@ __Returns:__
|
|
|
292
292
|
|
|
293
293
|
--
|
|
294
294
|
|
|
295
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
|
295
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L313)
|
|
296
296
|
|
|
297
297
|
> def http_client
|
|
298
298
|
|
|
@@ -304,7 +304,7 @@ __Returns:__
|
|
|
304
304
|
|
|
305
305
|
--
|
|
306
306
|
|
|
307
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
|
307
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L318)
|
|
308
308
|
|
|
309
309
|
> def appium_wait_timeout
|
|
310
310
|
|
|
@@ -318,7 +318,7 @@ __Returns:__
|
|
|
318
318
|
|
|
319
319
|
--
|
|
320
320
|
|
|
321
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
|
321
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L323)
|
|
322
322
|
|
|
323
323
|
> def appium_wait_interval
|
|
324
324
|
|
|
@@ -332,7 +332,7 @@ __Returns:__
|
|
|
332
332
|
|
|
333
333
|
--
|
|
334
334
|
|
|
335
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
335
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L363)
|
|
336
336
|
|
|
337
337
|
> def initialize(opts = {})
|
|
338
338
|
|
|
@@ -348,7 +348,7 @@ __Returns:__
|
|
|
348
348
|
|
|
349
349
|
--
|
|
350
350
|
|
|
351
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
|
351
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L441)
|
|
352
352
|
|
|
353
353
|
> def driver_attributes
|
|
354
354
|
|
|
@@ -356,7 +356,7 @@ Returns a hash of the driver attributes
|
|
|
356
356
|
|
|
357
357
|
--
|
|
358
358
|
|
|
359
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
|
359
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L466)
|
|
360
360
|
|
|
361
361
|
> def device_is_android?
|
|
362
362
|
|
|
@@ -368,7 +368,7 @@ __Returns:__
|
|
|
368
368
|
|
|
369
369
|
--
|
|
370
370
|
|
|
371
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
|
371
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L472)
|
|
372
372
|
|
|
373
373
|
> def automation_name_is_xcuitest?
|
|
374
374
|
|
|
@@ -380,7 +380,7 @@ __Returns:__
|
|
|
380
380
|
|
|
381
381
|
--
|
|
382
382
|
|
|
383
|
-
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/
|
|
383
|
+
##### [automation_name_is_uiautomator2?](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L478)
|
|
384
384
|
|
|
385
385
|
> def automation_name_is_uiautomator2?
|
|
386
386
|
|
|
@@ -392,7 +392,7 @@ __Returns:__
|
|
|
392
392
|
|
|
393
393
|
--
|
|
394
394
|
|
|
395
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
395
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L485)
|
|
396
396
|
|
|
397
397
|
> def check_server_version_xcuitest
|
|
398
398
|
|
|
@@ -405,7 +405,7 @@ __Returns:__
|
|
|
405
405
|
|
|
406
406
|
--
|
|
407
407
|
|
|
408
|
-
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/
|
|
408
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L512)
|
|
409
409
|
|
|
410
410
|
> def appium_server_version
|
|
411
411
|
|
|
@@ -432,7 +432,7 @@ __Returns:__
|
|
|
432
432
|
|
|
433
433
|
--
|
|
434
434
|
|
|
435
|
-
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/
|
|
435
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L533)
|
|
436
436
|
|
|
437
437
|
> def appium_client_version
|
|
438
438
|
|
|
@@ -450,7 +450,7 @@ __Returns:__
|
|
|
450
450
|
|
|
451
451
|
--
|
|
452
452
|
|
|
453
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
|
453
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L545)
|
|
454
454
|
|
|
455
455
|
> def self.absolute_app_path(opts)
|
|
456
456
|
|
|
@@ -467,7 +467,7 @@ __Returns:__
|
|
|
467
467
|
|
|
468
468
|
--
|
|
469
469
|
|
|
470
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
|
470
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L578)
|
|
471
471
|
|
|
472
472
|
> def server_url
|
|
473
473
|
|
|
@@ -479,7 +479,7 @@ __Returns:__
|
|
|
479
479
|
|
|
480
480
|
--
|
|
481
481
|
|
|
482
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
|
482
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L589)
|
|
483
483
|
|
|
484
484
|
> def restart
|
|
485
485
|
|
|
@@ -491,7 +491,7 @@ __Returns:__
|
|
|
491
491
|
|
|
492
492
|
--
|
|
493
493
|
|
|
494
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
|
494
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L600)
|
|
495
495
|
|
|
496
496
|
> def screenshot(png_save_path)
|
|
497
497
|
|
|
@@ -509,7 +509,7 @@ __Returns:__
|
|
|
509
509
|
|
|
510
510
|
--
|
|
511
511
|
|
|
512
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
|
512
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L607)
|
|
513
513
|
|
|
514
514
|
> def driver_quit
|
|
515
515
|
|
|
@@ -521,7 +521,7 @@ __Returns:__
|
|
|
521
521
|
|
|
522
522
|
--
|
|
523
523
|
|
|
524
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
|
524
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L617)
|
|
525
525
|
|
|
526
526
|
> def start_driver
|
|
527
527
|
|
|
@@ -533,7 +533,7 @@ __Returns:__
|
|
|
533
533
|
|
|
534
534
|
--
|
|
535
535
|
|
|
536
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
|
536
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L655)
|
|
537
537
|
|
|
538
538
|
> def no_wait
|
|
539
539
|
|
|
@@ -541,7 +541,7 @@ Set implicit wait to zero.
|
|
|
541
541
|
|
|
542
542
|
--
|
|
543
543
|
|
|
544
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
|
544
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L669)
|
|
545
545
|
|
|
546
546
|
> def set_wait(timeout = nil)
|
|
547
547
|
|
|
@@ -563,7 +563,7 @@ __Returns:__
|
|
|
563
563
|
|
|
564
564
|
--
|
|
565
565
|
|
|
566
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
|
566
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L686)
|
|
567
567
|
|
|
568
568
|
> def exists(pre_check = 0, post_check = @default_wait)
|
|
569
569
|
|
|
@@ -587,7 +587,7 @@ __Returns:__
|
|
|
587
587
|
|
|
588
588
|
--
|
|
589
589
|
|
|
590
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
|
590
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L710)
|
|
591
591
|
|
|
592
592
|
> def execute_script(script, *args)
|
|
593
593
|
|
|
@@ -605,7 +605,7 @@ __Returns:__
|
|
|
605
605
|
|
|
606
606
|
--
|
|
607
607
|
|
|
608
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
|
608
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L732)
|
|
609
609
|
|
|
610
610
|
> def find_elements(*args)
|
|
611
611
|
|
|
@@ -631,7 +631,7 @@ __Returns:__
|
|
|
631
631
|
|
|
632
632
|
--
|
|
633
633
|
|
|
634
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
|
634
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L747)
|
|
635
635
|
|
|
636
636
|
> def find_element(*args)
|
|
637
637
|
|
|
@@ -652,7 +652,7 @@ __Returns:__
|
|
|
652
652
|
|
|
653
653
|
--
|
|
654
654
|
|
|
655
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
|
655
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L760)
|
|
656
656
|
|
|
657
657
|
> def set_location(opts = {})
|
|
658
658
|
|
|
@@ -668,7 +668,7 @@ __Returns:__
|
|
|
668
668
|
|
|
669
669
|
--
|
|
670
670
|
|
|
671
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
|
671
|
+
##### [x](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L770)
|
|
672
672
|
|
|
673
673
|
> def x
|
|
674
674
|
|
|
@@ -681,7 +681,7 @@ __Returns:__
|
|
|
681
681
|
|
|
682
682
|
--
|
|
683
683
|
|
|
684
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
|
684
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/driver.rb#L779)
|
|
685
685
|
|
|
686
686
|
> def set_automation_name_if_nil
|
|
687
687
|
|
|
@@ -690,7 +690,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
|
690
690
|
|
|
691
691
|
--
|
|
692
692
|
|
|
693
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
|
693
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/logger.rb#L13)
|
|
694
694
|
|
|
695
695
|
> def logger=(value)
|
|
696
696
|
|
|
@@ -702,7 +702,7 @@ __Parameters:__
|
|
|
702
702
|
|
|
703
703
|
--
|
|
704
704
|
|
|
705
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
|
705
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/logger.rb#L17)
|
|
706
706
|
|
|
707
707
|
> def logger
|
|
708
708
|
|
|
@@ -710,7 +710,7 @@ __Parameters:__
|
|
|
710
710
|
|
|
711
711
|
--
|
|
712
712
|
|
|
713
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
|
713
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L7)
|
|
714
714
|
|
|
715
715
|
> def app_strings
|
|
716
716
|
|
|
@@ -721,7 +721,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
|
721
721
|
|
|
722
722
|
--
|
|
723
723
|
|
|
724
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
|
724
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L13)
|
|
725
725
|
|
|
726
726
|
> def background_app
|
|
727
727
|
|
|
@@ -730,15 +730,37 @@ This is a blocking application
|
|
|
730
730
|
|
|
731
731
|
--
|
|
732
732
|
|
|
733
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
|
733
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L24)
|
|
734
734
|
|
|
735
735
|
> def current_activity
|
|
736
736
|
|
|
737
|
+
Get current activity name
|
|
738
|
+
```ruby
|
|
739
|
+
current_activity # '.ApiDemos'
|
|
740
|
+
```
|
|
741
|
+
|
|
742
|
+
__Returns:__
|
|
737
743
|
|
|
744
|
+
[String] An activity name
|
|
738
745
|
|
|
739
746
|
--
|
|
740
747
|
|
|
741
|
-
##### [
|
|
748
|
+
##### [current_package](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L32)
|
|
749
|
+
|
|
750
|
+
> def current_package
|
|
751
|
+
|
|
752
|
+
Get current package name
|
|
753
|
+
```ruby
|
|
754
|
+
current_package # 'com.example.android.apis'
|
|
755
|
+
```
|
|
756
|
+
|
|
757
|
+
__Returns:__
|
|
758
|
+
|
|
759
|
+
[String] A package name
|
|
760
|
+
|
|
761
|
+
--
|
|
762
|
+
|
|
763
|
+
##### [get_system_bars](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L40)
|
|
742
764
|
|
|
743
765
|
> def get_system_bars
|
|
744
766
|
|
|
@@ -753,7 +775,7 @@ __Returns:__
|
|
|
753
775
|
|
|
754
776
|
--
|
|
755
777
|
|
|
756
|
-
##### [get_display_density](https://github.com/appium/ruby_lib/blob/
|
|
778
|
+
##### [get_display_density](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L48)
|
|
757
779
|
|
|
758
780
|
> def get_display_density
|
|
759
781
|
|
|
@@ -768,7 +790,7 @@ __Returns:__
|
|
|
768
790
|
|
|
769
791
|
--
|
|
770
792
|
|
|
771
|
-
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/
|
|
793
|
+
##### [is_keyboard_shown](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L56)
|
|
772
794
|
|
|
773
795
|
> def is_keyboard_shown
|
|
774
796
|
|
|
@@ -783,7 +805,7 @@ __Returns:__
|
|
|
783
805
|
|
|
784
806
|
--
|
|
785
807
|
|
|
786
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
|
808
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L64)
|
|
787
809
|
|
|
788
810
|
> def launch_app
|
|
789
811
|
|
|
@@ -791,7 +813,7 @@ Start the simulator and application configured with desired capabilities
|
|
|
791
813
|
|
|
792
814
|
--
|
|
793
815
|
|
|
794
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
816
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L67)
|
|
795
817
|
|
|
796
818
|
> def reset
|
|
797
819
|
|
|
@@ -799,7 +821,7 @@ Reset the device, relaunching the application.
|
|
|
799
821
|
|
|
800
822
|
--
|
|
801
823
|
|
|
802
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
|
824
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L70)
|
|
803
825
|
|
|
804
826
|
> def shake
|
|
805
827
|
|
|
@@ -807,7 +829,7 @@ Cause the device to shake
|
|
|
807
829
|
|
|
808
830
|
--
|
|
809
831
|
|
|
810
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
|
832
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L73)
|
|
811
833
|
|
|
812
834
|
> def toggle_flight_mode
|
|
813
835
|
|
|
@@ -815,7 +837,7 @@ Toggle flight mode on or off
|
|
|
815
837
|
|
|
816
838
|
--
|
|
817
839
|
|
|
818
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
|
840
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L76)
|
|
819
841
|
|
|
820
842
|
> def device_locked?
|
|
821
843
|
|
|
@@ -823,7 +845,7 @@ Toggle flight mode on or off
|
|
|
823
845
|
|
|
824
846
|
--
|
|
825
847
|
|
|
826
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
|
848
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L78)
|
|
827
849
|
|
|
828
850
|
> def hide_keyboard
|
|
829
851
|
|
|
@@ -840,7 +862,7 @@ Default for iOS is `:pressKey`. Default for Android is `:tapOutside`.
|
|
|
840
862
|
|
|
841
863
|
--
|
|
842
864
|
|
|
843
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
|
865
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L91)
|
|
844
866
|
|
|
845
867
|
> def press_keycode
|
|
846
868
|
|
|
@@ -855,7 +877,7 @@ __Parameters:__
|
|
|
855
877
|
|
|
856
878
|
--
|
|
857
879
|
|
|
858
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
|
880
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L97)
|
|
859
881
|
|
|
860
882
|
> def long_press_keycode
|
|
861
883
|
|
|
@@ -870,7 +892,7 @@ __Parameters:__
|
|
|
870
892
|
|
|
871
893
|
--
|
|
872
894
|
|
|
873
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
|
895
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L103)
|
|
874
896
|
|
|
875
897
|
> def push_file
|
|
876
898
|
|
|
@@ -884,7 +906,7 @@ __Parameters:__
|
|
|
884
906
|
|
|
885
907
|
--
|
|
886
908
|
|
|
887
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
|
909
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L108)
|
|
888
910
|
|
|
889
911
|
> def pull_file
|
|
890
912
|
|
|
@@ -901,7 +923,7 @@ __Parameters:__
|
|
|
901
923
|
|
|
902
924
|
--
|
|
903
925
|
|
|
904
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
|
926
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L118)
|
|
905
927
|
|
|
906
928
|
> def pull_folder
|
|
907
929
|
|
|
@@ -916,7 +938,7 @@ __Parameters:__
|
|
|
916
938
|
|
|
917
939
|
--
|
|
918
940
|
|
|
919
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
|
941
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L126)
|
|
920
942
|
|
|
921
943
|
> def touch_id
|
|
922
944
|
|
|
@@ -933,7 +955,7 @@ Defaults to true.
|
|
|
933
955
|
|
|
934
956
|
--
|
|
935
957
|
|
|
936
|
-
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/
|
|
958
|
+
##### [toggle_touch_id_enrollment](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L135)
|
|
937
959
|
|
|
938
960
|
> def toggle_touch_id_enrollment
|
|
939
961
|
|
|
@@ -941,7 +963,7 @@ iOS Simulator only: Toggle touch id enrollment on an iOS Simulator.
|
|
|
941
963
|
|
|
942
964
|
--
|
|
943
965
|
|
|
944
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
|
966
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L138)
|
|
945
967
|
|
|
946
968
|
> def end_coverage
|
|
947
969
|
|
|
@@ -955,7 +977,7 @@ __Parameters:__
|
|
|
955
977
|
|
|
956
978
|
--
|
|
957
979
|
|
|
958
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
|
980
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L143)
|
|
959
981
|
|
|
960
982
|
> def get_settings
|
|
961
983
|
|
|
@@ -963,7 +985,7 @@ Get appium Settings for current test session
|
|
|
963
985
|
|
|
964
986
|
--
|
|
965
987
|
|
|
966
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
|
988
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L146)
|
|
967
989
|
|
|
968
990
|
> def update_settings
|
|
969
991
|
|
|
@@ -975,7 +997,7 @@ __Parameters:__
|
|
|
975
997
|
|
|
976
998
|
--
|
|
977
999
|
|
|
978
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
|
1000
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L150)
|
|
979
1001
|
|
|
980
1002
|
> def start_activity
|
|
981
1003
|
|
|
@@ -989,7 +1011,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
|
989
1011
|
|
|
990
1012
|
--
|
|
991
1013
|
|
|
992
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
|
1014
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L164)
|
|
993
1015
|
|
|
994
1016
|
> def get_network_connection
|
|
995
1017
|
|
|
@@ -998,7 +1020,7 @@ See set_network_connection method for return value
|
|
|
998
1020
|
|
|
999
1021
|
--
|
|
1000
1022
|
|
|
1001
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
|
1023
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L168)
|
|
1002
1024
|
|
|
1003
1025
|
> def set_network_connection
|
|
1004
1026
|
|
|
@@ -1017,7 +1039,7 @@ __Parameters:__
|
|
|
1017
1039
|
|
|
1018
1040
|
--
|
|
1019
1041
|
|
|
1020
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
|
1042
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L181)
|
|
1021
1043
|
|
|
1022
1044
|
> def set_immediate_value
|
|
1023
1045
|
|
|
@@ -1031,7 +1053,7 @@ set_immediate_value element, 'hello'
|
|
|
1031
1053
|
|
|
1032
1054
|
--
|
|
1033
1055
|
|
|
1034
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
|
1056
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L190)
|
|
1035
1057
|
|
|
1036
1058
|
> def get_performance_data_types
|
|
1037
1059
|
|
|
@@ -1045,7 +1067,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
|
1045
1067
|
|
|
1046
1068
|
--
|
|
1047
1069
|
|
|
1048
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
|
1070
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L453)
|
|
1049
1071
|
|
|
1050
1072
|
> def extend_search_contexts
|
|
1051
1073
|
|
|
@@ -1053,7 +1075,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
|
1053
1075
|
|
|
1054
1076
|
--
|
|
1055
1077
|
|
|
1056
|
-
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/
|
|
1078
|
+
##### [find_element_with_appium](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L453)
|
|
1057
1079
|
|
|
1058
1080
|
> def find_element_with_appium
|
|
1059
1081
|
|
|
@@ -1061,7 +1083,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
|
1061
1083
|
|
|
1062
1084
|
--
|
|
1063
1085
|
|
|
1064
|
-
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/
|
|
1086
|
+
##### [find_elements_with_appium](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L453)
|
|
1065
1087
|
|
|
1066
1088
|
> def find_elements_with_appium
|
|
1067
1089
|
|
|
@@ -1073,7 +1095,7 @@ find_element/s_with_appium with their accessibility_id
|
|
|
1073
1095
|
|
|
1074
1096
|
--
|
|
1075
1097
|
|
|
1076
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
|
1098
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L484)
|
|
1077
1099
|
|
|
1078
1100
|
> def add_touch_actions
|
|
1079
1101
|
|
|
@@ -1081,7 +1103,7 @@ find_element/s_with_appium with their accessibility_id
|
|
|
1081
1103
|
|
|
1082
1104
|
--
|
|
1083
1105
|
|
|
1084
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
|
1106
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L507)
|
|
1085
1107
|
|
|
1086
1108
|
> def add_ime_actions
|
|
1087
1109
|
|
|
@@ -1089,7 +1111,7 @@ find_element/s_with_appium with their accessibility_id
|
|
|
1089
1111
|
|
|
1090
1112
|
--
|
|
1091
1113
|
|
|
1092
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
|
1114
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L582)
|
|
1093
1115
|
|
|
1094
1116
|
> def set_context
|
|
1095
1117
|
|
|
@@ -1104,7 +1126,7 @@ __Parameters:__
|
|
|
1104
1126
|
|
|
1105
1127
|
--
|
|
1106
1128
|
|
|
1107
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
|
1129
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L590)
|
|
1108
1130
|
|
|
1109
1131
|
> def current_context
|
|
1110
1132
|
|
|
@@ -1116,7 +1138,7 @@ __Returns:__
|
|
|
1116
1138
|
|
|
1117
1139
|
--
|
|
1118
1140
|
|
|
1119
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
|
1141
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L593)
|
|
1120
1142
|
|
|
1121
1143
|
> def available_contexts
|
|
1122
1144
|
|
|
@@ -1128,14 +1150,15 @@ __Returns:__
|
|
|
1128
1150
|
|
|
1129
1151
|
--
|
|
1130
1152
|
|
|
1131
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
|
1153
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L604)
|
|
1132
1154
|
|
|
1133
1155
|
> def within_context(context)
|
|
1134
1156
|
|
|
1135
1157
|
Perform a block within the given context, then switch back to the starting context.
|
|
1136
1158
|
```ruby
|
|
1137
|
-
within_context('NATIVE_APP') do
|
|
1138
|
-
find_element
|
|
1159
|
+
result = within_context('NATIVE_APP') do
|
|
1160
|
+
find_element :tag, "button"
|
|
1161
|
+
end # The result of `find_element :tag, "button"`
|
|
1139
1162
|
```
|
|
1140
1163
|
|
|
1141
1164
|
__Parameters:__
|
|
@@ -1144,7 +1167,7 @@ __Parameters:__
|
|
|
1144
1167
|
|
|
1145
1168
|
--
|
|
1146
1169
|
|
|
1147
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
|
1170
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/device.rb#L617)
|
|
1148
1171
|
|
|
1149
1172
|
> def switch_to_default_context
|
|
1150
1173
|
|
|
@@ -1152,7 +1175,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
|
1152
1175
|
|
|
1153
1176
|
--
|
|
1154
1177
|
|
|
1155
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
|
1178
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L28)
|
|
1156
1179
|
|
|
1157
1180
|
> def pinch(percentage = 25, auto_perform = true)
|
|
1158
1181
|
|
|
@@ -1171,7 +1194,7 @@ __Parameters:__
|
|
|
1171
1194
|
|
|
1172
1195
|
--
|
|
1173
1196
|
|
|
1174
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
|
1197
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L57)
|
|
1175
1198
|
|
|
1176
1199
|
> def zoom(percentage = 200, auto_perform = true)
|
|
1177
1200
|
|
|
@@ -1190,7 +1213,7 @@ __Parameters:__
|
|
|
1190
1213
|
|
|
1191
1214
|
--
|
|
1192
1215
|
|
|
1193
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
1216
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L79)
|
|
1194
1217
|
|
|
1195
1218
|
> def pinch_for_xcuitest(rate)
|
|
1196
1219
|
|
|
@@ -1198,7 +1221,7 @@ __Parameters:__
|
|
|
1198
1221
|
|
|
1199
1222
|
--
|
|
1200
1223
|
|
|
1201
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
|
1224
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L94)
|
|
1202
1225
|
|
|
1203
1226
|
> def pinch_android(rate)
|
|
1204
1227
|
|
|
@@ -1206,7 +1229,7 @@ __Parameters:__
|
|
|
1206
1229
|
|
|
1207
1230
|
--
|
|
1208
1231
|
|
|
1209
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
|
1232
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L108)
|
|
1210
1233
|
|
|
1211
1234
|
> def pinch_ios(rate)
|
|
1212
1235
|
|
|
@@ -1214,7 +1237,7 @@ __Parameters:__
|
|
|
1214
1237
|
|
|
1215
1238
|
--
|
|
1216
1239
|
|
|
1217
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
|
1240
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L122)
|
|
1218
1241
|
|
|
1219
1242
|
> def zoom_for_xcuitest(rate)
|
|
1220
1243
|
|
|
@@ -1222,7 +1245,7 @@ __Parameters:__
|
|
|
1222
1245
|
|
|
1223
1246
|
--
|
|
1224
1247
|
|
|
1225
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
|
1248
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L137)
|
|
1226
1249
|
|
|
1227
1250
|
> def zoom_android(rate)
|
|
1228
1251
|
|
|
@@ -1230,7 +1253,7 @@ __Parameters:__
|
|
|
1230
1253
|
|
|
1231
1254
|
--
|
|
1232
1255
|
|
|
1233
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
|
1256
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L151)
|
|
1234
1257
|
|
|
1235
1258
|
> def zoom_ios(rate)
|
|
1236
1259
|
|
|
@@ -1238,7 +1261,7 @@ __Parameters:__
|
|
|
1238
1261
|
|
|
1239
1262
|
--
|
|
1240
1263
|
|
|
1241
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
|
1264
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L166)
|
|
1242
1265
|
|
|
1243
1266
|
> def actions
|
|
1244
1267
|
|
|
@@ -1246,7 +1269,7 @@ self
|
|
|
1246
1269
|
|
|
1247
1270
|
--
|
|
1248
1271
|
|
|
1249
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1272
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L169)
|
|
1250
1273
|
|
|
1251
1274
|
> def initialize
|
|
1252
1275
|
|
|
@@ -1258,7 +1281,7 @@ __Returns:__
|
|
|
1258
1281
|
|
|
1259
1282
|
--
|
|
1260
1283
|
|
|
1261
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
|
1284
|
+
##### [add](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L175)
|
|
1262
1285
|
|
|
1263
1286
|
> def add(chain)
|
|
1264
1287
|
|
|
@@ -1270,7 +1293,7 @@ __Parameters:__
|
|
|
1270
1293
|
|
|
1271
1294
|
--
|
|
1272
1295
|
|
|
1273
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
|
1296
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/multi_touch.rb#L180)
|
|
1274
1297
|
|
|
1275
1298
|
> def perform
|
|
1276
1299
|
|
|
@@ -1278,7 +1301,7 @@ Ask Appium to perform the actions
|
|
|
1278
1301
|
|
|
1279
1302
|
--
|
|
1280
1303
|
|
|
1281
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
|
1304
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L22)
|
|
1282
1305
|
|
|
1283
1306
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
|
1284
1307
|
|
|
@@ -1286,7 +1309,7 @@ Ask Appium to perform the actions
|
|
|
1286
1309
|
|
|
1287
1310
|
--
|
|
1288
1311
|
|
|
1289
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
|
1312
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L23)
|
|
1290
1313
|
|
|
1291
1314
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
|
1292
1315
|
|
|
@@ -1294,7 +1317,7 @@ Ask Appium to perform the actions
|
|
|
1294
1317
|
|
|
1295
1318
|
--
|
|
1296
1319
|
|
|
1297
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
|
1320
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L37)
|
|
1298
1321
|
|
|
1299
1322
|
> def actions
|
|
1300
1323
|
|
|
@@ -1302,7 +1325,7 @@ Returns the value of attribute actions
|
|
|
1302
1325
|
|
|
1303
1326
|
--
|
|
1304
1327
|
|
|
1305
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1328
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L39)
|
|
1306
1329
|
|
|
1307
1330
|
> def initialize
|
|
1308
1331
|
|
|
@@ -1314,7 +1337,7 @@ __Returns:__
|
|
|
1314
1337
|
|
|
1315
1338
|
--
|
|
1316
1339
|
|
|
1317
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
|
1340
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L50)
|
|
1318
1341
|
|
|
1319
1342
|
> def move_to(opts)
|
|
1320
1343
|
|
|
@@ -1328,7 +1351,7 @@ __Parameters:__
|
|
|
1328
1351
|
|
|
1329
1352
|
--
|
|
1330
1353
|
|
|
1331
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
|
1354
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L64)
|
|
1332
1355
|
|
|
1333
1356
|
> def long_press(opts)
|
|
1334
1357
|
|
|
@@ -1349,7 +1372,7 @@ __Parameters:__
|
|
|
1349
1372
|
|
|
1350
1373
|
--
|
|
1351
1374
|
|
|
1352
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
|
1375
|
+
##### [press](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L76)
|
|
1353
1376
|
|
|
1354
1377
|
> def press(opts)
|
|
1355
1378
|
|
|
@@ -1362,7 +1385,7 @@ __Parameters:__
|
|
|
1362
1385
|
|
|
1363
1386
|
--
|
|
1364
1387
|
|
|
1365
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
|
1388
|
+
##### [release](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L87)
|
|
1366
1389
|
|
|
1367
1390
|
> def release(opts = nil)
|
|
1368
1391
|
|
|
@@ -1374,7 +1397,7 @@ __Parameters:__
|
|
|
1374
1397
|
|
|
1375
1398
|
--
|
|
1376
1399
|
|
|
1377
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
|
1400
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L99)
|
|
1378
1401
|
|
|
1379
1402
|
> def tap(opts)
|
|
1380
1403
|
|
|
@@ -1387,7 +1410,7 @@ __Parameters:__
|
|
|
1387
1410
|
|
|
1388
1411
|
--
|
|
1389
1412
|
|
|
1390
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
|
1413
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L112)
|
|
1391
1414
|
|
|
1392
1415
|
> def double_tap(opts)
|
|
1393
1416
|
|
|
@@ -1399,7 +1422,7 @@ __Parameters:__
|
|
|
1399
1422
|
|
|
1400
1423
|
--
|
|
1401
1424
|
|
|
1402
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
|
1425
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L123)
|
|
1403
1426
|
|
|
1404
1427
|
> def two_finger_tap(opts)
|
|
1405
1428
|
|
|
@@ -1411,7 +1434,7 @@ __Parameters:__
|
|
|
1411
1434
|
|
|
1412
1435
|
--
|
|
1413
1436
|
|
|
1414
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
|
1437
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L131)
|
|
1415
1438
|
|
|
1416
1439
|
> def wait(milliseconds)
|
|
1417
1440
|
|
|
@@ -1423,7 +1446,7 @@ __Parameters:__
|
|
|
1423
1446
|
|
|
1424
1447
|
--
|
|
1425
1448
|
|
|
1426
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
|
1449
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L154)
|
|
1427
1450
|
|
|
1428
1451
|
> def swipe(opts, ele = nil)
|
|
1429
1452
|
|
|
@@ -1444,7 +1467,7 @@ __Parameters:__
|
|
|
1444
1467
|
|
|
1445
1468
|
--
|
|
1446
1469
|
|
|
1447
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
|
1470
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L179)
|
|
1448
1471
|
|
|
1449
1472
|
> def perform
|
|
1450
1473
|
|
|
@@ -1452,7 +1475,7 @@ Ask the driver to perform all actions in this action chain.
|
|
|
1452
1475
|
|
|
1453
1476
|
--
|
|
1454
1477
|
|
|
1455
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
|
1478
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L186)
|
|
1456
1479
|
|
|
1457
1480
|
> def cancel
|
|
1458
1481
|
|
|
@@ -1460,7 +1483,7 @@ Does nothing, currently.
|
|
|
1460
1483
|
|
|
1461
1484
|
--
|
|
1462
1485
|
|
|
1463
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
|
1486
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L192)
|
|
1464
1487
|
|
|
1465
1488
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
|
1466
1489
|
|
|
@@ -1468,7 +1491,7 @@ Does nothing, currently.
|
|
|
1468
1491
|
|
|
1469
1492
|
--
|
|
1470
1493
|
|
|
1471
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
|
1494
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L210)
|
|
1472
1495
|
|
|
1473
1496
|
> def chain_method(method, args = nil)
|
|
1474
1497
|
|
|
@@ -1476,7 +1499,7 @@ Does nothing, currently.
|
|
|
1476
1499
|
|
|
1477
1500
|
--
|
|
1478
1501
|
|
|
1479
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
|
1502
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/device/touch_actions.rb#L216)
|
|
1480
1503
|
|
|
1481
1504
|
> def args_with_ele_ref(args)
|
|
1482
1505
|
|
|
@@ -1484,16 +1507,28 @@ Does nothing, currently.
|
|
|
1484
1507
|
|
|
1485
1508
|
--
|
|
1486
1509
|
|
|
1487
|
-
##### [
|
|
1510
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/wait.rb#L4)
|
|
1488
1511
|
|
|
1489
|
-
> def
|
|
1512
|
+
> def initialize(opts = {})
|
|
1513
|
+
|
|
1514
|
+
|
|
1515
|
+
|
|
1516
|
+
__Returns:__
|
|
1517
|
+
|
|
1518
|
+
[Wait] a new instance of Wait
|
|
1519
|
+
|
|
1520
|
+
--
|
|
1521
|
+
|
|
1522
|
+
##### [until](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/wait.rb#L23)
|
|
1523
|
+
|
|
1524
|
+
> def until
|
|
1490
1525
|
|
|
1491
1526
|
Wait code from the selenium Ruby gem
|
|
1492
1527
|
https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f0c20/rb/lib/selenium/webdriver/common/wait.rb
|
|
1493
1528
|
|
|
1494
1529
|
--
|
|
1495
1530
|
|
|
1496
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
|
1531
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/wait.rb#L51)
|
|
1497
1532
|
|
|
1498
1533
|
> def _process_wait_opts(opts)
|
|
1499
1534
|
|
|
@@ -1501,9 +1536,9 @@ process opts before calling _generic_wait
|
|
|
1501
1536
|
|
|
1502
1537
|
--
|
|
1503
1538
|
|
|
1504
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
|
1539
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/wait.rb#L72)
|
|
1505
1540
|
|
|
1506
|
-
> def wait_true(opts = {}
|
|
1541
|
+
> def wait_true(opts = {})
|
|
1507
1542
|
|
|
1508
1543
|
Check every interval seconds to see if yield returns a truthy value.
|
|
1509
1544
|
Note this isn't a strict boolean true, any truthy value is accepted.
|
|
@@ -1521,9 +1556,9 @@ __Parameters:__
|
|
|
1521
1556
|
|
|
1522
1557
|
--
|
|
1523
1558
|
|
|
1524
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
|
1559
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/wait.rb#L95)
|
|
1525
1560
|
|
|
1526
|
-
> def wait(opts = {}
|
|
1561
|
+
> def wait(opts = {})
|
|
1527
1562
|
|
|
1528
1563
|
Check every interval seconds to see if yield doesn't raise an exception.
|
|
1529
1564
|
Give up after timeout seconds.
|
|
@@ -1539,7 +1574,7 @@ __Parameters:__
|
|
|
1539
1574
|
|
|
1540
1575
|
--
|
|
1541
1576
|
|
|
1542
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
|
1577
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L24)
|
|
1543
1578
|
|
|
1544
1579
|
> def ignore
|
|
1545
1580
|
|
|
@@ -1547,7 +1582,7 @@ Return yield and ignore any exceptions.
|
|
|
1547
1582
|
|
|
1548
1583
|
--
|
|
1549
1584
|
|
|
1550
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
|
1585
|
+
##### [back](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L31)
|
|
1551
1586
|
|
|
1552
1587
|
> def back
|
|
1553
1588
|
|
|
@@ -1559,7 +1594,7 @@ __Returns:__
|
|
|
1559
1594
|
|
|
1560
1595
|
--
|
|
1561
1596
|
|
|
1562
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
|
1597
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L36)
|
|
1563
1598
|
|
|
1564
1599
|
> def session_id
|
|
1565
1600
|
|
|
@@ -1567,7 +1602,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
|
1567
1602
|
|
|
1568
1603
|
--
|
|
1569
1604
|
|
|
1570
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
|
1605
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L44)
|
|
1571
1606
|
|
|
1572
1607
|
> def xpath(xpath_str)
|
|
1573
1608
|
|
|
@@ -1583,7 +1618,7 @@ __Returns:__
|
|
|
1583
1618
|
|
|
1584
1619
|
--
|
|
1585
1620
|
|
|
1586
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
|
1621
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L52)
|
|
1587
1622
|
|
|
1588
1623
|
> def xpaths(xpath_str)
|
|
1589
1624
|
|
|
@@ -1599,7 +1634,7 @@ __Returns:__
|
|
|
1599
1634
|
|
|
1600
1635
|
--
|
|
1601
1636
|
|
|
1602
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
|
1637
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L56)
|
|
1603
1638
|
|
|
1604
1639
|
> def _print_source(source)
|
|
1605
1640
|
|
|
@@ -1607,7 +1642,7 @@ __Returns:__
|
|
|
1607
1642
|
|
|
1608
1643
|
--
|
|
1609
1644
|
|
|
1610
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1645
|
+
##### [result](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L69)
|
|
1611
1646
|
|
|
1612
1647
|
> def result
|
|
1613
1648
|
|
|
@@ -1615,7 +1650,7 @@ Returns the value of attribute result
|
|
|
1615
1650
|
|
|
1616
1651
|
--
|
|
1617
1652
|
|
|
1618
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1653
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L71)
|
|
1619
1654
|
|
|
1620
1655
|
> def initialize
|
|
1621
1656
|
|
|
@@ -1627,7 +1662,7 @@ __Returns:__
|
|
|
1627
1662
|
|
|
1628
1663
|
--
|
|
1629
1664
|
|
|
1630
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1665
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L75)
|
|
1631
1666
|
|
|
1632
1667
|
> def reset
|
|
1633
1668
|
|
|
@@ -1635,7 +1670,7 @@ __Returns:__
|
|
|
1635
1670
|
|
|
1636
1671
|
--
|
|
1637
1672
|
|
|
1638
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1673
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L80)
|
|
1639
1674
|
|
|
1640
1675
|
> def start_element(name, attrs = [])
|
|
1641
1676
|
|
|
@@ -1643,7 +1678,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1643
1678
|
|
|
1644
1679
|
--
|
|
1645
1680
|
|
|
1646
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
|
1681
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L86)
|
|
1647
1682
|
|
|
1648
1683
|
> def formatted_result
|
|
1649
1684
|
|
|
@@ -1651,7 +1686,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
|
1651
1686
|
|
|
1652
1687
|
--
|
|
1653
1688
|
|
|
1654
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
|
1689
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L97)
|
|
1655
1690
|
|
|
1656
1691
|
> def get_page_class
|
|
1657
1692
|
|
|
@@ -1659,7 +1694,7 @@ Returns a string of class counts of visible elements.
|
|
|
1659
1694
|
|
|
1660
1695
|
--
|
|
1661
1696
|
|
|
1662
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
|
1697
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L108)
|
|
1663
1698
|
|
|
1664
1699
|
> def page_class
|
|
1665
1700
|
|
|
@@ -1668,7 +1703,7 @@ Useful for appium_console.
|
|
|
1668
1703
|
|
|
1669
1704
|
--
|
|
1670
1705
|
|
|
1671
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
|
1706
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L118)
|
|
1672
1707
|
|
|
1673
1708
|
> def px_to_window_rel(opts = {})
|
|
1674
1709
|
|
|
@@ -1680,7 +1715,7 @@ px_to_window_rel x: 50, y: 150
|
|
|
1680
1715
|
|
|
1681
1716
|
--
|
|
1682
1717
|
|
|
1683
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
|
1718
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L137)
|
|
1684
1719
|
|
|
1685
1720
|
> def xml_keys(target)
|
|
1686
1721
|
|
|
@@ -1696,7 +1731,7 @@ __Returns:__
|
|
|
1696
1731
|
|
|
1697
1732
|
--
|
|
1698
1733
|
|
|
1699
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
|
1734
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L145)
|
|
1700
1735
|
|
|
1701
1736
|
> def xml_values(target)
|
|
1702
1737
|
|
|
@@ -1712,7 +1747,7 @@ __Returns:__
|
|
|
1712
1747
|
|
|
1713
1748
|
--
|
|
1714
1749
|
|
|
1715
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
|
1750
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L153)
|
|
1716
1751
|
|
|
1717
1752
|
> def resolve_id(id)
|
|
1718
1753
|
|
|
@@ -1728,7 +1763,7 @@ __Returns:__
|
|
|
1728
1763
|
|
|
1729
1764
|
--
|
|
1730
1765
|
|
|
1731
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
|
1766
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L159)
|
|
1732
1767
|
|
|
1733
1768
|
> def filter
|
|
1734
1769
|
|
|
@@ -1736,7 +1771,7 @@ Returns the value of attribute filter
|
|
|
1736
1771
|
|
|
1737
1772
|
--
|
|
1738
1773
|
|
|
1739
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
|
1774
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L162)
|
|
1740
1775
|
|
|
1741
1776
|
> def filter=(value)
|
|
1742
1777
|
|
|
@@ -1744,7 +1779,7 @@ convert to string to support symbols
|
|
|
1744
1779
|
|
|
1745
1780
|
--
|
|
1746
1781
|
|
|
1747
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
|
1782
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L168)
|
|
1748
1783
|
|
|
1749
1784
|
> def initialize
|
|
1750
1785
|
|
|
@@ -1756,7 +1791,7 @@ __Returns:__
|
|
|
1756
1791
|
|
|
1757
1792
|
--
|
|
1758
1793
|
|
|
1759
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
|
1794
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L173)
|
|
1760
1795
|
|
|
1761
1796
|
> def reset
|
|
1762
1797
|
|
|
@@ -1764,7 +1799,7 @@ __Returns:__
|
|
|
1764
1799
|
|
|
1765
1800
|
--
|
|
1766
1801
|
|
|
1767
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
|
1802
|
+
##### [result](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L179)
|
|
1768
1803
|
|
|
1769
1804
|
> def result
|
|
1770
1805
|
|
|
@@ -1772,7 +1807,7 @@ __Returns:__
|
|
|
1772
1807
|
|
|
1773
1808
|
--
|
|
1774
1809
|
|
|
1775
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1810
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L195)
|
|
1776
1811
|
|
|
1777
1812
|
> def start_element(name, attrs = [])
|
|
1778
1813
|
|
|
@@ -1780,7 +1815,7 @@ __Returns:__
|
|
|
1780
1815
|
|
|
1781
1816
|
--
|
|
1782
1817
|
|
|
1783
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
|
1818
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L204)
|
|
1784
1819
|
|
|
1785
1820
|
> def end_element(name)
|
|
1786
1821
|
|
|
@@ -1788,7 +1823,7 @@ __Returns:__
|
|
|
1788
1823
|
|
|
1789
1824
|
--
|
|
1790
1825
|
|
|
1791
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
|
1826
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L210)
|
|
1792
1827
|
|
|
1793
1828
|
> def characters(chars)
|
|
1794
1829
|
|
|
@@ -1796,7 +1831,7 @@ __Returns:__
|
|
|
1796
1831
|
|
|
1797
1832
|
--
|
|
1798
1833
|
|
|
1799
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
|
1834
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/helper.rb#L217)
|
|
1800
1835
|
|
|
1801
1836
|
> def _no_such_element
|
|
1802
1837
|
|
|
@@ -1804,7 +1839,7 @@ __Returns:__
|
|
|
1804
1839
|
|
|
1805
1840
|
--
|
|
1806
1841
|
|
|
1807
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
|
1842
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/command.rb#L4)
|
|
1808
1843
|
|
|
1809
1844
|
> COMMAND_NO_ARG = {
|
|
1810
1845
|
|
|
@@ -1812,7 +1847,7 @@ __Returns:__
|
|
|
1812
1847
|
|
|
1813
1848
|
--
|
|
1814
1849
|
|
|
1815
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
|
1850
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/command.rb#L28)
|
|
1816
1851
|
|
|
1817
1852
|
> COMMAND = {
|
|
1818
1853
|
|
|
@@ -1820,7 +1855,7 @@ __Returns:__
|
|
|
1820
1855
|
|
|
1821
1856
|
--
|
|
1822
1857
|
|
|
1823
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
|
1858
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/element/window.rb#L5)
|
|
1824
1859
|
|
|
1825
1860
|
> def window_size
|
|
1826
1861
|
|
|
@@ -1828,7 +1863,7 @@ Get the window's size
|
|
|
1828
1863
|
|
|
1829
1864
|
--
|
|
1830
1865
|
|
|
1831
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
|
1866
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/search_context.rb#L5)
|
|
1832
1867
|
|
|
1833
1868
|
> FINDERS = {
|
|
1834
1869
|
|
|
@@ -1836,7 +1871,7 @@ rubocop:disable Style/MutableConstant
|
|
|
1836
1871
|
|
|
1837
1872
|
--
|
|
1838
1873
|
|
|
1839
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
|
1874
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L4) ios
|
|
1840
1875
|
|
|
1841
1876
|
> def filter
|
|
1842
1877
|
|
|
@@ -1844,7 +1879,7 @@ Returns the value of attribute filter
|
|
|
1844
1879
|
|
|
1845
1880
|
--
|
|
1846
1881
|
|
|
1847
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
|
1882
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L4) ios
|
|
1848
1883
|
|
|
1849
1884
|
> def filter=(value)
|
|
1850
1885
|
|
|
@@ -1856,7 +1891,7 @@ __Parameters:__
|
|
|
1856
1891
|
|
|
1857
1892
|
--
|
|
1858
1893
|
|
|
1859
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
|
1894
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L6) ios
|
|
1860
1895
|
|
|
1861
1896
|
> def start_element(type, attrs = [])
|
|
1862
1897
|
|
|
@@ -1864,15 +1899,15 @@ __Parameters:__
|
|
|
1864
1899
|
|
|
1865
1900
|
--
|
|
1866
1901
|
|
|
1867
|
-
##### [_print_attr](https://github.com/appium/ruby_lib/blob/
|
|
1868
|
-
|
|
1869
|
-
> def _print_attr(type, name, label, value, hint)
|
|
1902
|
+
##### [_print_attr](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L15) ios
|
|
1870
1903
|
|
|
1904
|
+
> def _print_attr(type, name, label, value, hint, visible) # rubocop:disable Metrics/ParameterLists
|
|
1871
1905
|
|
|
1906
|
+
rubocop:disable Metrics/ParameterLists
|
|
1872
1907
|
|
|
1873
1908
|
--
|
|
1874
1909
|
|
|
1875
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
|
1910
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L42) ios
|
|
1876
1911
|
|
|
1877
1912
|
> def ios_password(length = 1)
|
|
1878
1913
|
|
|
@@ -1890,7 +1925,7 @@ __Returns:__
|
|
|
1890
1925
|
|
|
1891
1926
|
--
|
|
1892
1927
|
|
|
1893
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
|
1928
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L55) ios
|
|
1894
1929
|
|
|
1895
1930
|
> def get_page(element = source_window(0), class_name = nil)
|
|
1896
1931
|
|
|
@@ -1911,7 +1946,7 @@ __Returns:__
|
|
|
1911
1946
|
|
|
1912
1947
|
--
|
|
1913
1948
|
|
|
1914
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
|
1949
|
+
##### [page](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L142) ios
|
|
1915
1950
|
|
|
1916
1951
|
> def page(opts = {})
|
|
1917
1952
|
|
|
@@ -1921,13 +1956,12 @@ Example
|
|
|
1921
1956
|
|
|
1922
1957
|
```ruby
|
|
1923
1958
|
page class: :UIAButton # filter on buttons
|
|
1924
|
-
page window: 1 # show source for window 1
|
|
1925
1959
|
page class: :UIAButton, window: 1
|
|
1926
1960
|
```
|
|
1927
1961
|
|
|
1928
1962
|
__Parameters:__
|
|
1929
1963
|
|
|
1930
|
-
[Hash]
|
|
1964
|
+
[Hash] visible - a customizable set of options
|
|
1931
1965
|
|
|
1932
1966
|
[Hash] class - a customizable set of options
|
|
1933
1967
|
|
|
@@ -1937,23 +1971,19 @@ __Returns:__
|
|
|
1937
1971
|
|
|
1938
1972
|
--
|
|
1939
1973
|
|
|
1940
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
|
1974
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L166) ios
|
|
1941
1975
|
|
|
1942
|
-
> def source_window(
|
|
1976
|
+
> def source_window(window_number = nil)
|
|
1943
1977
|
|
|
1944
1978
|
Gets the JSON source of window number
|
|
1945
1979
|
|
|
1946
|
-
__Parameters:__
|
|
1947
|
-
|
|
1948
|
-
[Integer] _window_number - The int index of the target window
|
|
1949
|
-
|
|
1950
1980
|
__Returns:__
|
|
1951
1981
|
|
|
1952
1982
|
[JSON]
|
|
1953
1983
|
|
|
1954
1984
|
--
|
|
1955
1985
|
|
|
1956
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
|
1986
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L177) ios
|
|
1957
1987
|
|
|
1958
1988
|
> def page_window(window_number = 0)
|
|
1959
1989
|
|
|
@@ -1971,7 +2001,7 @@ __Returns:__
|
|
|
1971
2001
|
|
|
1972
2002
|
--
|
|
1973
2003
|
|
|
1974
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
|
2004
|
+
##### [id](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L185) ios
|
|
1975
2005
|
|
|
1976
2006
|
> def id(id)
|
|
1977
2007
|
|
|
@@ -1987,7 +2017,7 @@ __Returns:__
|
|
|
1987
2017
|
|
|
1988
2018
|
--
|
|
1989
2019
|
|
|
1990
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
|
2020
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L191) ios
|
|
1991
2021
|
|
|
1992
2022
|
> def ios_version
|
|
1993
2023
|
|
|
@@ -1999,7 +2029,7 @@ __Returns:__
|
|
|
1999
2029
|
|
|
2000
2030
|
--
|
|
2001
2031
|
|
|
2002
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
|
2032
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L204) ios
|
|
2003
2033
|
|
|
2004
2034
|
> def ele_index(class_name, index)
|
|
2005
2035
|
|
|
@@ -2017,7 +2047,7 @@ __Returns:__
|
|
|
2017
2047
|
|
|
2018
2048
|
--
|
|
2019
2049
|
|
|
2020
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
|
2050
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L240) ios
|
|
2021
2051
|
|
|
2022
2052
|
> def find_ele_by_attr(class_name, attr, value)
|
|
2023
2053
|
|
|
@@ -2039,7 +2069,7 @@ __Returns:__
|
|
|
2039
2069
|
|
|
2040
2070
|
--
|
|
2041
2071
|
|
|
2042
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
|
2072
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L251) ios
|
|
2043
2073
|
|
|
2044
2074
|
> def find_eles_by_attr(class_name, attr, value)
|
|
2045
2075
|
|
|
@@ -2061,7 +2091,7 @@ __Returns:__
|
|
|
2061
2091
|
|
|
2062
2092
|
--
|
|
2063
2093
|
|
|
2064
|
-
##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/
|
|
2094
|
+
##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L272) ios
|
|
2065
2095
|
|
|
2066
2096
|
> def find_ele_by_predicate(class_name: '*', value:)
|
|
2067
2097
|
|
|
@@ -2078,7 +2108,7 @@ __Returns:__
|
|
|
2078
2108
|
|
|
2079
2109
|
--
|
|
2080
2110
|
|
|
2081
|
-
##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/
|
|
2111
|
+
##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L283) ios
|
|
2082
2112
|
|
|
2083
2113
|
> def find_eles_by_predicate(class_name: '*', value:)
|
|
2084
2114
|
|
|
@@ -2097,7 +2127,7 @@ __Returns:__
|
|
|
2097
2127
|
|
|
2098
2128
|
--
|
|
2099
2129
|
|
|
2100
|
-
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
|
2130
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L299) ios
|
|
2101
2131
|
|
|
2102
2132
|
> def find_ele_by_attr_include(class_name, attr, value)
|
|
2103
2133
|
|
|
@@ -2118,7 +2148,7 @@ __Returns:__
|
|
|
2118
2148
|
|
|
2119
2149
|
--
|
|
2120
2150
|
|
|
2121
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
|
2151
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L309) ios
|
|
2122
2152
|
|
|
2123
2153
|
> def find_eles_by_attr_include(class_name, attr, value)
|
|
2124
2154
|
|
|
@@ -2139,7 +2169,7 @@ __Returns:__
|
|
|
2139
2169
|
|
|
2140
2170
|
--
|
|
2141
2171
|
|
|
2142
|
-
##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/
|
|
2172
|
+
##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L317) ios
|
|
2143
2173
|
|
|
2144
2174
|
> def find_ele_by_predicate_include(class_name: '*', value:)
|
|
2145
2175
|
|
|
@@ -2156,7 +2186,7 @@ __Returns:__
|
|
|
2156
2186
|
|
|
2157
2187
|
--
|
|
2158
2188
|
|
|
2159
|
-
##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/
|
|
2189
|
+
##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L328) ios
|
|
2160
2190
|
|
|
2161
2191
|
> def find_eles_by_predicate_include(class_name: '*', value:)
|
|
2162
2192
|
|
|
@@ -2175,7 +2205,7 @@ __Returns:__
|
|
|
2175
2205
|
|
|
2176
2206
|
--
|
|
2177
2207
|
|
|
2178
|
-
##### [first_ele](https://github.com/appium/ruby_lib/blob/
|
|
2208
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L341) ios
|
|
2179
2209
|
|
|
2180
2210
|
> def first_ele(class_name)
|
|
2181
2211
|
|
|
@@ -2191,7 +2221,7 @@ __Returns:__
|
|
|
2191
2221
|
|
|
2192
2222
|
--
|
|
2193
2223
|
|
|
2194
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
|
2224
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L348) ios
|
|
2195
2225
|
|
|
2196
2226
|
> def last_ele(class_name)
|
|
2197
2227
|
|
|
@@ -2207,7 +2237,7 @@ __Returns:__
|
|
|
2207
2237
|
|
|
2208
2238
|
--
|
|
2209
2239
|
|
|
2210
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
|
2240
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L362) ios
|
|
2211
2241
|
|
|
2212
2242
|
> def tag(class_name)
|
|
2213
2243
|
|
|
@@ -2223,7 +2253,7 @@ __Returns:__
|
|
|
2223
2253
|
|
|
2224
2254
|
--
|
|
2225
2255
|
|
|
2226
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
|
2256
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L374) ios
|
|
2227
2257
|
|
|
2228
2258
|
> def tags(class_name)
|
|
2229
2259
|
|
|
@@ -2239,7 +2269,7 @@ __Returns:__
|
|
|
2239
2269
|
|
|
2240
2270
|
--
|
|
2241
2271
|
|
|
2242
|
-
##### [tags_include](https://github.com/appium/ruby_lib/blob/
|
|
2272
|
+
##### [tags_include](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L390) ios
|
|
2243
2273
|
|
|
2244
2274
|
> def tags_include(class_names:, value: nil)
|
|
2245
2275
|
|
|
@@ -2259,7 +2289,7 @@ __Returns:__
|
|
|
2259
2289
|
|
|
2260
2290
|
--
|
|
2261
2291
|
|
|
2262
|
-
##### [tags_exact](https://github.com/appium/ruby_lib/blob/
|
|
2292
|
+
##### [tags_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L419) ios
|
|
2263
2293
|
|
|
2264
2294
|
> def tags_exact(class_names:, value: nil)
|
|
2265
2295
|
|
|
@@ -2279,7 +2309,7 @@ __Returns:__
|
|
|
2279
2309
|
|
|
2280
2310
|
--
|
|
2281
2311
|
|
|
2282
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
|
2312
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L470) ios
|
|
2283
2313
|
|
|
2284
2314
|
> def ele_by_json_visible_contains(element, value)
|
|
2285
2315
|
|
|
@@ -2298,7 +2328,7 @@ __Returns:__
|
|
|
2298
2328
|
|
|
2299
2329
|
--
|
|
2300
2330
|
|
|
2301
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
|
2331
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L479) ios
|
|
2302
2332
|
|
|
2303
2333
|
> def eles_by_json_visible_contains(element, value)
|
|
2304
2334
|
|
|
@@ -2317,7 +2347,7 @@ __Returns:__
|
|
|
2317
2347
|
|
|
2318
2348
|
--
|
|
2319
2349
|
|
|
2320
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
|
2350
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L509) ios
|
|
2321
2351
|
|
|
2322
2352
|
> def ele_by_json_visible_exact(element, value)
|
|
2323
2353
|
|
|
@@ -2336,7 +2366,7 @@ __Returns:__
|
|
|
2336
2366
|
|
|
2337
2367
|
--
|
|
2338
2368
|
|
|
2339
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
|
2369
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L518) ios
|
|
2340
2370
|
|
|
2341
2371
|
> def eles_by_json_visible_exact(element, value)
|
|
2342
2372
|
|
|
@@ -2355,7 +2385,7 @@ __Returns:__
|
|
|
2355
2385
|
|
|
2356
2386
|
--
|
|
2357
2387
|
|
|
2358
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
|
2388
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L527) ios
|
|
2359
2389
|
|
|
2360
2390
|
> def _all_pred(opts)
|
|
2361
2391
|
|
|
@@ -2365,7 +2395,7 @@ visible - if true, only visible elements are returned. default true
|
|
|
2365
2395
|
|
|
2366
2396
|
--
|
|
2367
2397
|
|
|
2368
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
|
2398
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L540) ios
|
|
2369
2399
|
|
|
2370
2400
|
> def ele_with_pred(opts)
|
|
2371
2401
|
|
|
@@ -2381,7 +2411,7 @@ __Returns:__
|
|
|
2381
2411
|
|
|
2382
2412
|
--
|
|
2383
2413
|
|
|
2384
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
|
2414
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L551) ios
|
|
2385
2415
|
|
|
2386
2416
|
> def eles_with_pred(opts)
|
|
2387
2417
|
|
|
@@ -2397,7 +2427,7 @@ __Returns:__
|
|
|
2397
2427
|
|
|
2398
2428
|
--
|
|
2399
2429
|
|
|
2400
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
|
2430
|
+
##### [source](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L557) ios
|
|
2401
2431
|
|
|
2402
2432
|
> def source
|
|
2403
2433
|
|
|
@@ -2409,7 +2439,7 @@ __Returns:__
|
|
|
2409
2439
|
|
|
2410
2440
|
--
|
|
2411
2441
|
|
|
2412
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
|
2442
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L561) ios
|
|
2413
2443
|
|
|
2414
2444
|
> def _validate_object(*objects)
|
|
2415
2445
|
|
|
@@ -2417,7 +2447,7 @@ __Returns:__
|
|
|
2417
2447
|
|
|
2418
2448
|
--
|
|
2419
2449
|
|
|
2420
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
|
2450
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L610) ios
|
|
2421
2451
|
|
|
2422
2452
|
> def _by_json(opts)
|
|
2423
2453
|
|
|
@@ -2452,7 +2482,7 @@ opts = {
|
|
|
2452
2482
|
|
|
2453
2483
|
--
|
|
2454
2484
|
|
|
2455
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
|
2485
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L660) ios
|
|
2456
2486
|
|
|
2457
2487
|
> def eles_by_json(opts)
|
|
2458
2488
|
|
|
@@ -2471,7 +2501,7 @@ eles_by_json({
|
|
|
2471
2501
|
|
|
2472
2502
|
--
|
|
2473
2503
|
|
|
2474
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
|
2504
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L666) ios
|
|
2475
2505
|
|
|
2476
2506
|
> def ele_by_json(opts)
|
|
2477
2507
|
|
|
@@ -2479,7 +2509,7 @@ see eles_by_json
|
|
|
2479
2509
|
|
|
2480
2510
|
--
|
|
2481
2511
|
|
|
2482
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
|
2512
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/helper.rb#L676) ios
|
|
2483
2513
|
|
|
2484
2514
|
> def get_source
|
|
2485
2515
|
|
|
@@ -2492,7 +2522,7 @@ __Returns:__
|
|
|
2492
2522
|
|
|
2493
2523
|
--
|
|
2494
2524
|
|
|
2495
|
-
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/
|
|
2525
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/text.rb#L4) ios
|
|
2496
2526
|
|
|
2497
2527
|
> UIAStaticText = 'UIAStaticText'.freeze
|
|
2498
2528
|
|
|
@@ -2500,7 +2530,7 @@ __Returns:__
|
|
|
2500
2530
|
|
|
2501
2531
|
--
|
|
2502
2532
|
|
|
2503
|
-
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/
|
|
2533
|
+
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/text.rb#L5) ios
|
|
2504
2534
|
|
|
2505
2535
|
> XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze
|
|
2506
2536
|
|
|
@@ -2508,7 +2538,7 @@ __Returns:__
|
|
|
2508
2538
|
|
|
2509
2539
|
--
|
|
2510
2540
|
|
|
2511
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
|
2541
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/text.rb#L8) ios
|
|
2512
2542
|
|
|
2513
2543
|
> def static_text_class
|
|
2514
2544
|
|
|
@@ -2520,7 +2550,7 @@ __Returns:__
|
|
|
2520
2550
|
|
|
2521
2551
|
--
|
|
2522
2552
|
|
|
2523
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
|
2553
|
+
##### [text](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/text.rb#L16) ios
|
|
2524
2554
|
|
|
2525
2555
|
> def text(value)
|
|
2526
2556
|
|
|
@@ -2537,7 +2567,7 @@ __Returns:__
|
|
|
2537
2567
|
|
|
2538
2568
|
--
|
|
2539
2569
|
|
|
2540
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
|
2570
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/text.rb#L30) ios
|
|
2541
2571
|
|
|
2542
2572
|
> def texts(value = false)
|
|
2543
2573
|
|
|
@@ -2554,7 +2584,7 @@ __Returns:__
|
|
|
2554
2584
|
|
|
2555
2585
|
--
|
|
2556
2586
|
|
|
2557
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
|
2587
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/text.rb#L43) ios
|
|
2558
2588
|
|
|
2559
2589
|
> def first_text
|
|
2560
2590
|
|
|
@@ -2566,7 +2596,7 @@ __Returns:__
|
|
|
2566
2596
|
|
|
2567
2597
|
--
|
|
2568
2598
|
|
|
2569
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
|
2599
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/text.rb#L49) ios
|
|
2570
2600
|
|
|
2571
2601
|
> def last_text
|
|
2572
2602
|
|
|
@@ -2578,7 +2608,7 @@ __Returns:__
|
|
|
2578
2608
|
|
|
2579
2609
|
--
|
|
2580
2610
|
|
|
2581
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
|
2611
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/text.rb#L56) ios
|
|
2582
2612
|
|
|
2583
2613
|
> def text_exact(value)
|
|
2584
2614
|
|
|
@@ -2594,7 +2624,7 @@ __Returns:__
|
|
|
2594
2624
|
|
|
2595
2625
|
--
|
|
2596
2626
|
|
|
2597
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
|
2627
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/text.rb#L67) ios
|
|
2598
2628
|
|
|
2599
2629
|
> def texts_exact(value)
|
|
2600
2630
|
|
|
@@ -2610,7 +2640,7 @@ __Returns:__
|
|
|
2610
2640
|
|
|
2611
2641
|
--
|
|
2612
2642
|
|
|
2613
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
|
2643
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/alert.rb#L5) ios
|
|
2614
2644
|
|
|
2615
2645
|
> def alert_accept
|
|
2616
2646
|
|
|
@@ -2622,7 +2652,7 @@ __Returns:__
|
|
|
2622
2652
|
|
|
2623
2653
|
--
|
|
2624
2654
|
|
|
2625
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
|
2655
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/alert.rb#L13) ios
|
|
2626
2656
|
|
|
2627
2657
|
> def alert_dismiss
|
|
2628
2658
|
|
|
@@ -2634,7 +2664,7 @@ __Returns:__
|
|
|
2634
2664
|
|
|
2635
2665
|
--
|
|
2636
2666
|
|
|
2637
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
|
2667
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/button.rb#L4) ios
|
|
2638
2668
|
|
|
2639
2669
|
> UIAButton = 'UIAButton'.freeze
|
|
2640
2670
|
|
|
@@ -2642,7 +2672,7 @@ __Returns:__
|
|
|
2642
2672
|
|
|
2643
2673
|
--
|
|
2644
2674
|
|
|
2645
|
-
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/
|
|
2675
|
+
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/button.rb#L5) ios
|
|
2646
2676
|
|
|
2647
2677
|
> XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze
|
|
2648
2678
|
|
|
@@ -2650,7 +2680,7 @@ __Returns:__
|
|
|
2650
2680
|
|
|
2651
2681
|
--
|
|
2652
2682
|
|
|
2653
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
|
2683
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/button.rb#L8) ios
|
|
2654
2684
|
|
|
2655
2685
|
> def button_class
|
|
2656
2686
|
|
|
@@ -2662,7 +2692,7 @@ __Returns:__
|
|
|
2662
2692
|
|
|
2663
2693
|
--
|
|
2664
2694
|
|
|
2665
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
|
2695
|
+
##### [button](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/button.rb#L16) ios
|
|
2666
2696
|
|
|
2667
2697
|
> def button(value)
|
|
2668
2698
|
|
|
@@ -2679,7 +2709,7 @@ __Returns:__
|
|
|
2679
2709
|
|
|
2680
2710
|
--
|
|
2681
2711
|
|
|
2682
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
|
2712
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/button.rb#L31) ios
|
|
2683
2713
|
|
|
2684
2714
|
> def buttons(value = false)
|
|
2685
2715
|
|
|
@@ -2696,7 +2726,7 @@ __Returns:__
|
|
|
2696
2726
|
|
|
2697
2727
|
--
|
|
2698
2728
|
|
|
2699
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
|
2729
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/button.rb#L44) ios
|
|
2700
2730
|
|
|
2701
2731
|
> def first_button
|
|
2702
2732
|
|
|
@@ -2708,7 +2738,7 @@ __Returns:__
|
|
|
2708
2738
|
|
|
2709
2739
|
--
|
|
2710
2740
|
|
|
2711
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
|
2741
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/button.rb#L52) ios
|
|
2712
2742
|
|
|
2713
2743
|
> def last_button
|
|
2714
2744
|
|
|
@@ -2722,7 +2752,7 @@ __Returns:__
|
|
|
2722
2752
|
|
|
2723
2753
|
--
|
|
2724
2754
|
|
|
2725
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
|
2755
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/button.rb#L59) ios
|
|
2726
2756
|
|
|
2727
2757
|
> def button_exact(value)
|
|
2728
2758
|
|
|
@@ -2738,7 +2768,7 @@ __Returns:__
|
|
|
2738
2768
|
|
|
2739
2769
|
--
|
|
2740
2770
|
|
|
2741
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
|
2771
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/button.rb#L70) ios
|
|
2742
2772
|
|
|
2743
2773
|
> def buttons_exact(value)
|
|
2744
2774
|
|
|
@@ -2754,7 +2784,7 @@ __Returns:__
|
|
|
2754
2784
|
|
|
2755
2785
|
--
|
|
2756
2786
|
|
|
2757
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
|
2787
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/mobile_methods.rb#L32) ios
|
|
2758
2788
|
|
|
2759
2789
|
> def uiautomation_find
|
|
2760
2790
|
|
|
@@ -2766,7 +2796,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
|
2766
2796
|
|
|
2767
2797
|
--
|
|
2768
2798
|
|
|
2769
|
-
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/
|
|
2799
|
+
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/mobile_methods.rb#L32) ios
|
|
2770
2800
|
|
|
2771
2801
|
> def ios_predicate_string_find
|
|
2772
2802
|
|
|
@@ -2780,7 +2810,7 @@ find_element/s can be used with a [Predicates](https://developer.apple.com/libra
|
|
|
2780
2810
|
|
|
2781
2811
|
--
|
|
2782
2812
|
|
|
2783
|
-
##### [ios_class_chain_find](https://github.com/appium/ruby_lib/blob/
|
|
2813
|
+
##### [ios_class_chain_find](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/mobile_methods.rb#L32) ios
|
|
2784
2814
|
|
|
2785
2815
|
> def ios_class_chain_find
|
|
2786
2816
|
|
|
@@ -2798,7 +2828,7 @@ find_element/s can be used with a [class chain]( https://github.com/facebook/Web
|
|
|
2798
2828
|
|
|
2799
2829
|
--
|
|
2800
2830
|
|
|
2801
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
|
2831
|
+
##### [find](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/generic.rb#L6) ios
|
|
2802
2832
|
|
|
2803
2833
|
> def find(value)
|
|
2804
2834
|
|
|
@@ -2814,7 +2844,7 @@ __Returns:__
|
|
|
2814
2844
|
|
|
2815
2845
|
--
|
|
2816
2846
|
|
|
2817
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
|
2847
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/generic.rb#L17) ios
|
|
2818
2848
|
|
|
2819
2849
|
> def finds(value)
|
|
2820
2850
|
|
|
@@ -2830,7 +2860,7 @@ __Returns:__
|
|
|
2830
2860
|
|
|
2831
2861
|
--
|
|
2832
2862
|
|
|
2833
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
|
2863
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/generic.rb#L29) ios
|
|
2834
2864
|
|
|
2835
2865
|
> def find_exact(value)
|
|
2836
2866
|
|
|
@@ -2846,7 +2876,7 @@ __Returns:__
|
|
|
2846
2876
|
|
|
2847
2877
|
--
|
|
2848
2878
|
|
|
2849
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
|
2879
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/generic.rb#L40) ios
|
|
2850
2880
|
|
|
2851
2881
|
> def finds_exact(value)
|
|
2852
2882
|
|
|
@@ -2862,7 +2892,7 @@ __Returns:__
|
|
|
2862
2892
|
|
|
2863
2893
|
--
|
|
2864
2894
|
|
|
2865
|
-
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/
|
|
2895
|
+
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/generic.rb#L51) ios
|
|
2866
2896
|
|
|
2867
2897
|
> def raise_error_if_no_element(element)
|
|
2868
2898
|
|
|
@@ -2870,7 +2900,7 @@ __Returns:__
|
|
|
2870
2900
|
|
|
2871
2901
|
--
|
|
2872
2902
|
|
|
2873
|
-
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/
|
|
2903
|
+
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/generic.rb#L58) ios
|
|
2874
2904
|
|
|
2875
2905
|
> def select_visible_elements(elements)
|
|
2876
2906
|
|
|
@@ -2878,7 +2908,7 @@ Return visible elements.
|
|
|
2878
2908
|
|
|
2879
2909
|
--
|
|
2880
2910
|
|
|
2881
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
|
2911
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
|
2882
2912
|
|
|
2883
2913
|
> UIATextField = 'UIATextField'.freeze
|
|
2884
2914
|
|
|
@@ -2886,7 +2916,7 @@ Return visible elements.
|
|
|
2886
2916
|
|
|
2887
2917
|
--
|
|
2888
2918
|
|
|
2889
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
|
2919
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
|
2890
2920
|
|
|
2891
2921
|
> UIASecureTextField = 'UIASecureTextField'.freeze
|
|
2892
2922
|
|
|
@@ -2894,7 +2924,7 @@ Return visible elements.
|
|
|
2894
2924
|
|
|
2895
2925
|
--
|
|
2896
2926
|
|
|
2897
|
-
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/
|
|
2927
|
+
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L6) ios
|
|
2898
2928
|
|
|
2899
2929
|
> XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze
|
|
2900
2930
|
|
|
@@ -2902,7 +2932,7 @@ Return visible elements.
|
|
|
2902
2932
|
|
|
2903
2933
|
--
|
|
2904
2934
|
|
|
2905
|
-
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/
|
|
2935
|
+
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L7) ios
|
|
2906
2936
|
|
|
2907
2937
|
> XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze
|
|
2908
2938
|
|
|
@@ -2910,7 +2940,7 @@ Return visible elements.
|
|
|
2910
2940
|
|
|
2911
2941
|
--
|
|
2912
2942
|
|
|
2913
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
|
2943
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
|
2914
2944
|
|
|
2915
2945
|
> def text_field_class
|
|
2916
2946
|
|
|
@@ -2922,7 +2952,7 @@ __Returns:__
|
|
|
2922
2952
|
|
|
2923
2953
|
--
|
|
2924
2954
|
|
|
2925
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
|
2955
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L15) ios
|
|
2926
2956
|
|
|
2927
2957
|
> def secure_text_field_class
|
|
2928
2958
|
|
|
@@ -2934,7 +2964,7 @@ __Returns:__
|
|
|
2934
2964
|
|
|
2935
2965
|
--
|
|
2936
2966
|
|
|
2937
|
-
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/
|
|
2967
|
+
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L35) ios
|
|
2938
2968
|
|
|
2939
2969
|
> def _textfield_visible
|
|
2940
2970
|
|
|
@@ -2942,7 +2972,7 @@ Appium
|
|
|
2942
2972
|
|
|
2943
2973
|
--
|
|
2944
2974
|
|
|
2945
|
-
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/
|
|
2975
|
+
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L40) ios
|
|
2946
2976
|
|
|
2947
2977
|
> def _textfield_exact_string(value)
|
|
2948
2978
|
|
|
@@ -2950,7 +2980,7 @@ Appium
|
|
|
2950
2980
|
|
|
2951
2981
|
--
|
|
2952
2982
|
|
|
2953
|
-
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/
|
|
2983
|
+
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L47) ios
|
|
2954
2984
|
|
|
2955
2985
|
> def _textfield_contains_string(value)
|
|
2956
2986
|
|
|
@@ -2958,7 +2988,7 @@ Appium
|
|
|
2958
2988
|
|
|
2959
2989
|
--
|
|
2960
2990
|
|
|
2961
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
|
2991
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L60) ios
|
|
2962
2992
|
|
|
2963
2993
|
> def textfield(value)
|
|
2964
2994
|
|
|
@@ -2976,7 +3006,7 @@ __Returns:__
|
|
|
2976
3006
|
|
|
2977
3007
|
--
|
|
2978
3008
|
|
|
2979
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
|
3009
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L86) ios
|
|
2980
3010
|
|
|
2981
3011
|
> def textfields(value = false)
|
|
2982
3012
|
|
|
@@ -2993,7 +3023,7 @@ __Returns:__
|
|
|
2993
3023
|
|
|
2994
3024
|
--
|
|
2995
3025
|
|
|
2996
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
|
3026
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L100) ios
|
|
2997
3027
|
|
|
2998
3028
|
> def first_textfield
|
|
2999
3029
|
|
|
@@ -3005,7 +3035,7 @@ __Returns:__
|
|
|
3005
3035
|
|
|
3006
3036
|
--
|
|
3007
3037
|
|
|
3008
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
|
3038
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L110) ios
|
|
3009
3039
|
|
|
3010
3040
|
> def last_textfield
|
|
3011
3041
|
|
|
@@ -3017,7 +3047,7 @@ __Returns:__
|
|
|
3017
3047
|
|
|
3018
3048
|
--
|
|
3019
3049
|
|
|
3020
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
|
3050
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L123) ios
|
|
3021
3051
|
|
|
3022
3052
|
> def textfield_exact(value)
|
|
3023
3053
|
|
|
@@ -3033,7 +3063,7 @@ __Returns:__
|
|
|
3033
3063
|
|
|
3034
3064
|
--
|
|
3035
3065
|
|
|
3036
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
|
3066
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/element/textfield.rb#L134) ios
|
|
3037
3067
|
|
|
3038
3068
|
> def textfields_exact(value)
|
|
3039
3069
|
|
|
@@ -3049,7 +3079,7 @@ __Returns:__
|
|
|
3049
3079
|
|
|
3050
3080
|
--
|
|
3051
3081
|
|
|
3052
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
|
3082
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/xcuitest_gestures.rb#L10) ios
|
|
3053
3083
|
|
|
3054
3084
|
> def swipe(direction:, element: nil)
|
|
3055
3085
|
|
|
@@ -3063,7 +3093,7 @@ __Parameters:__
|
|
|
3063
3093
|
|
|
3064
3094
|
--
|
|
3065
3095
|
|
|
3066
|
-
##### [scroll](https://github.com/appium/ruby_lib/blob/
|
|
3096
|
+
##### [scroll](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/xcuitest_gestures.rb#L30) ios
|
|
3067
3097
|
|
|
3068
3098
|
> def scroll(direction:, name: nil, element: nil, to_visible: nil, predicate_string: nil)
|
|
3069
3099
|
|
|
@@ -3077,7 +3107,7 @@ __Parameters:__
|
|
|
3077
3107
|
|
|
3078
3108
|
--
|
|
3079
3109
|
|
|
3080
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
|
3110
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/xcuitest_gestures.rb#L49) ios
|
|
3081
3111
|
|
|
3082
3112
|
> def pinch(scale:, velocity: 1.0, element: nil)
|
|
3083
3113
|
|
|
@@ -3093,7 +3123,7 @@ __Parameters:__
|
|
|
3093
3123
|
|
|
3094
3124
|
--
|
|
3095
3125
|
|
|
3096
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
|
3126
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/xcuitest_gestures.rb#L66) ios
|
|
3097
3127
|
|
|
3098
3128
|
> def double_tap(x: nil, y: nil, element: nil)
|
|
3099
3129
|
|
|
@@ -3109,7 +3139,7 @@ __Parameters:__
|
|
|
3109
3139
|
|
|
3110
3140
|
--
|
|
3111
3141
|
|
|
3112
|
-
##### [touch_and_hold](https://github.com/appium/ruby_lib/blob/
|
|
3142
|
+
##### [touch_and_hold](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/xcuitest_gestures.rb#L84) ios
|
|
3113
3143
|
|
|
3114
3144
|
> def touch_and_hold(x: nil, y: nil, element: nil, duration: 1.0)
|
|
3115
3145
|
|
|
@@ -3127,7 +3157,7 @@ __Parameters:__
|
|
|
3127
3157
|
|
|
3128
3158
|
--
|
|
3129
3159
|
|
|
3130
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
|
3160
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/xcuitest_gestures.rb#L98) ios
|
|
3131
3161
|
|
|
3132
3162
|
> def two_finger_tap(element:)
|
|
3133
3163
|
|
|
@@ -3143,7 +3173,7 @@ two_finger_tap element: find_element(:accessibility_id, "some item")
|
|
|
3143
3173
|
|
|
3144
3174
|
--
|
|
3145
3175
|
|
|
3146
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
|
3176
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/xcuitest_gestures.rb#L115) ios
|
|
3147
3177
|
|
|
3148
3178
|
> def tap(x:, y:, element: nil)
|
|
3149
3179
|
|
|
@@ -3159,7 +3189,7 @@ __Parameters:__
|
|
|
3159
3189
|
|
|
3160
3190
|
--
|
|
3161
3191
|
|
|
3162
|
-
##### [drag_from_to_for_duration](https://github.com/appium/ruby_lib/blob/
|
|
3192
|
+
##### [drag_from_to_for_duration](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/xcuitest_gestures.rb#L137) ios
|
|
3163
3193
|
|
|
3164
3194
|
> def drag_from_to_for_duration(from_x:, from_y:, to_x:, to_y:, duration: 1.0, element: nil)
|
|
3165
3195
|
|
|
@@ -3182,7 +3212,7 @@ drag point should be before to start dragging. Mandatory parameter
|
|
|
3182
3212
|
|
|
3183
3213
|
--
|
|
3184
3214
|
|
|
3185
|
-
##### [select_picker_wheel](https://github.com/appium/ruby_lib/blob/
|
|
3215
|
+
##### [select_picker_wheel](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/xcuitest_gestures.rb#L156) ios
|
|
3186
3216
|
|
|
3187
3217
|
> def select_picker_wheel(element:, order:, offset: nil)
|
|
3188
3218
|
|
|
@@ -3199,7 +3229,7 @@ __Parameters:__
|
|
|
3199
3229
|
|
|
3200
3230
|
--
|
|
3201
3231
|
|
|
3202
|
-
##### [alert](https://github.com/appium/ruby_lib/blob/
|
|
3232
|
+
##### [alert](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/ios/xcuitest_gestures.rb#L175) ios
|
|
3203
3233
|
|
|
3204
3234
|
> def alert(action:, button_label: nil)
|
|
3205
3235
|
|
|
@@ -3214,7 +3244,7 @@ This is an optional parameter and is only valid in combination with accept and d
|
|
|
3214
3244
|
|
|
3215
3245
|
--
|
|
3216
3246
|
|
|
3217
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
|
3247
|
+
##### [value](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/patch.rb#L12)
|
|
3218
3248
|
|
|
3219
3249
|
> def value
|
|
3220
3250
|
|
|
@@ -3224,7 +3254,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
|
3224
3254
|
|
|
3225
3255
|
--
|
|
3226
3256
|
|
|
3227
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
|
3257
|
+
##### [name](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/patch.rb#L19)
|
|
3228
3258
|
|
|
3229
3259
|
> def name
|
|
3230
3260
|
|
|
@@ -3234,7 +3264,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
|
3234
3264
|
|
|
3235
3265
|
--
|
|
3236
3266
|
|
|
3237
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
|
3267
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/patch.rb#L31)
|
|
3238
3268
|
|
|
3239
3269
|
> def location_rel
|
|
3240
3270
|
|
|
@@ -3252,7 +3282,7 @@ __Returns:__
|
|
|
3252
3282
|
|
|
3253
3283
|
--
|
|
3254
3284
|
|
|
3255
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
|
3285
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/patch.rb#L152)
|
|
3256
3286
|
|
|
3257
3287
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
|
3258
3288
|
|
|
@@ -3260,7 +3290,7 @@ __Returns:__
|
|
|
3260
3290
|
|
|
3261
3291
|
--
|
|
3262
3292
|
|
|
3263
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
|
3293
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/de5bded7cb9511d1cabfb22f7cf47fe1ee526805/lib/appium_lib/common/patch.rb#L155)
|
|
3264
3294
|
|
|
3265
3295
|
> def patch_remote_driver_commands
|
|
3266
3296
|
|