appium_lib 9.3.3 → 9.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +2 -0
- data/CHANGELOG.md +13 -0
- data/appium_lib.gemspec +1 -2
- data/docs/android_docs.md +247 -239
- data/docs/android_uiautomator.md +7 -0
- data/docs/ios_docs.md +333 -269
- data/docs/ios_xcuitest.md +18 -4
- data/ios_tests/lib/ios/specs/common/helper.rb +29 -1
- data/ios_tests/lib/ios/specs/device/device.rb +5 -0
- data/ios_tests/lib/ios/specs/ios/element/textfield.rb +6 -3
- data/ios_tests/lib/ios/specs/ios/helper.rb +14 -5
- data/lib/appium_lib/common/version.rb +2 -2
- data/lib/appium_lib/device/device.rb +15 -3
- data/lib/appium_lib/driver.rb +3 -3
- data/lib/appium_lib/ios/element/button.rb +4 -4
- data/lib/appium_lib/ios/element/generic.rb +2 -30
- data/lib/appium_lib/ios/element/text.rb +4 -4
- data/lib/appium_lib/ios/element/textfield.rb +12 -17
- data/lib/appium_lib/ios/helper.rb +78 -10
- data/release_notes.md +6 -0
- metadata +6 -25
@@ -0,0 +1,7 @@
|
|
1
|
+
# Help debugging
|
2
|
+
|
3
|
+
- `adb shell uiautomator events`
|
4
|
+
- Prints out accessibility events to the console until the connection to the device is terminated
|
5
|
+
- [URL](https://stuff.mit.edu/afs/sipb/project/android/docs/tools/help/uiautomator/index.html)
|
6
|
+
- **notice**
|
7
|
+
- If Appium is started then it terminates the other `uiautomator` processes
|
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/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L75)
|
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/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L111)
|
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/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L117)
|
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/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L149)
|
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/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L170)
|
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/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L223)
|
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/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L258)
|
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/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L276)
|
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/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L276)
|
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/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L278)
|
173
173
|
|
174
174
|
> def caps
|
175
175
|
|
@@ -177,7 +177,7 @@ Selenium webdriver capabilities
|
|
177
177
|
|
178
178
|
--
|
179
179
|
|
180
|
-
##### [caps=](https://github.com/appium/ruby_lib/blob/
|
180
|
+
##### [caps=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L278)
|
181
181
|
|
182
182
|
> def caps=(value)
|
183
183
|
|
@@ -185,7 +185,7 @@ Selenium webdriver capabilities
|
|
185
185
|
|
186
186
|
--
|
187
187
|
|
188
|
-
##### [custom_url](https://github.com/appium/ruby_lib/blob/
|
188
|
+
##### [custom_url](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L280)
|
189
189
|
|
190
190
|
> def custom_url
|
191
191
|
|
@@ -193,7 +193,7 @@ Custom URL for the selenium server
|
|
193
193
|
|
194
194
|
--
|
195
195
|
|
196
|
-
##### [custom_url=](https://github.com/appium/ruby_lib/blob/
|
196
|
+
##### [custom_url=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L280)
|
197
197
|
|
198
198
|
> def custom_url=(value)
|
199
199
|
|
@@ -201,7 +201,7 @@ Custom URL for the selenium server
|
|
201
201
|
|
202
202
|
--
|
203
203
|
|
204
|
-
##### [export_session](https://github.com/appium/ruby_lib/blob/
|
204
|
+
##### [export_session](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L282)
|
205
205
|
|
206
206
|
> def export_session
|
207
207
|
|
@@ -209,7 +209,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
209
209
|
|
210
210
|
--
|
211
211
|
|
212
|
-
##### [export_session=](https://github.com/appium/ruby_lib/blob/
|
212
|
+
##### [export_session=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L282)
|
213
213
|
|
214
214
|
> def export_session=(value)
|
215
215
|
|
@@ -217,7 +217,7 @@ Export session id to textfile in /tmp for 3rd party tools
|
|
217
217
|
|
218
218
|
--
|
219
219
|
|
220
|
-
##### [default_wait](https://github.com/appium/ruby_lib/blob/
|
220
|
+
##### [default_wait](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L287)
|
221
221
|
|
222
222
|
> def default_wait
|
223
223
|
|
@@ -231,7 +231,7 @@ __Returns:__
|
|
231
231
|
|
232
232
|
--
|
233
233
|
|
234
|
-
##### [sauce_username](https://github.com/appium/ruby_lib/blob/
|
234
|
+
##### [sauce_username](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L289)
|
235
235
|
|
236
236
|
> def sauce_username
|
237
237
|
|
@@ -239,7 +239,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
239
239
|
|
240
240
|
--
|
241
241
|
|
242
|
-
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/
|
242
|
+
##### [sauce_username=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L289)
|
243
243
|
|
244
244
|
> def sauce_username=(value)
|
245
245
|
|
@@ -247,7 +247,7 @@ Username for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_US
|
|
247
247
|
|
248
248
|
--
|
249
249
|
|
250
|
-
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/
|
250
|
+
##### [sauce_access_key](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L291)
|
251
251
|
|
252
252
|
> def sauce_access_key
|
253
253
|
|
@@ -255,7 +255,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
255
255
|
|
256
256
|
--
|
257
257
|
|
258
|
-
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/
|
258
|
+
##### [sauce_access_key=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L291)
|
259
259
|
|
260
260
|
> def sauce_access_key=(value)
|
261
261
|
|
@@ -263,7 +263,7 @@ Access Key for use on Sauce Labs. Set `false` to disable Sauce, even when SAUCE_
|
|
263
263
|
|
264
264
|
--
|
265
265
|
|
266
|
-
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/
|
266
|
+
##### [sauce_endpoint](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L293)
|
267
267
|
|
268
268
|
> def sauce_endpoint
|
269
269
|
|
@@ -271,7 +271,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
271
271
|
|
272
272
|
--
|
273
273
|
|
274
|
-
##### [sauce_endpoint=](https://github.com/appium/ruby_lib/blob/
|
274
|
+
##### [sauce_endpoint=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L293)
|
275
275
|
|
276
276
|
> def sauce_endpoint=(value)
|
277
277
|
|
@@ -279,7 +279,7 @@ Override the Sauce Appium endpoint to allow e.g. TestObject tests
|
|
279
279
|
|
280
280
|
--
|
281
281
|
|
282
|
-
##### [appium_port](https://github.com/appium/ruby_lib/blob/
|
282
|
+
##### [appium_port](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L295)
|
283
283
|
|
284
284
|
> def appium_port
|
285
285
|
|
@@ -287,7 +287,7 @@ Appium's server port
|
|
287
287
|
|
288
288
|
--
|
289
289
|
|
290
|
-
##### [appium_port=](https://github.com/appium/ruby_lib/blob/
|
290
|
+
##### [appium_port=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L295)
|
291
291
|
|
292
292
|
> def appium_port=(value)
|
293
293
|
|
@@ -295,7 +295,7 @@ Appium's server port
|
|
295
295
|
|
296
296
|
--
|
297
297
|
|
298
|
-
##### [appium_device](https://github.com/appium/ruby_lib/blob/
|
298
|
+
##### [appium_device](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L297)
|
299
299
|
|
300
300
|
> def appium_device
|
301
301
|
|
@@ -303,7 +303,7 @@ Device type to request from the appium server
|
|
303
303
|
|
304
304
|
--
|
305
305
|
|
306
|
-
##### [appium_device=](https://github.com/appium/ruby_lib/blob/
|
306
|
+
##### [appium_device=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L297)
|
307
307
|
|
308
308
|
> def appium_device=(value)
|
309
309
|
|
@@ -311,7 +311,7 @@ Device type to request from the appium server
|
|
311
311
|
|
312
312
|
--
|
313
313
|
|
314
|
-
##### [automation_name](https://github.com/appium/ruby_lib/blob/
|
314
|
+
##### [automation_name](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L300)
|
315
315
|
|
316
316
|
> def automation_name
|
317
317
|
|
@@ -320,28 +320,15 @@ If automation_name is nil, it is not set both client side and server side.
|
|
320
320
|
|
321
321
|
--
|
322
322
|
|
323
|
-
##### [
|
323
|
+
##### [appium_server_status](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L302)
|
324
324
|
|
325
|
-
> def
|
326
|
-
|
327
|
-
Returns the server's version info
|
328
|
-
|
329
|
-
```ruby
|
330
|
-
{
|
331
|
-
"build" => {
|
332
|
-
"version" => "0.18.1",
|
333
|
-
"revision" => "d242ebcfd92046a974347ccc3a28f0e898595198"
|
334
|
-
}
|
335
|
-
}
|
336
|
-
```
|
337
|
-
|
338
|
-
__Returns:__
|
325
|
+
> def appium_server_status
|
339
326
|
|
340
|
-
|
327
|
+
Appium's server version
|
341
328
|
|
342
329
|
--
|
343
330
|
|
344
|
-
##### [appium_debug](https://github.com/appium/ruby_lib/blob/
|
331
|
+
##### [appium_debug](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L304)
|
345
332
|
|
346
333
|
> def appium_debug
|
347
334
|
|
@@ -349,7 +336,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
349
336
|
|
350
337
|
--
|
351
338
|
|
352
|
-
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/
|
339
|
+
##### [appium_debug=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L304)
|
353
340
|
|
354
341
|
> def appium_debug=(value)
|
355
342
|
|
@@ -357,7 +344,7 @@ Boolean debug mode for the Appium Ruby bindings
|
|
357
344
|
|
358
345
|
--
|
359
346
|
|
360
|
-
##### [listener](https://github.com/appium/ruby_lib/blob/
|
347
|
+
##### [listener](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L306)
|
361
348
|
|
362
349
|
> def listener
|
363
350
|
|
@@ -365,7 +352,7 @@ instance of AbstractEventListener for logging support
|
|
365
352
|
|
366
353
|
--
|
367
354
|
|
368
|
-
##### [listener=](https://github.com/appium/ruby_lib/blob/
|
355
|
+
##### [listener=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L306)
|
369
356
|
|
370
357
|
> def listener=(value)
|
371
358
|
|
@@ -373,7 +360,7 @@ instance of AbstractEventListener for logging support
|
|
373
360
|
|
374
361
|
--
|
375
362
|
|
376
|
-
##### [driver](https://github.com/appium/ruby_lib/blob/
|
363
|
+
##### [driver](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L309)
|
377
364
|
|
378
365
|
> def driver
|
379
366
|
|
@@ -385,7 +372,7 @@ __Returns:__
|
|
385
372
|
|
386
373
|
--
|
387
374
|
|
388
|
-
##### [http_client](https://github.com/appium/ruby_lib/blob/
|
375
|
+
##### [http_client](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L312)
|
389
376
|
|
390
377
|
> def http_client
|
391
378
|
|
@@ -397,7 +384,7 @@ __Returns:__
|
|
397
384
|
|
398
385
|
--
|
399
386
|
|
400
|
-
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/
|
387
|
+
##### [appium_wait_timeout](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L317)
|
401
388
|
|
402
389
|
> def appium_wait_timeout
|
403
390
|
|
@@ -411,7 +398,7 @@ __Returns:__
|
|
411
398
|
|
412
399
|
--
|
413
400
|
|
414
|
-
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/
|
401
|
+
##### [appium_wait_interval](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L322)
|
415
402
|
|
416
403
|
> def appium_wait_interval
|
417
404
|
|
@@ -425,7 +412,7 @@ __Returns:__
|
|
425
412
|
|
426
413
|
--
|
427
414
|
|
428
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
415
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L362)
|
429
416
|
|
430
417
|
> def initialize(opts = {})
|
431
418
|
|
@@ -441,7 +428,7 @@ __Returns:__
|
|
441
428
|
|
442
429
|
--
|
443
430
|
|
444
|
-
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/
|
431
|
+
##### [driver_attributes](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L440)
|
445
432
|
|
446
433
|
> def driver_attributes
|
447
434
|
|
@@ -449,7 +436,7 @@ Returns a hash of the driver attributes
|
|
449
436
|
|
450
437
|
--
|
451
438
|
|
452
|
-
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/
|
439
|
+
##### [device_is_android?](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L465)
|
453
440
|
|
454
441
|
> def device_is_android?
|
455
442
|
|
@@ -461,7 +448,7 @@ __Returns:__
|
|
461
448
|
|
462
449
|
--
|
463
450
|
|
464
|
-
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/
|
451
|
+
##### [automation_name_is_xcuitest?](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L471)
|
465
452
|
|
466
453
|
> def automation_name_is_xcuitest?
|
467
454
|
|
@@ -473,7 +460,7 @@ __Returns:__
|
|
473
460
|
|
474
461
|
--
|
475
462
|
|
476
|
-
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/
|
463
|
+
##### [check_server_version_xcuitest](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L478)
|
477
464
|
|
478
465
|
> def check_server_version_xcuitest
|
479
466
|
|
@@ -486,7 +473,28 @@ __Returns:__
|
|
486
473
|
|
487
474
|
--
|
488
475
|
|
489
|
-
##### [
|
476
|
+
##### [appium_server_version](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L497)
|
477
|
+
|
478
|
+
> def appium_server_version
|
479
|
+
|
480
|
+
Returns the server's version info
|
481
|
+
|
482
|
+
```ruby
|
483
|
+
{
|
484
|
+
"build" => {
|
485
|
+
"version" => "0.18.1",
|
486
|
+
"revision" => "d242ebcfd92046a974347ccc3a28f0e898595198"
|
487
|
+
}
|
488
|
+
}
|
489
|
+
```
|
490
|
+
|
491
|
+
__Returns:__
|
492
|
+
|
493
|
+
[Hash]
|
494
|
+
|
495
|
+
--
|
496
|
+
|
497
|
+
##### [appium_client_version](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L510)
|
490
498
|
|
491
499
|
> def appium_client_version
|
492
500
|
|
@@ -504,7 +512,7 @@ __Returns:__
|
|
504
512
|
|
505
513
|
--
|
506
514
|
|
507
|
-
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/
|
515
|
+
##### [absolute_app_path](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L522)
|
508
516
|
|
509
517
|
> def self.absolute_app_path(opts)
|
510
518
|
|
@@ -521,7 +529,7 @@ __Returns:__
|
|
521
529
|
|
522
530
|
--
|
523
531
|
|
524
|
-
##### [server_url](https://github.com/appium/ruby_lib/blob/
|
532
|
+
##### [server_url](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L555)
|
525
533
|
|
526
534
|
> def server_url
|
527
535
|
|
@@ -533,7 +541,7 @@ __Returns:__
|
|
533
541
|
|
534
542
|
--
|
535
543
|
|
536
|
-
##### [restart](https://github.com/appium/ruby_lib/blob/
|
544
|
+
##### [restart](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L566)
|
537
545
|
|
538
546
|
> def restart
|
539
547
|
|
@@ -545,7 +553,7 @@ __Returns:__
|
|
545
553
|
|
546
554
|
--
|
547
555
|
|
548
|
-
##### [screenshot](https://github.com/appium/ruby_lib/blob/
|
556
|
+
##### [screenshot](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L577)
|
549
557
|
|
550
558
|
> def screenshot(png_save_path)
|
551
559
|
|
@@ -563,7 +571,7 @@ __Returns:__
|
|
563
571
|
|
564
572
|
--
|
565
573
|
|
566
|
-
##### [driver_quit](https://github.com/appium/ruby_lib/blob/
|
574
|
+
##### [driver_quit](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L584)
|
567
575
|
|
568
576
|
> def driver_quit
|
569
577
|
|
@@ -575,7 +583,7 @@ __Returns:__
|
|
575
583
|
|
576
584
|
--
|
577
585
|
|
578
|
-
##### [start_driver](https://github.com/appium/ruby_lib/blob/
|
586
|
+
##### [start_driver](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L594)
|
579
587
|
|
580
588
|
> def start_driver
|
581
589
|
|
@@ -587,7 +595,7 @@ __Returns:__
|
|
587
595
|
|
588
596
|
--
|
589
597
|
|
590
|
-
##### [no_wait](https://github.com/appium/ruby_lib/blob/
|
598
|
+
##### [no_wait](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L632)
|
591
599
|
|
592
600
|
> def no_wait
|
593
601
|
|
@@ -595,7 +603,7 @@ Set implicit wait to zero.
|
|
595
603
|
|
596
604
|
--
|
597
605
|
|
598
|
-
##### [set_wait](https://github.com/appium/ruby_lib/blob/
|
606
|
+
##### [set_wait](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L646)
|
599
607
|
|
600
608
|
> def set_wait(timeout = nil)
|
601
609
|
|
@@ -617,7 +625,7 @@ __Returns:__
|
|
617
625
|
|
618
626
|
--
|
619
627
|
|
620
|
-
##### [exists](https://github.com/appium/ruby_lib/blob/
|
628
|
+
##### [exists](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L663)
|
621
629
|
|
622
630
|
> def exists(pre_check = 0, post_check = @default_wait)
|
623
631
|
|
@@ -641,7 +649,7 @@ __Returns:__
|
|
641
649
|
|
642
650
|
--
|
643
651
|
|
644
|
-
##### [execute_script](https://github.com/appium/ruby_lib/blob/
|
652
|
+
##### [execute_script](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L687)
|
645
653
|
|
646
654
|
> def execute_script(script, *args)
|
647
655
|
|
@@ -659,7 +667,7 @@ __Returns:__
|
|
659
667
|
|
660
668
|
--
|
661
669
|
|
662
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
670
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L695)
|
663
671
|
|
664
672
|
> def find_elements(*args)
|
665
673
|
|
@@ -675,7 +683,7 @@ __Returns:__
|
|
675
683
|
|
676
684
|
--
|
677
685
|
|
678
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
686
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L703)
|
679
687
|
|
680
688
|
> def find_element(*args)
|
681
689
|
|
@@ -691,7 +699,7 @@ __Returns:__
|
|
691
699
|
|
692
700
|
--
|
693
701
|
|
694
|
-
##### [set_location](https://github.com/appium/ruby_lib/blob/
|
702
|
+
##### [set_location](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L716)
|
695
703
|
|
696
704
|
> def set_location(opts = {})
|
697
705
|
|
@@ -707,7 +715,7 @@ __Returns:__
|
|
707
715
|
|
708
716
|
--
|
709
717
|
|
710
|
-
##### [x](https://github.com/appium/ruby_lib/blob/
|
718
|
+
##### [x](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L726)
|
711
719
|
|
712
720
|
> def x
|
713
721
|
|
@@ -720,7 +728,7 @@ __Returns:__
|
|
720
728
|
|
721
729
|
--
|
722
730
|
|
723
|
-
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/
|
731
|
+
##### [set_automation_name_if_nil](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/driver.rb#L735)
|
724
732
|
|
725
733
|
> def set_automation_name_if_nil
|
726
734
|
|
@@ -729,7 +737,7 @@ Since @automation_name is set only client side before start_driver is called.
|
|
729
737
|
|
730
738
|
--
|
731
739
|
|
732
|
-
##### [logger=](https://github.com/appium/ruby_lib/blob/
|
740
|
+
##### [logger=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/logger.rb#L13)
|
733
741
|
|
734
742
|
> def logger=(value)
|
735
743
|
|
@@ -741,7 +749,7 @@ __Parameters:__
|
|
741
749
|
|
742
750
|
--
|
743
751
|
|
744
|
-
##### [logger](https://github.com/appium/ruby_lib/blob/
|
752
|
+
##### [logger](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/logger.rb#L17)
|
745
753
|
|
746
754
|
> def logger
|
747
755
|
|
@@ -749,7 +757,7 @@ __Parameters:__
|
|
749
757
|
|
750
758
|
--
|
751
759
|
|
752
|
-
##### [app_strings](https://github.com/appium/ruby_lib/blob/
|
760
|
+
##### [app_strings](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L7)
|
753
761
|
|
754
762
|
> def app_strings
|
755
763
|
|
@@ -760,7 +768,7 @@ app_strings #=> "TransitionsTitle"=>"Transitions", "WebTitle"=>"Web"
|
|
760
768
|
|
761
769
|
--
|
762
770
|
|
763
|
-
##### [background_app](https://github.com/appium/ruby_lib/blob/
|
771
|
+
##### [background_app](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L13)
|
764
772
|
|
765
773
|
> def background_app
|
766
774
|
|
@@ -769,7 +777,7 @@ This is a blocking application
|
|
769
777
|
|
770
778
|
--
|
771
779
|
|
772
|
-
##### [current_activity](https://github.com/appium/ruby_lib/blob/
|
780
|
+
##### [current_activity](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L24)
|
773
781
|
|
774
782
|
> def current_activity
|
775
783
|
|
@@ -777,7 +785,7 @@ This is a blocking application
|
|
777
785
|
|
778
786
|
--
|
779
787
|
|
780
|
-
##### [launch_app](https://github.com/appium/ruby_lib/blob/
|
788
|
+
##### [launch_app](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L26)
|
781
789
|
|
782
790
|
> def launch_app
|
783
791
|
|
@@ -785,7 +793,7 @@ Start the simulator and application configured with desired capabilities
|
|
785
793
|
|
786
794
|
--
|
787
795
|
|
788
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
796
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L29)
|
789
797
|
|
790
798
|
> def reset
|
791
799
|
|
@@ -793,7 +801,7 @@ Reset the device, relaunching the application.
|
|
793
801
|
|
794
802
|
--
|
795
803
|
|
796
|
-
##### [shake](https://github.com/appium/ruby_lib/blob/
|
804
|
+
##### [shake](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L32)
|
797
805
|
|
798
806
|
> def shake
|
799
807
|
|
@@ -801,7 +809,7 @@ Cause the device to shake
|
|
801
809
|
|
802
810
|
--
|
803
811
|
|
804
|
-
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/
|
812
|
+
##### [toggle_flight_mode](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L35)
|
805
813
|
|
806
814
|
> def toggle_flight_mode
|
807
815
|
|
@@ -809,7 +817,7 @@ Toggle flight mode on or off
|
|
809
817
|
|
810
818
|
--
|
811
819
|
|
812
|
-
##### [device_locked?](https://github.com/appium/ruby_lib/blob/
|
820
|
+
##### [device_locked?](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L38)
|
813
821
|
|
814
822
|
> def device_locked?
|
815
823
|
|
@@ -817,7 +825,7 @@ Toggle flight mode on or off
|
|
817
825
|
|
818
826
|
--
|
819
827
|
|
820
|
-
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/
|
828
|
+
##### [hide_keyboard](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L40)
|
821
829
|
|
822
830
|
> def hide_keyboard
|
823
831
|
|
@@ -830,7 +838,7 @@ Defaults to 'Done'.
|
|
830
838
|
|
831
839
|
--
|
832
840
|
|
833
|
-
##### [press_keycode](https://github.com/appium/ruby_lib/blob/
|
841
|
+
##### [press_keycode](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L49)
|
834
842
|
|
835
843
|
> def press_keycode
|
836
844
|
|
@@ -845,7 +853,7 @@ __Parameters:__
|
|
845
853
|
|
846
854
|
--
|
847
855
|
|
848
|
-
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/
|
856
|
+
##### [long_press_keycode](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L55)
|
849
857
|
|
850
858
|
> def long_press_keycode
|
851
859
|
|
@@ -860,7 +868,7 @@ __Parameters:__
|
|
860
868
|
|
861
869
|
--
|
862
870
|
|
863
|
-
##### [push_file](https://github.com/appium/ruby_lib/blob/
|
871
|
+
##### [push_file](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L61)
|
864
872
|
|
865
873
|
> def push_file
|
866
874
|
|
@@ -874,7 +882,7 @@ __Parameters:__
|
|
874
882
|
|
875
883
|
--
|
876
884
|
|
877
|
-
##### [pull_file](https://github.com/appium/ruby_lib/blob/
|
885
|
+
##### [pull_file](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L66)
|
878
886
|
|
879
887
|
> def pull_file
|
880
888
|
|
@@ -891,7 +899,7 @@ __Parameters:__
|
|
891
899
|
|
892
900
|
--
|
893
901
|
|
894
|
-
##### [pull_folder](https://github.com/appium/ruby_lib/blob/
|
902
|
+
##### [pull_folder](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L76)
|
895
903
|
|
896
904
|
> def pull_folder
|
897
905
|
|
@@ -906,7 +914,7 @@ __Parameters:__
|
|
906
914
|
|
907
915
|
--
|
908
916
|
|
909
|
-
##### [touch_id](https://github.com/appium/ruby_lib/blob/
|
917
|
+
##### [touch_id](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L84)
|
910
918
|
|
911
919
|
> def touch_id
|
912
920
|
|
@@ -923,7 +931,7 @@ Defaults to true.
|
|
923
931
|
|
924
932
|
--
|
925
933
|
|
926
|
-
##### [end_coverage](https://github.com/appium/ruby_lib/blob/
|
934
|
+
##### [end_coverage](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L93)
|
927
935
|
|
928
936
|
> def end_coverage
|
929
937
|
|
@@ -937,7 +945,7 @@ __Parameters:__
|
|
937
945
|
|
938
946
|
--
|
939
947
|
|
940
|
-
##### [get_settings](https://github.com/appium/ruby_lib/blob/
|
948
|
+
##### [get_settings](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L98)
|
941
949
|
|
942
950
|
> def get_settings
|
943
951
|
|
@@ -945,7 +953,7 @@ Get appium Settings for current test session
|
|
945
953
|
|
946
954
|
--
|
947
955
|
|
948
|
-
##### [update_settings](https://github.com/appium/ruby_lib/blob/
|
956
|
+
##### [update_settings](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L101)
|
949
957
|
|
950
958
|
> def update_settings
|
951
959
|
|
@@ -957,7 +965,7 @@ __Parameters:__
|
|
957
965
|
|
958
966
|
--
|
959
967
|
|
960
|
-
##### [start_activity](https://github.com/appium/ruby_lib/blob/
|
968
|
+
##### [start_activity](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L105)
|
961
969
|
|
962
970
|
> def start_activity
|
963
971
|
|
@@ -971,7 +979,7 @@ start_activity app_package: 'io.appium.android.apis',
|
|
971
979
|
|
972
980
|
--
|
973
981
|
|
974
|
-
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/
|
982
|
+
##### [get_network_connection](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L119)
|
975
983
|
|
976
984
|
> def get_network_connection
|
977
985
|
|
@@ -980,7 +988,7 @@ See set_network_connection method for return value
|
|
980
988
|
|
981
989
|
--
|
982
990
|
|
983
|
-
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/
|
991
|
+
##### [set_network_connection](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L123)
|
984
992
|
|
985
993
|
> def set_network_connection
|
986
994
|
|
@@ -999,7 +1007,7 @@ __Parameters:__
|
|
999
1007
|
|
1000
1008
|
--
|
1001
1009
|
|
1002
|
-
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/
|
1010
|
+
##### [set_immediate_value](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L136)
|
1003
1011
|
|
1004
1012
|
> def set_immediate_value
|
1005
1013
|
|
@@ -1013,7 +1021,7 @@ set_immediate_value element, 'hello'
|
|
1013
1021
|
|
1014
1022
|
--
|
1015
1023
|
|
1016
|
-
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/
|
1024
|
+
##### [get_performance_data_types](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L145)
|
1017
1025
|
|
1018
1026
|
> def get_performance_data_types
|
1019
1027
|
|
@@ -1027,7 +1035,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1027
1035
|
|
1028
1036
|
--
|
1029
1037
|
|
1030
|
-
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/
|
1038
|
+
##### [extend_search_contexts](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L400)
|
1031
1039
|
|
1032
1040
|
> def extend_search_contexts
|
1033
1041
|
|
@@ -1035,7 +1043,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1035
1043
|
|
1036
1044
|
--
|
1037
1045
|
|
1038
|
-
##### [find_element](https://github.com/appium/ruby_lib/blob/
|
1046
|
+
##### [find_element](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L400)
|
1039
1047
|
|
1040
1048
|
> def find_element
|
1041
1049
|
|
@@ -1043,7 +1051,7 @@ get_performance_data_types #=> ["cpuinfo", "batteryinfo", "networkinfo", "memory
|
|
1043
1051
|
|
1044
1052
|
--
|
1045
1053
|
|
1046
|
-
##### [find_elements](https://github.com/appium/ruby_lib/blob/
|
1054
|
+
##### [find_elements](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L400)
|
1047
1055
|
|
1048
1056
|
> def find_elements
|
1049
1057
|
|
@@ -1055,7 +1063,7 @@ find_element/s with their accessibility_id
|
|
1055
1063
|
|
1056
1064
|
--
|
1057
1065
|
|
1058
|
-
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/
|
1066
|
+
##### [add_touch_actions](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L431)
|
1059
1067
|
|
1060
1068
|
> def add_touch_actions
|
1061
1069
|
|
@@ -1063,7 +1071,7 @@ find_element/s with their accessibility_id
|
|
1063
1071
|
|
1064
1072
|
--
|
1065
1073
|
|
1066
|
-
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/
|
1074
|
+
##### [add_ime_actions](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L454)
|
1067
1075
|
|
1068
1076
|
> def add_ime_actions
|
1069
1077
|
|
@@ -1071,7 +1079,7 @@ find_element/s with their accessibility_id
|
|
1071
1079
|
|
1072
1080
|
--
|
1073
1081
|
|
1074
|
-
##### [set_context](https://github.com/appium/ruby_lib/blob/
|
1082
|
+
##### [set_context](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L529)
|
1075
1083
|
|
1076
1084
|
> def set_context
|
1077
1085
|
|
@@ -1086,7 +1094,7 @@ __Parameters:__
|
|
1086
1094
|
|
1087
1095
|
--
|
1088
1096
|
|
1089
|
-
##### [current_context](https://github.com/appium/ruby_lib/blob/
|
1097
|
+
##### [current_context](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L537)
|
1090
1098
|
|
1091
1099
|
> def current_context
|
1092
1100
|
|
@@ -1098,7 +1106,7 @@ __Returns:__
|
|
1098
1106
|
|
1099
1107
|
--
|
1100
1108
|
|
1101
|
-
##### [available_contexts](https://github.com/appium/ruby_lib/blob/
|
1109
|
+
##### [available_contexts](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L540)
|
1102
1110
|
|
1103
1111
|
> def available_contexts
|
1104
1112
|
|
@@ -1110,7 +1118,7 @@ __Returns:__
|
|
1110
1118
|
|
1111
1119
|
--
|
1112
1120
|
|
1113
|
-
##### [within_context](https://github.com/appium/ruby_lib/blob/
|
1121
|
+
##### [within_context](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L550)
|
1114
1122
|
|
1115
1123
|
> def within_context(context)
|
1116
1124
|
|
@@ -1126,7 +1134,7 @@ __Parameters:__
|
|
1126
1134
|
|
1127
1135
|
--
|
1128
1136
|
|
1129
|
-
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/
|
1137
|
+
##### [switch_to_default_context](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/device.rb#L558)
|
1130
1138
|
|
1131
1139
|
> def switch_to_default_context
|
1132
1140
|
|
@@ -1134,7 +1142,7 @@ Change to the default context. This is equivalent to `set_context nil`.
|
|
1134
1142
|
|
1135
1143
|
--
|
1136
1144
|
|
1137
|
-
##### [pinch](https://github.com/appium/ruby_lib/blob/
|
1145
|
+
##### [pinch](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/multi_touch.rb#L28)
|
1138
1146
|
|
1139
1147
|
> def pinch(percentage = 25, auto_perform = true)
|
1140
1148
|
|
@@ -1153,7 +1161,7 @@ __Parameters:__
|
|
1153
1161
|
|
1154
1162
|
--
|
1155
1163
|
|
1156
|
-
##### [zoom](https://github.com/appium/ruby_lib/blob/
|
1164
|
+
##### [zoom](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/multi_touch.rb#L57)
|
1157
1165
|
|
1158
1166
|
> def zoom(percentage = 200, auto_perform = true)
|
1159
1167
|
|
@@ -1172,7 +1180,7 @@ __Parameters:__
|
|
1172
1180
|
|
1173
1181
|
--
|
1174
1182
|
|
1175
|
-
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1183
|
+
##### [pinch_for_xcuitest](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/multi_touch.rb#L79)
|
1176
1184
|
|
1177
1185
|
> def pinch_for_xcuitest(rate)
|
1178
1186
|
|
@@ -1180,7 +1188,7 @@ __Parameters:__
|
|
1180
1188
|
|
1181
1189
|
--
|
1182
1190
|
|
1183
|
-
##### [pinch_android](https://github.com/appium/ruby_lib/blob/
|
1191
|
+
##### [pinch_android](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/multi_touch.rb#L94)
|
1184
1192
|
|
1185
1193
|
> def pinch_android(rate)
|
1186
1194
|
|
@@ -1188,7 +1196,7 @@ __Parameters:__
|
|
1188
1196
|
|
1189
1197
|
--
|
1190
1198
|
|
1191
|
-
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/
|
1199
|
+
##### [pinch_ios](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/multi_touch.rb#L108)
|
1192
1200
|
|
1193
1201
|
> def pinch_ios(rate)
|
1194
1202
|
|
@@ -1196,7 +1204,7 @@ __Parameters:__
|
|
1196
1204
|
|
1197
1205
|
--
|
1198
1206
|
|
1199
|
-
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/
|
1207
|
+
##### [zoom_for_xcuitest](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/multi_touch.rb#L122)
|
1200
1208
|
|
1201
1209
|
> def zoom_for_xcuitest(rate)
|
1202
1210
|
|
@@ -1204,7 +1212,7 @@ __Parameters:__
|
|
1204
1212
|
|
1205
1213
|
--
|
1206
1214
|
|
1207
|
-
##### [zoom_android](https://github.com/appium/ruby_lib/blob/
|
1215
|
+
##### [zoom_android](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/multi_touch.rb#L137)
|
1208
1216
|
|
1209
1217
|
> def zoom_android(rate)
|
1210
1218
|
|
@@ -1212,7 +1220,7 @@ __Parameters:__
|
|
1212
1220
|
|
1213
1221
|
--
|
1214
1222
|
|
1215
|
-
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/
|
1223
|
+
##### [zoom_ios](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/multi_touch.rb#L151)
|
1216
1224
|
|
1217
1225
|
> def zoom_ios(rate)
|
1218
1226
|
|
@@ -1220,7 +1228,7 @@ __Parameters:__
|
|
1220
1228
|
|
1221
1229
|
--
|
1222
1230
|
|
1223
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1231
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/multi_touch.rb#L167)
|
1224
1232
|
|
1225
1233
|
> def initialize
|
1226
1234
|
|
@@ -1232,7 +1240,7 @@ __Returns:__
|
|
1232
1240
|
|
1233
1241
|
--
|
1234
1242
|
|
1235
|
-
##### [add](https://github.com/appium/ruby_lib/blob/
|
1243
|
+
##### [add](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/multi_touch.rb#L173)
|
1236
1244
|
|
1237
1245
|
> def add(chain)
|
1238
1246
|
|
@@ -1244,7 +1252,7 @@ __Parameters:__
|
|
1244
1252
|
|
1245
1253
|
--
|
1246
1254
|
|
1247
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1255
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/multi_touch.rb#L178)
|
1248
1256
|
|
1249
1257
|
> def perform
|
1250
1258
|
|
@@ -1252,7 +1260,7 @@ Ask Appium to perform the actions
|
|
1252
1260
|
|
1253
1261
|
--
|
1254
1262
|
|
1255
|
-
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1263
|
+
##### [ACTIONS](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L11)
|
1256
1264
|
|
1257
1265
|
> ACTIONS = [:move_to, :long_press, :double_tap, :two_finger_tap, :press, :release, :tap, :wait, :perform].freeze
|
1258
1266
|
|
@@ -1260,7 +1268,7 @@ Ask Appium to perform the actions
|
|
1260
1268
|
|
1261
1269
|
--
|
1262
1270
|
|
1263
|
-
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/
|
1271
|
+
##### [COMPLEX_ACTIONS](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L12)
|
1264
1272
|
|
1265
1273
|
> COMPLEX_ACTIONS = [:swipe].freeze
|
1266
1274
|
|
@@ -1268,7 +1276,7 @@ Ask Appium to perform the actions
|
|
1268
1276
|
|
1269
1277
|
--
|
1270
1278
|
|
1271
|
-
##### [actions](https://github.com/appium/ruby_lib/blob/
|
1279
|
+
##### [actions](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L26)
|
1272
1280
|
|
1273
1281
|
> def actions
|
1274
1282
|
|
@@ -1276,7 +1284,7 @@ Returns the value of attribute actions
|
|
1276
1284
|
|
1277
1285
|
--
|
1278
1286
|
|
1279
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1287
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L28)
|
1280
1288
|
|
1281
1289
|
> def initialize
|
1282
1290
|
|
@@ -1288,7 +1296,7 @@ __Returns:__
|
|
1288
1296
|
|
1289
1297
|
--
|
1290
1298
|
|
1291
|
-
##### [move_to](https://github.com/appium/ruby_lib/blob/
|
1299
|
+
##### [move_to](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L39)
|
1292
1300
|
|
1293
1301
|
> def move_to(opts)
|
1294
1302
|
|
@@ -1302,7 +1310,7 @@ __Parameters:__
|
|
1302
1310
|
|
1303
1311
|
--
|
1304
1312
|
|
1305
|
-
##### [long_press](https://github.com/appium/ruby_lib/blob/
|
1313
|
+
##### [long_press](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L53)
|
1306
1314
|
|
1307
1315
|
> def long_press(opts)
|
1308
1316
|
|
@@ -1323,7 +1331,7 @@ __Parameters:__
|
|
1323
1331
|
|
1324
1332
|
--
|
1325
1333
|
|
1326
|
-
##### [press](https://github.com/appium/ruby_lib/blob/
|
1334
|
+
##### [press](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L65)
|
1327
1335
|
|
1328
1336
|
> def press(opts)
|
1329
1337
|
|
@@ -1336,7 +1344,7 @@ __Parameters:__
|
|
1336
1344
|
|
1337
1345
|
--
|
1338
1346
|
|
1339
|
-
##### [release](https://github.com/appium/ruby_lib/blob/
|
1347
|
+
##### [release](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L76)
|
1340
1348
|
|
1341
1349
|
> def release(opts = nil)
|
1342
1350
|
|
@@ -1348,7 +1356,7 @@ __Parameters:__
|
|
1348
1356
|
|
1349
1357
|
--
|
1350
1358
|
|
1351
|
-
##### [tap](https://github.com/appium/ruby_lib/blob/
|
1359
|
+
##### [tap](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L88)
|
1352
1360
|
|
1353
1361
|
> def tap(opts)
|
1354
1362
|
|
@@ -1361,7 +1369,7 @@ __Parameters:__
|
|
1361
1369
|
|
1362
1370
|
--
|
1363
1371
|
|
1364
|
-
##### [double_tap](https://github.com/appium/ruby_lib/blob/
|
1372
|
+
##### [double_tap](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L101)
|
1365
1373
|
|
1366
1374
|
> def double_tap(opts)
|
1367
1375
|
|
@@ -1373,7 +1381,7 @@ __Parameters:__
|
|
1373
1381
|
|
1374
1382
|
--
|
1375
1383
|
|
1376
|
-
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/
|
1384
|
+
##### [two_finger_tap](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L112)
|
1377
1385
|
|
1378
1386
|
> def two_finger_tap(opts)
|
1379
1387
|
|
@@ -1385,7 +1393,7 @@ __Parameters:__
|
|
1385
1393
|
|
1386
1394
|
--
|
1387
1395
|
|
1388
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1396
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L120)
|
1389
1397
|
|
1390
1398
|
> def wait(milliseconds)
|
1391
1399
|
|
@@ -1397,7 +1405,7 @@ __Parameters:__
|
|
1397
1405
|
|
1398
1406
|
--
|
1399
1407
|
|
1400
|
-
##### [swipe](https://github.com/appium/ruby_lib/blob/
|
1408
|
+
##### [swipe](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L143)
|
1401
1409
|
|
1402
1410
|
> def swipe(opts, ele = nil)
|
1403
1411
|
|
@@ -1418,7 +1426,7 @@ __Parameters:__
|
|
1418
1426
|
|
1419
1427
|
--
|
1420
1428
|
|
1421
|
-
##### [perform](https://github.com/appium/ruby_lib/blob/
|
1429
|
+
##### [perform](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L168)
|
1422
1430
|
|
1423
1431
|
> def perform
|
1424
1432
|
|
@@ -1426,7 +1434,7 @@ Ask the driver to perform all actions in this action chain.
|
|
1426
1434
|
|
1427
1435
|
--
|
1428
1436
|
|
1429
|
-
##### [cancel](https://github.com/appium/ruby_lib/blob/
|
1437
|
+
##### [cancel](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L174)
|
1430
1438
|
|
1431
1439
|
> def cancel
|
1432
1440
|
|
@@ -1434,7 +1442,7 @@ Does nothing, currently.
|
|
1434
1442
|
|
1435
1443
|
--
|
1436
1444
|
|
1437
|
-
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/
|
1445
|
+
##### [swipe_coordinates](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L180)
|
1438
1446
|
|
1439
1447
|
> def swipe_coordinates(end_x: nil, end_y: nil, offset_x: nil, offset_y: nil)
|
1440
1448
|
|
@@ -1442,7 +1450,7 @@ Does nothing, currently.
|
|
1442
1450
|
|
1443
1451
|
--
|
1444
1452
|
|
1445
|
-
##### [chain_method](https://github.com/appium/ruby_lib/blob/
|
1453
|
+
##### [chain_method](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L198)
|
1446
1454
|
|
1447
1455
|
> def chain_method(method, args = nil)
|
1448
1456
|
|
@@ -1450,7 +1458,7 @@ Does nothing, currently.
|
|
1450
1458
|
|
1451
1459
|
--
|
1452
1460
|
|
1453
|
-
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/
|
1461
|
+
##### [args_with_ele_ref](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/device/touch_actions.rb#L204)
|
1454
1462
|
|
1455
1463
|
> def args_with_ele_ref(args)
|
1456
1464
|
|
@@ -1458,7 +1466,7 @@ Does nothing, currently.
|
|
1458
1466
|
|
1459
1467
|
--
|
1460
1468
|
|
1461
|
-
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/
|
1469
|
+
##### [_generic_wait](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/wait.rb#L9)
|
1462
1470
|
|
1463
1471
|
> def _generic_wait(opts = {})
|
1464
1472
|
|
@@ -1467,7 +1475,7 @@ https://github.com/SeleniumHQ/selenium/blob/cf501dda3f0ed12233de51ce8170c0e8090f
|
|
1467
1475
|
|
1468
1476
|
--
|
1469
1477
|
|
1470
|
-
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/
|
1478
|
+
##### [_process_wait_opts](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/wait.rb#L48)
|
1471
1479
|
|
1472
1480
|
> def _process_wait_opts(opts)
|
1473
1481
|
|
@@ -1475,7 +1483,7 @@ process opts before calling _generic_wait
|
|
1475
1483
|
|
1476
1484
|
--
|
1477
1485
|
|
1478
|
-
##### [wait_true](https://github.com/appium/ruby_lib/blob/
|
1486
|
+
##### [wait_true](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/wait.rb#L69)
|
1479
1487
|
|
1480
1488
|
> def wait_true(opts = {}, &block)
|
1481
1489
|
|
@@ -1495,7 +1503,7 @@ __Parameters:__
|
|
1495
1503
|
|
1496
1504
|
--
|
1497
1505
|
|
1498
|
-
##### [wait](https://github.com/appium/ruby_lib/blob/
|
1506
|
+
##### [wait](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/wait.rb#L87)
|
1499
1507
|
|
1500
1508
|
> def wait(opts = {}, &block)
|
1501
1509
|
|
@@ -1513,7 +1521,7 @@ __Parameters:__
|
|
1513
1521
|
|
1514
1522
|
--
|
1515
1523
|
|
1516
|
-
##### [ignore](https://github.com/appium/ruby_lib/blob/
|
1524
|
+
##### [ignore](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L24)
|
1517
1525
|
|
1518
1526
|
> def ignore
|
1519
1527
|
|
@@ -1521,7 +1529,7 @@ Return yield and ignore any exceptions.
|
|
1521
1529
|
|
1522
1530
|
--
|
1523
1531
|
|
1524
|
-
##### [back](https://github.com/appium/ruby_lib/blob/
|
1532
|
+
##### [back](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L31)
|
1525
1533
|
|
1526
1534
|
> def back
|
1527
1535
|
|
@@ -1533,7 +1541,7 @@ __Returns:__
|
|
1533
1541
|
|
1534
1542
|
--
|
1535
1543
|
|
1536
|
-
##### [session_id](https://github.com/appium/ruby_lib/blob/
|
1544
|
+
##### [session_id](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L36)
|
1537
1545
|
|
1538
1546
|
> def session_id
|
1539
1547
|
|
@@ -1541,7 +1549,7 @@ For Sauce Labs reporting. Returns the current session id.
|
|
1541
1549
|
|
1542
1550
|
--
|
1543
1551
|
|
1544
|
-
##### [xpath](https://github.com/appium/ruby_lib/blob/
|
1552
|
+
##### [xpath](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L44)
|
1545
1553
|
|
1546
1554
|
> def xpath(xpath_str)
|
1547
1555
|
|
@@ -1557,7 +1565,7 @@ __Returns:__
|
|
1557
1565
|
|
1558
1566
|
--
|
1559
1567
|
|
1560
|
-
##### [xpaths](https://github.com/appium/ruby_lib/blob/
|
1568
|
+
##### [xpaths](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L52)
|
1561
1569
|
|
1562
1570
|
> def xpaths(xpath_str)
|
1563
1571
|
|
@@ -1573,7 +1581,7 @@ __Returns:__
|
|
1573
1581
|
|
1574
1582
|
--
|
1575
1583
|
|
1576
|
-
##### [_print_source](https://github.com/appium/ruby_lib/blob/
|
1584
|
+
##### [_print_source](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L56)
|
1577
1585
|
|
1578
1586
|
> def _print_source(source)
|
1579
1587
|
|
@@ -1581,7 +1589,7 @@ __Returns:__
|
|
1581
1589
|
|
1582
1590
|
--
|
1583
1591
|
|
1584
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1592
|
+
##### [result](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L69)
|
1585
1593
|
|
1586
1594
|
> def result
|
1587
1595
|
|
@@ -1589,7 +1597,7 @@ Returns the value of attribute result
|
|
1589
1597
|
|
1590
1598
|
--
|
1591
1599
|
|
1592
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1600
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L71)
|
1593
1601
|
|
1594
1602
|
> def initialize
|
1595
1603
|
|
@@ -1601,7 +1609,7 @@ __Returns:__
|
|
1601
1609
|
|
1602
1610
|
--
|
1603
1611
|
|
1604
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1612
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L75)
|
1605
1613
|
|
1606
1614
|
> def reset
|
1607
1615
|
|
@@ -1609,7 +1617,7 @@ __Returns:__
|
|
1609
1617
|
|
1610
1618
|
--
|
1611
1619
|
|
1612
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1620
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L80)
|
1613
1621
|
|
1614
1622
|
> def start_element(name, attrs = [])
|
1615
1623
|
|
@@ -1617,7 +1625,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1617
1625
|
|
1618
1626
|
--
|
1619
1627
|
|
1620
|
-
##### [formatted_result](https://github.com/appium/ruby_lib/blob/
|
1628
|
+
##### [formatted_result](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L86)
|
1621
1629
|
|
1622
1630
|
> def formatted_result
|
1623
1631
|
|
@@ -1625,7 +1633,7 @@ http://nokogiri.org/Nokogiri/XML/SAX/Document.html
|
|
1625
1633
|
|
1626
1634
|
--
|
1627
1635
|
|
1628
|
-
##### [get_page_class](https://github.com/appium/ruby_lib/blob/
|
1636
|
+
##### [get_page_class](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L97)
|
1629
1637
|
|
1630
1638
|
> def get_page_class
|
1631
1639
|
|
@@ -1633,7 +1641,7 @@ Returns a string of class counts of visible elements.
|
|
1633
1641
|
|
1634
1642
|
--
|
1635
1643
|
|
1636
|
-
##### [page_class](https://github.com/appium/ruby_lib/blob/
|
1644
|
+
##### [page_class](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L108)
|
1637
1645
|
|
1638
1646
|
> def page_class
|
1639
1647
|
|
@@ -1642,7 +1650,7 @@ Useful for appium_console.
|
|
1642
1650
|
|
1643
1651
|
--
|
1644
1652
|
|
1645
|
-
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/
|
1653
|
+
##### [px_to_window_rel](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L118)
|
1646
1654
|
|
1647
1655
|
> def px_to_window_rel(opts = {})
|
1648
1656
|
|
@@ -1654,7 +1662,7 @@ px_to_window_rel x: 50, y: 150
|
|
1654
1662
|
|
1655
1663
|
--
|
1656
1664
|
|
1657
|
-
##### [xml_keys](https://github.com/appium/ruby_lib/blob/
|
1665
|
+
##### [xml_keys](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L137)
|
1658
1666
|
|
1659
1667
|
> def xml_keys(target)
|
1660
1668
|
|
@@ -1670,7 +1678,7 @@ __Returns:__
|
|
1670
1678
|
|
1671
1679
|
--
|
1672
1680
|
|
1673
|
-
##### [xml_values](https://github.com/appium/ruby_lib/blob/
|
1681
|
+
##### [xml_values](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L145)
|
1674
1682
|
|
1675
1683
|
> def xml_values(target)
|
1676
1684
|
|
@@ -1686,7 +1694,7 @@ __Returns:__
|
|
1686
1694
|
|
1687
1695
|
--
|
1688
1696
|
|
1689
|
-
##### [resolve_id](https://github.com/appium/ruby_lib/blob/
|
1697
|
+
##### [resolve_id](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L153)
|
1690
1698
|
|
1691
1699
|
> def resolve_id(id)
|
1692
1700
|
|
@@ -1702,7 +1710,7 @@ __Returns:__
|
|
1702
1710
|
|
1703
1711
|
--
|
1704
1712
|
|
1705
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1713
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L159)
|
1706
1714
|
|
1707
1715
|
> def filter
|
1708
1716
|
|
@@ -1710,7 +1718,7 @@ Returns the value of attribute filter
|
|
1710
1718
|
|
1711
1719
|
--
|
1712
1720
|
|
1713
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1721
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L162)
|
1714
1722
|
|
1715
1723
|
> def filter=(value)
|
1716
1724
|
|
@@ -1718,7 +1726,7 @@ convert to string to support symbols
|
|
1718
1726
|
|
1719
1727
|
--
|
1720
1728
|
|
1721
|
-
##### [initialize](https://github.com/appium/ruby_lib/blob/
|
1729
|
+
##### [initialize](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L168)
|
1722
1730
|
|
1723
1731
|
> def initialize
|
1724
1732
|
|
@@ -1730,7 +1738,7 @@ __Returns:__
|
|
1730
1738
|
|
1731
1739
|
--
|
1732
1740
|
|
1733
|
-
##### [reset](https://github.com/appium/ruby_lib/blob/
|
1741
|
+
##### [reset](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L173)
|
1734
1742
|
|
1735
1743
|
> def reset
|
1736
1744
|
|
@@ -1738,7 +1746,7 @@ __Returns:__
|
|
1738
1746
|
|
1739
1747
|
--
|
1740
1748
|
|
1741
|
-
##### [result](https://github.com/appium/ruby_lib/blob/
|
1749
|
+
##### [result](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L179)
|
1742
1750
|
|
1743
1751
|
> def result
|
1744
1752
|
|
@@ -1746,7 +1754,7 @@ __Returns:__
|
|
1746
1754
|
|
1747
1755
|
--
|
1748
1756
|
|
1749
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1757
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L195)
|
1750
1758
|
|
1751
1759
|
> def start_element(name, attrs = [])
|
1752
1760
|
|
@@ -1754,7 +1762,7 @@ __Returns:__
|
|
1754
1762
|
|
1755
1763
|
--
|
1756
1764
|
|
1757
|
-
##### [end_element](https://github.com/appium/ruby_lib/blob/
|
1765
|
+
##### [end_element](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L204)
|
1758
1766
|
|
1759
1767
|
> def end_element(name)
|
1760
1768
|
|
@@ -1762,7 +1770,7 @@ __Returns:__
|
|
1762
1770
|
|
1763
1771
|
--
|
1764
1772
|
|
1765
|
-
##### [characters](https://github.com/appium/ruby_lib/blob/
|
1773
|
+
##### [characters](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L210)
|
1766
1774
|
|
1767
1775
|
> def characters(chars)
|
1768
1776
|
|
@@ -1770,7 +1778,7 @@ __Returns:__
|
|
1770
1778
|
|
1771
1779
|
--
|
1772
1780
|
|
1773
|
-
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/
|
1781
|
+
##### [_no_such_element](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/helper.rb#L217)
|
1774
1782
|
|
1775
1783
|
> def _no_such_element
|
1776
1784
|
|
@@ -1778,7 +1786,7 @@ __Returns:__
|
|
1778
1786
|
|
1779
1787
|
--
|
1780
1788
|
|
1781
|
-
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/
|
1789
|
+
##### [COMMAND_NO_ARG](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/command.rb#L4)
|
1782
1790
|
|
1783
1791
|
> COMMAND_NO_ARG = {
|
1784
1792
|
|
@@ -1786,7 +1794,7 @@ __Returns:__
|
|
1786
1794
|
|
1787
1795
|
--
|
1788
1796
|
|
1789
|
-
##### [COMMAND](https://github.com/appium/ruby_lib/blob/
|
1797
|
+
##### [COMMAND](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/command.rb#L24)
|
1790
1798
|
|
1791
1799
|
> COMMAND = {
|
1792
1800
|
|
@@ -1794,7 +1802,7 @@ __Returns:__
|
|
1794
1802
|
|
1795
1803
|
--
|
1796
1804
|
|
1797
|
-
##### [window_size](https://github.com/appium/ruby_lib/blob/
|
1805
|
+
##### [window_size](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/element/window.rb#L5)
|
1798
1806
|
|
1799
1807
|
> def window_size
|
1800
1808
|
|
@@ -1802,7 +1810,7 @@ Get the window's size
|
|
1802
1810
|
|
1803
1811
|
--
|
1804
1812
|
|
1805
|
-
##### [FINDERS](https://github.com/appium/ruby_lib/blob/
|
1813
|
+
##### [FINDERS](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/search_context.rb#L5)
|
1806
1814
|
|
1807
1815
|
> FINDERS = {
|
1808
1816
|
|
@@ -1810,7 +1818,7 @@ rubocop:disable Style/MutableConstant
|
|
1810
1818
|
|
1811
1819
|
--
|
1812
1820
|
|
1813
|
-
##### [filter](https://github.com/appium/ruby_lib/blob/
|
1821
|
+
##### [filter](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L4) ios
|
1814
1822
|
|
1815
1823
|
> def filter
|
1816
1824
|
|
@@ -1818,7 +1826,7 @@ Returns the value of attribute filter
|
|
1818
1826
|
|
1819
1827
|
--
|
1820
1828
|
|
1821
|
-
##### [filter=](https://github.com/appium/ruby_lib/blob/
|
1829
|
+
##### [filter=](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L4) ios
|
1822
1830
|
|
1823
1831
|
> def filter=(value)
|
1824
1832
|
|
@@ -1830,7 +1838,7 @@ __Parameters:__
|
|
1830
1838
|
|
1831
1839
|
--
|
1832
1840
|
|
1833
|
-
##### [start_element](https://github.com/appium/ruby_lib/blob/
|
1841
|
+
##### [start_element](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L6) ios
|
1834
1842
|
|
1835
1843
|
> def start_element(type, attrs = [])
|
1836
1844
|
|
@@ -1838,7 +1846,7 @@ __Parameters:__
|
|
1838
1846
|
|
1839
1847
|
--
|
1840
1848
|
|
1841
|
-
##### [_print_attr](https://github.com/appium/ruby_lib/blob/
|
1849
|
+
##### [_print_attr](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L15) ios
|
1842
1850
|
|
1843
1851
|
> def _print_attr(type, name, label, value, hint)
|
1844
1852
|
|
@@ -1846,7 +1854,7 @@ __Parameters:__
|
|
1846
1854
|
|
1847
1855
|
--
|
1848
1856
|
|
1849
|
-
##### [ios_password](https://github.com/appium/ruby_lib/blob/
|
1857
|
+
##### [ios_password](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L41) ios
|
1850
1858
|
|
1851
1859
|
> def ios_password(length = 1)
|
1852
1860
|
|
@@ -1864,7 +1872,7 @@ __Returns:__
|
|
1864
1872
|
|
1865
1873
|
--
|
1866
1874
|
|
1867
|
-
##### [get_page](https://github.com/appium/ruby_lib/blob/
|
1875
|
+
##### [get_page](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L53) ios
|
1868
1876
|
|
1869
1877
|
> def get_page(element = source_window(0), class_name = nil)
|
1870
1878
|
|
@@ -1885,7 +1893,7 @@ __Returns:__
|
|
1885
1893
|
|
1886
1894
|
--
|
1887
1895
|
|
1888
|
-
##### [page](https://github.com/appium/ruby_lib/blob/
|
1896
|
+
##### [page](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L139) ios
|
1889
1897
|
|
1890
1898
|
> def page(opts = {})
|
1891
1899
|
|
@@ -1911,7 +1919,7 @@ __Returns:__
|
|
1911
1919
|
|
1912
1920
|
--
|
1913
1921
|
|
1914
|
-
##### [source_window](https://github.com/appium/ruby_lib/blob/
|
1922
|
+
##### [source_window](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L170) ios
|
1915
1923
|
|
1916
1924
|
> def source_window(_window_number = 0)
|
1917
1925
|
|
@@ -1927,7 +1935,7 @@ __Returns:__
|
|
1927
1935
|
|
1928
1936
|
--
|
1929
1937
|
|
1930
|
-
##### [page_window](https://github.com/appium/ruby_lib/blob/
|
1938
|
+
##### [page_window](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L185) ios
|
1931
1939
|
|
1932
1940
|
> def page_window(window_number = 0)
|
1933
1941
|
|
@@ -1945,7 +1953,7 @@ __Returns:__
|
|
1945
1953
|
|
1946
1954
|
--
|
1947
1955
|
|
1948
|
-
##### [id](https://github.com/appium/ruby_lib/blob/
|
1956
|
+
##### [id](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L193) ios
|
1949
1957
|
|
1950
1958
|
> def id(id)
|
1951
1959
|
|
@@ -1961,7 +1969,7 @@ __Returns:__
|
|
1961
1969
|
|
1962
1970
|
--
|
1963
1971
|
|
1964
|
-
##### [ios_version](https://github.com/appium/ruby_lib/blob/
|
1972
|
+
##### [ios_version](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L199) ios
|
1965
1973
|
|
1966
1974
|
> def ios_version
|
1967
1975
|
|
@@ -1973,7 +1981,7 @@ __Returns:__
|
|
1973
1981
|
|
1974
1982
|
--
|
1975
1983
|
|
1976
|
-
##### [ele_index](https://github.com/appium/ruby_lib/blob/
|
1984
|
+
##### [ele_index](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L212) ios
|
1977
1985
|
|
1978
1986
|
> def ele_index(class_name, index)
|
1979
1987
|
|
@@ -1991,7 +1999,7 @@ __Returns:__
|
|
1991
1999
|
|
1992
2000
|
--
|
1993
2001
|
|
1994
|
-
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/
|
2002
|
+
##### [find_ele_by_attr](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L248) ios
|
1995
2003
|
|
1996
2004
|
> def find_ele_by_attr(class_name, attr, value)
|
1997
2005
|
|
@@ -2013,7 +2021,7 @@ __Returns:__
|
|
2013
2021
|
|
2014
2022
|
--
|
2015
2023
|
|
2016
|
-
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/
|
2024
|
+
##### [find_eles_by_attr](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L259) ios
|
2017
2025
|
|
2018
2026
|
> def find_eles_by_attr(class_name, attr, value)
|
2019
2027
|
|
@@ -2035,7 +2043,43 @@ __Returns:__
|
|
2035
2043
|
|
2036
2044
|
--
|
2037
2045
|
|
2038
|
-
##### [
|
2046
|
+
##### [find_ele_by_predicate](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L280) ios
|
2047
|
+
|
2048
|
+
> def find_ele_by_predicate(class_name: '*', value:)
|
2049
|
+
|
2050
|
+
Find the first element exactly matching attribute case insensitive value.
|
2051
|
+
Note: Uses Predicate
|
2052
|
+
|
2053
|
+
__Parameters:__
|
2054
|
+
|
2055
|
+
[String] value - the expected value of the attribute
|
2056
|
+
|
2057
|
+
__Returns:__
|
2058
|
+
|
2059
|
+
[Element]
|
2060
|
+
|
2061
|
+
--
|
2062
|
+
|
2063
|
+
##### [find_eles_by_predicate](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L291) ios
|
2064
|
+
|
2065
|
+
> def find_eles_by_predicate(class_name: '*', value:)
|
2066
|
+
|
2067
|
+
Find all elements exactly matching attribute case insensitive value.
|
2068
|
+
Note: Uses Predicate
|
2069
|
+
|
2070
|
+
__Parameters:__
|
2071
|
+
|
2072
|
+
[String] value - the value of the attribute that the element must have
|
2073
|
+
|
2074
|
+
[String] class_name - the tag name to match
|
2075
|
+
|
2076
|
+
__Returns:__
|
2077
|
+
|
2078
|
+
[Array<Element>]
|
2079
|
+
|
2080
|
+
--
|
2081
|
+
|
2082
|
+
##### [find_ele_by_attr_include](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L307) ios
|
2039
2083
|
|
2040
2084
|
> def find_ele_by_attr_include(class_name, attr, value)
|
2041
2085
|
|
@@ -2056,7 +2100,7 @@ __Returns:__
|
|
2056
2100
|
|
2057
2101
|
--
|
2058
2102
|
|
2059
|
-
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/
|
2103
|
+
##### [find_eles_by_attr_include](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L317) ios
|
2060
2104
|
|
2061
2105
|
> def find_eles_by_attr_include(class_name, attr, value)
|
2062
2106
|
|
@@ -2077,7 +2121,43 @@ __Returns:__
|
|
2077
2121
|
|
2078
2122
|
--
|
2079
2123
|
|
2080
|
-
##### [
|
2124
|
+
##### [find_ele_by_predicate_include](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L325) ios
|
2125
|
+
|
2126
|
+
> def find_ele_by_predicate_include(class_name: '*', value:)
|
2127
|
+
|
2128
|
+
Get the first elements that include insensitive value.
|
2129
|
+
Note: Uses Predicate
|
2130
|
+
|
2131
|
+
__Parameters:__
|
2132
|
+
|
2133
|
+
[String] value - the value of the attribute that the element must include
|
2134
|
+
|
2135
|
+
__Returns:__
|
2136
|
+
|
2137
|
+
[Element] the element of type tag who's attribute includes value
|
2138
|
+
|
2139
|
+
--
|
2140
|
+
|
2141
|
+
##### [find_eles_by_predicate_include](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L336) ios
|
2142
|
+
|
2143
|
+
> def find_eles_by_predicate_include(class_name: '*', value:)
|
2144
|
+
|
2145
|
+
Get elements that include case insensitive value.
|
2146
|
+
Note: Uses Predicate
|
2147
|
+
|
2148
|
+
__Parameters:__
|
2149
|
+
|
2150
|
+
[String] value - the value of the attribute that the element must include
|
2151
|
+
|
2152
|
+
[String] class_name - the tag name to match
|
2153
|
+
|
2154
|
+
__Returns:__
|
2155
|
+
|
2156
|
+
[Array<Element>] the elements of type tag who's attribute includes value
|
2157
|
+
|
2158
|
+
--
|
2159
|
+
|
2160
|
+
##### [first_ele](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L349) ios
|
2081
2161
|
|
2082
2162
|
> def first_ele(class_name)
|
2083
2163
|
|
@@ -2093,7 +2173,7 @@ __Returns:__
|
|
2093
2173
|
|
2094
2174
|
--
|
2095
2175
|
|
2096
|
-
##### [last_ele](https://github.com/appium/ruby_lib/blob/
|
2176
|
+
##### [last_ele](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L356) ios
|
2097
2177
|
|
2098
2178
|
> def last_ele(class_name)
|
2099
2179
|
|
@@ -2109,7 +2189,7 @@ __Returns:__
|
|
2109
2189
|
|
2110
2190
|
--
|
2111
2191
|
|
2112
|
-
##### [tag](https://github.com/appium/ruby_lib/blob/
|
2192
|
+
##### [tag](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L370) ios
|
2113
2193
|
|
2114
2194
|
> def tag(class_name)
|
2115
2195
|
|
@@ -2125,7 +2205,7 @@ __Returns:__
|
|
2125
2205
|
|
2126
2206
|
--
|
2127
2207
|
|
2128
|
-
##### [tags](https://github.com/appium/ruby_lib/blob/
|
2208
|
+
##### [tags](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L382) ios
|
2129
2209
|
|
2130
2210
|
> def tags(class_name)
|
2131
2211
|
|
@@ -2141,7 +2221,7 @@ __Returns:__
|
|
2141
2221
|
|
2142
2222
|
--
|
2143
2223
|
|
2144
|
-
##### [tags_include](https://github.com/appium/ruby_lib/blob/
|
2224
|
+
##### [tags_include](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L398) ios
|
2145
2225
|
|
2146
2226
|
> def tags_include(class_names:, value: nil)
|
2147
2227
|
|
@@ -2161,7 +2241,7 @@ __Returns:__
|
|
2161
2241
|
|
2162
2242
|
--
|
2163
2243
|
|
2164
|
-
##### [tags_exact](https://github.com/appium/ruby_lib/blob/
|
2244
|
+
##### [tags_exact](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L427) ios
|
2165
2245
|
|
2166
2246
|
> def tags_exact(class_names:, value: nil)
|
2167
2247
|
|
@@ -2181,7 +2261,7 @@ __Returns:__
|
|
2181
2261
|
|
2182
2262
|
--
|
2183
2263
|
|
2184
|
-
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2264
|
+
##### [ele_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L478) ios
|
2185
2265
|
|
2186
2266
|
> def ele_by_json_visible_contains(element, value)
|
2187
2267
|
|
@@ -2200,7 +2280,7 @@ __Returns:__
|
|
2200
2280
|
|
2201
2281
|
--
|
2202
2282
|
|
2203
|
-
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/
|
2283
|
+
##### [eles_by_json_visible_contains](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L487) ios
|
2204
2284
|
|
2205
2285
|
> def eles_by_json_visible_contains(element, value)
|
2206
2286
|
|
@@ -2219,7 +2299,7 @@ __Returns:__
|
|
2219
2299
|
|
2220
2300
|
--
|
2221
2301
|
|
2222
|
-
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2302
|
+
##### [ele_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L517) ios
|
2223
2303
|
|
2224
2304
|
> def ele_by_json_visible_exact(element, value)
|
2225
2305
|
|
@@ -2238,7 +2318,7 @@ __Returns:__
|
|
2238
2318
|
|
2239
2319
|
--
|
2240
2320
|
|
2241
|
-
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/
|
2321
|
+
##### [eles_by_json_visible_exact](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L526) ios
|
2242
2322
|
|
2243
2323
|
> def eles_by_json_visible_exact(element, value)
|
2244
2324
|
|
@@ -2257,7 +2337,7 @@ __Returns:__
|
|
2257
2337
|
|
2258
2338
|
--
|
2259
2339
|
|
2260
|
-
##### [_all_pred](https://github.com/appium/ruby_lib/blob/
|
2340
|
+
##### [_all_pred](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L591) ios
|
2261
2341
|
|
2262
2342
|
> def _all_pred(opts)
|
2263
2343
|
|
@@ -2267,7 +2347,7 @@ visible - if true, only visible elements are returned. default true
|
|
2267
2347
|
|
2268
2348
|
--
|
2269
2349
|
|
2270
|
-
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/
|
2350
|
+
##### [ele_with_pred](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L604) ios
|
2271
2351
|
|
2272
2352
|
> def ele_with_pred(opts)
|
2273
2353
|
|
@@ -2283,7 +2363,7 @@ __Returns:__
|
|
2283
2363
|
|
2284
2364
|
--
|
2285
2365
|
|
2286
|
-
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/
|
2366
|
+
##### [eles_with_pred](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L615) ios
|
2287
2367
|
|
2288
2368
|
> def eles_with_pred(opts)
|
2289
2369
|
|
@@ -2299,7 +2379,7 @@ __Returns:__
|
|
2299
2379
|
|
2300
2380
|
--
|
2301
2381
|
|
2302
|
-
##### [source](https://github.com/appium/ruby_lib/blob/
|
2382
|
+
##### [source](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L621) ios
|
2303
2383
|
|
2304
2384
|
> def source
|
2305
2385
|
|
@@ -2311,7 +2391,7 @@ __Returns:__
|
|
2311
2391
|
|
2312
2392
|
--
|
2313
2393
|
|
2314
|
-
##### [_validate_object](https://github.com/appium/ruby_lib/blob/
|
2394
|
+
##### [_validate_object](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L625) ios
|
2315
2395
|
|
2316
2396
|
> def _validate_object(*objects)
|
2317
2397
|
|
@@ -2319,7 +2399,7 @@ __Returns:__
|
|
2319
2399
|
|
2320
2400
|
--
|
2321
2401
|
|
2322
|
-
##### [_by_json](https://github.com/appium/ruby_lib/blob/
|
2402
|
+
##### [_by_json](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L674) ios
|
2323
2403
|
|
2324
2404
|
> def _by_json(opts)
|
2325
2405
|
|
@@ -2354,7 +2434,7 @@ opts = {
|
|
2354
2434
|
|
2355
2435
|
--
|
2356
2436
|
|
2357
|
-
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/
|
2437
|
+
##### [eles_by_json](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L724) ios
|
2358
2438
|
|
2359
2439
|
> def eles_by_json(opts)
|
2360
2440
|
|
@@ -2373,7 +2453,7 @@ eles_by_json({
|
|
2373
2453
|
|
2374
2454
|
--
|
2375
2455
|
|
2376
|
-
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/
|
2456
|
+
##### [ele_by_json](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L730) ios
|
2377
2457
|
|
2378
2458
|
> def ele_by_json(opts)
|
2379
2459
|
|
@@ -2381,7 +2461,7 @@ see eles_by_json
|
|
2381
2461
|
|
2382
2462
|
--
|
2383
2463
|
|
2384
|
-
##### [get_source](https://github.com/appium/ruby_lib/blob/
|
2464
|
+
##### [get_source](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/helper.rb#L740) ios
|
2385
2465
|
|
2386
2466
|
> def get_source
|
2387
2467
|
|
@@ -2394,7 +2474,7 @@ __Returns:__
|
|
2394
2474
|
|
2395
2475
|
--
|
2396
2476
|
|
2397
|
-
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/
|
2477
|
+
##### [UIAStaticText](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/text.rb#L4) ios
|
2398
2478
|
|
2399
2479
|
> UIAStaticText = 'UIAStaticText'.freeze
|
2400
2480
|
|
@@ -2402,7 +2482,7 @@ __Returns:__
|
|
2402
2482
|
|
2403
2483
|
--
|
2404
2484
|
|
2405
|
-
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/
|
2485
|
+
##### [XCUIElementTypeStaticText](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/text.rb#L5) ios
|
2406
2486
|
|
2407
2487
|
> XCUIElementTypeStaticText = 'XCUIElementTypeStaticText'.freeze
|
2408
2488
|
|
@@ -2410,7 +2490,7 @@ __Returns:__
|
|
2410
2490
|
|
2411
2491
|
--
|
2412
2492
|
|
2413
|
-
##### [static_text_class](https://github.com/appium/ruby_lib/blob/
|
2493
|
+
##### [static_text_class](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/text.rb#L8) ios
|
2414
2494
|
|
2415
2495
|
> def static_text_class
|
2416
2496
|
|
@@ -2422,7 +2502,7 @@ __Returns:__
|
|
2422
2502
|
|
2423
2503
|
--
|
2424
2504
|
|
2425
|
-
##### [text](https://github.com/appium/ruby_lib/blob/
|
2505
|
+
##### [text](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/text.rb#L16) ios
|
2426
2506
|
|
2427
2507
|
> def text(value)
|
2428
2508
|
|
@@ -2439,7 +2519,7 @@ __Returns:__
|
|
2439
2519
|
|
2440
2520
|
--
|
2441
2521
|
|
2442
|
-
##### [texts](https://github.com/appium/ruby_lib/blob/
|
2522
|
+
##### [texts](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/text.rb#L30) ios
|
2443
2523
|
|
2444
2524
|
> def texts(value = false)
|
2445
2525
|
|
@@ -2456,7 +2536,7 @@ __Returns:__
|
|
2456
2536
|
|
2457
2537
|
--
|
2458
2538
|
|
2459
|
-
##### [first_text](https://github.com/appium/ruby_lib/blob/
|
2539
|
+
##### [first_text](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/text.rb#L43) ios
|
2460
2540
|
|
2461
2541
|
> def first_text
|
2462
2542
|
|
@@ -2468,7 +2548,7 @@ __Returns:__
|
|
2468
2548
|
|
2469
2549
|
--
|
2470
2550
|
|
2471
|
-
##### [last_text](https://github.com/appium/ruby_lib/blob/
|
2551
|
+
##### [last_text](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/text.rb#L49) ios
|
2472
2552
|
|
2473
2553
|
> def last_text
|
2474
2554
|
|
@@ -2480,7 +2560,7 @@ __Returns:__
|
|
2480
2560
|
|
2481
2561
|
--
|
2482
2562
|
|
2483
|
-
##### [text_exact](https://github.com/appium/ruby_lib/blob/
|
2563
|
+
##### [text_exact](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/text.rb#L56) ios
|
2484
2564
|
|
2485
2565
|
> def text_exact(value)
|
2486
2566
|
|
@@ -2496,7 +2576,7 @@ __Returns:__
|
|
2496
2576
|
|
2497
2577
|
--
|
2498
2578
|
|
2499
|
-
##### [texts_exact](https://github.com/appium/ruby_lib/blob/
|
2579
|
+
##### [texts_exact](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/text.rb#L67) ios
|
2500
2580
|
|
2501
2581
|
> def texts_exact(value)
|
2502
2582
|
|
@@ -2512,7 +2592,7 @@ __Returns:__
|
|
2512
2592
|
|
2513
2593
|
--
|
2514
2594
|
|
2515
|
-
##### [alert_accept](https://github.com/appium/ruby_lib/blob/
|
2595
|
+
##### [alert_accept](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/alert.rb#L5) ios
|
2516
2596
|
|
2517
2597
|
> def alert_accept
|
2518
2598
|
|
@@ -2524,7 +2604,7 @@ __Returns:__
|
|
2524
2604
|
|
2525
2605
|
--
|
2526
2606
|
|
2527
|
-
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/
|
2607
|
+
##### [alert_dismiss](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/alert.rb#L13) ios
|
2528
2608
|
|
2529
2609
|
> def alert_dismiss
|
2530
2610
|
|
@@ -2536,7 +2616,7 @@ __Returns:__
|
|
2536
2616
|
|
2537
2617
|
--
|
2538
2618
|
|
2539
|
-
##### [UIAButton](https://github.com/appium/ruby_lib/blob/
|
2619
|
+
##### [UIAButton](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/button.rb#L4) ios
|
2540
2620
|
|
2541
2621
|
> UIAButton = 'UIAButton'.freeze
|
2542
2622
|
|
@@ -2544,7 +2624,7 @@ __Returns:__
|
|
2544
2624
|
|
2545
2625
|
--
|
2546
2626
|
|
2547
|
-
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/
|
2627
|
+
##### [XCUIElementTypeButton](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/button.rb#L5) ios
|
2548
2628
|
|
2549
2629
|
> XCUIElementTypeButton = 'XCUIElementTypeButton'.freeze
|
2550
2630
|
|
@@ -2552,7 +2632,7 @@ __Returns:__
|
|
2552
2632
|
|
2553
2633
|
--
|
2554
2634
|
|
2555
|
-
##### [button_class](https://github.com/appium/ruby_lib/blob/
|
2635
|
+
##### [button_class](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/button.rb#L8) ios
|
2556
2636
|
|
2557
2637
|
> def button_class
|
2558
2638
|
|
@@ -2564,7 +2644,7 @@ __Returns:__
|
|
2564
2644
|
|
2565
2645
|
--
|
2566
2646
|
|
2567
|
-
##### [button](https://github.com/appium/ruby_lib/blob/
|
2647
|
+
##### [button](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/button.rb#L16) ios
|
2568
2648
|
|
2569
2649
|
> def button(value)
|
2570
2650
|
|
@@ -2581,7 +2661,7 @@ __Returns:__
|
|
2581
2661
|
|
2582
2662
|
--
|
2583
2663
|
|
2584
|
-
##### [buttons](https://github.com/appium/ruby_lib/blob/
|
2664
|
+
##### [buttons](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/button.rb#L31) ios
|
2585
2665
|
|
2586
2666
|
> def buttons(value = false)
|
2587
2667
|
|
@@ -2598,7 +2678,7 @@ __Returns:__
|
|
2598
2678
|
|
2599
2679
|
--
|
2600
2680
|
|
2601
|
-
##### [first_button](https://github.com/appium/ruby_lib/blob/
|
2681
|
+
##### [first_button](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/button.rb#L44) ios
|
2602
2682
|
|
2603
2683
|
> def first_button
|
2604
2684
|
|
@@ -2610,7 +2690,7 @@ __Returns:__
|
|
2610
2690
|
|
2611
2691
|
--
|
2612
2692
|
|
2613
|
-
##### [last_button](https://github.com/appium/ruby_lib/blob/
|
2693
|
+
##### [last_button](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/button.rb#L52) ios
|
2614
2694
|
|
2615
2695
|
> def last_button
|
2616
2696
|
|
@@ -2624,7 +2704,7 @@ __Returns:__
|
|
2624
2704
|
|
2625
2705
|
--
|
2626
2706
|
|
2627
|
-
##### [button_exact](https://github.com/appium/ruby_lib/blob/
|
2707
|
+
##### [button_exact](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/button.rb#L59) ios
|
2628
2708
|
|
2629
2709
|
> def button_exact(value)
|
2630
2710
|
|
@@ -2640,7 +2720,7 @@ __Returns:__
|
|
2640
2720
|
|
2641
2721
|
--
|
2642
2722
|
|
2643
|
-
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/
|
2723
|
+
##### [buttons_exact](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/button.rb#L70) ios
|
2644
2724
|
|
2645
2725
|
> def buttons_exact(value)
|
2646
2726
|
|
@@ -2656,7 +2736,7 @@ __Returns:__
|
|
2656
2736
|
|
2657
2737
|
--
|
2658
2738
|
|
2659
|
-
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/
|
2739
|
+
##### [uiautomation_find](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/mobile_methods.rb#L19) ios
|
2660
2740
|
|
2661
2741
|
> def uiautomation_find
|
2662
2742
|
|
@@ -2668,7 +2748,7 @@ find_element/s can be used with a [UIAutomation command](https://developer.apple
|
|
2668
2748
|
|
2669
2749
|
--
|
2670
2750
|
|
2671
|
-
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/
|
2751
|
+
##### [ios_predicate_string_find](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/mobile_methods.rb#L19) ios
|
2672
2752
|
|
2673
2753
|
> def ios_predicate_string_find
|
2674
2754
|
|
@@ -2682,7 +2762,7 @@ find_element/s can be used with a [Predicates](https://developer.apple.com/libra
|
|
2682
2762
|
|
2683
2763
|
--
|
2684
2764
|
|
2685
|
-
##### [find](https://github.com/appium/ruby_lib/blob/
|
2765
|
+
##### [find](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/generic.rb#L6) ios
|
2686
2766
|
|
2687
2767
|
> def find(value)
|
2688
2768
|
|
@@ -2698,7 +2778,7 @@ __Returns:__
|
|
2698
2778
|
|
2699
2779
|
--
|
2700
2780
|
|
2701
|
-
##### [finds](https://github.com/appium/ruby_lib/blob/
|
2781
|
+
##### [finds](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/generic.rb#L17) ios
|
2702
2782
|
|
2703
2783
|
> def finds(value)
|
2704
2784
|
|
@@ -2714,7 +2794,7 @@ __Returns:__
|
|
2714
2794
|
|
2715
2795
|
--
|
2716
2796
|
|
2717
|
-
##### [find_exact](https://github.com/appium/ruby_lib/blob/
|
2797
|
+
##### [find_exact](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/generic.rb#L29) ios
|
2718
2798
|
|
2719
2799
|
> def find_exact(value)
|
2720
2800
|
|
@@ -2730,7 +2810,7 @@ __Returns:__
|
|
2730
2810
|
|
2731
2811
|
--
|
2732
2812
|
|
2733
|
-
##### [finds_exact](https://github.com/appium/ruby_lib/blob/
|
2813
|
+
##### [finds_exact](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/generic.rb#L40) ios
|
2734
2814
|
|
2735
2815
|
> def finds_exact(value)
|
2736
2816
|
|
@@ -2746,7 +2826,7 @@ __Returns:__
|
|
2746
2826
|
|
2747
2827
|
--
|
2748
2828
|
|
2749
|
-
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/
|
2829
|
+
##### [raise_error_if_no_element](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/generic.rb#L51) ios
|
2750
2830
|
|
2751
2831
|
> def raise_error_if_no_element(element)
|
2752
2832
|
|
@@ -2754,23 +2834,7 @@ __Returns:__
|
|
2754
2834
|
|
2755
2835
|
--
|
2756
2836
|
|
2757
|
-
##### [
|
2758
|
-
|
2759
|
-
> def elements_include(elements, value)
|
2760
|
-
|
2761
|
-
Return all elements include not displayed elements.
|
2762
|
-
|
2763
|
-
--
|
2764
|
-
|
2765
|
-
##### [elements_exact](https://github.com/appium/ruby_lib/blob/6e199aeee8b2d5249b0962a8439a5938dd641613/lib/appium_lib/ios/element/generic.rb#L72) ios
|
2766
|
-
|
2767
|
-
> def elements_exact(elements, value)
|
2768
|
-
|
2769
|
-
Return all elements include not displayed elements.
|
2770
|
-
|
2771
|
-
--
|
2772
|
-
|
2773
|
-
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/6e199aeee8b2d5249b0962a8439a5938dd641613/lib/appium_lib/ios/element/generic.rb#L86) ios
|
2837
|
+
##### [select_visible_elements](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/generic.rb#L58) ios
|
2774
2838
|
|
2775
2839
|
> def select_visible_elements(elements)
|
2776
2840
|
|
@@ -2778,7 +2842,7 @@ Return visible elements.
|
|
2778
2842
|
|
2779
2843
|
--
|
2780
2844
|
|
2781
|
-
##### [UIATextField](https://github.com/appium/ruby_lib/blob/
|
2845
|
+
##### [UIATextField](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L3) ios
|
2782
2846
|
|
2783
2847
|
> UIATextField = 'UIATextField'.freeze
|
2784
2848
|
|
@@ -2786,7 +2850,7 @@ Return visible elements.
|
|
2786
2850
|
|
2787
2851
|
--
|
2788
2852
|
|
2789
|
-
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/
|
2853
|
+
##### [UIASecureTextField](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L4) ios
|
2790
2854
|
|
2791
2855
|
> UIASecureTextField = 'UIASecureTextField'.freeze
|
2792
2856
|
|
@@ -2794,7 +2858,7 @@ Return visible elements.
|
|
2794
2858
|
|
2795
2859
|
--
|
2796
2860
|
|
2797
|
-
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/
|
2861
|
+
##### [XCUIElementTypeTextField](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L6) ios
|
2798
2862
|
|
2799
2863
|
> XCUIElementTypeTextField = 'XCUIElementTypeTextField'.freeze
|
2800
2864
|
|
@@ -2802,7 +2866,7 @@ Return visible elements.
|
|
2802
2866
|
|
2803
2867
|
--
|
2804
2868
|
|
2805
|
-
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/
|
2869
|
+
##### [XCUIElementTypeSecureTextField](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L7) ios
|
2806
2870
|
|
2807
2871
|
> XCUIElementTypeSecureTextField = 'XCUIElementTypeSecureTextField'.freeze
|
2808
2872
|
|
@@ -2810,7 +2874,7 @@ Return visible elements.
|
|
2810
2874
|
|
2811
2875
|
--
|
2812
2876
|
|
2813
|
-
##### [text_field_class](https://github.com/appium/ruby_lib/blob/
|
2877
|
+
##### [text_field_class](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L10) ios
|
2814
2878
|
|
2815
2879
|
> def text_field_class
|
2816
2880
|
|
@@ -2822,7 +2886,7 @@ __Returns:__
|
|
2822
2886
|
|
2823
2887
|
--
|
2824
2888
|
|
2825
|
-
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/
|
2889
|
+
##### [secure_text_field_class](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L15) ios
|
2826
2890
|
|
2827
2891
|
> def secure_text_field_class
|
2828
2892
|
|
@@ -2834,7 +2898,7 @@ __Returns:__
|
|
2834
2898
|
|
2835
2899
|
--
|
2836
2900
|
|
2837
|
-
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/
|
2901
|
+
##### [_textfield_visible](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L35) ios
|
2838
2902
|
|
2839
2903
|
> def _textfield_visible
|
2840
2904
|
|
@@ -2842,7 +2906,7 @@ Appium
|
|
2842
2906
|
|
2843
2907
|
--
|
2844
2908
|
|
2845
|
-
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/
|
2909
|
+
##### [_textfield_exact_string](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L40) ios
|
2846
2910
|
|
2847
2911
|
> def _textfield_exact_string(value)
|
2848
2912
|
|
@@ -2850,7 +2914,7 @@ Appium
|
|
2850
2914
|
|
2851
2915
|
--
|
2852
2916
|
|
2853
|
-
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/
|
2917
|
+
##### [_textfield_contains_string](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L47) ios
|
2854
2918
|
|
2855
2919
|
> def _textfield_contains_string(value)
|
2856
2920
|
|
@@ -2858,7 +2922,7 @@ Appium
|
|
2858
2922
|
|
2859
2923
|
--
|
2860
2924
|
|
2861
|
-
##### [textfield](https://github.com/appium/ruby_lib/blob/
|
2925
|
+
##### [textfield](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L60) ios
|
2862
2926
|
|
2863
2927
|
> def textfield(value)
|
2864
2928
|
|
@@ -2876,7 +2940,7 @@ __Returns:__
|
|
2876
2940
|
|
2877
2941
|
--
|
2878
2942
|
|
2879
|
-
##### [textfields](https://github.com/appium/ruby_lib/blob/
|
2943
|
+
##### [textfields](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L86) ios
|
2880
2944
|
|
2881
2945
|
> def textfields(value = false)
|
2882
2946
|
|
@@ -2893,7 +2957,7 @@ __Returns:__
|
|
2893
2957
|
|
2894
2958
|
--
|
2895
2959
|
|
2896
|
-
##### [first_textfield](https://github.com/appium/ruby_lib/blob/
|
2960
|
+
##### [first_textfield](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L100) ios
|
2897
2961
|
|
2898
2962
|
> def first_textfield
|
2899
2963
|
|
@@ -2905,7 +2969,7 @@ __Returns:__
|
|
2905
2969
|
|
2906
2970
|
--
|
2907
2971
|
|
2908
|
-
##### [last_textfield](https://github.com/appium/ruby_lib/blob/
|
2972
|
+
##### [last_textfield](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L110) ios
|
2909
2973
|
|
2910
2974
|
> def last_textfield
|
2911
2975
|
|
@@ -2917,7 +2981,7 @@ __Returns:__
|
|
2917
2981
|
|
2918
2982
|
--
|
2919
2983
|
|
2920
|
-
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/
|
2984
|
+
##### [textfield_exact](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L123) ios
|
2921
2985
|
|
2922
2986
|
> def textfield_exact(value)
|
2923
2987
|
|
@@ -2933,7 +2997,7 @@ __Returns:__
|
|
2933
2997
|
|
2934
2998
|
--
|
2935
2999
|
|
2936
|
-
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/
|
3000
|
+
##### [textfields_exact](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/ios/element/textfield.rb#L134) ios
|
2937
3001
|
|
2938
3002
|
> def textfields_exact(value)
|
2939
3003
|
|
@@ -2949,7 +3013,7 @@ __Returns:__
|
|
2949
3013
|
|
2950
3014
|
--
|
2951
3015
|
|
2952
|
-
##### [value](https://github.com/appium/ruby_lib/blob/
|
3016
|
+
##### [value](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/patch.rb#L12)
|
2953
3017
|
|
2954
3018
|
> def value
|
2955
3019
|
|
@@ -2959,7 +3023,7 @@ Fixes NoMethodError: undefined method `value' for Selenium::WebDriver::Element
|
|
2959
3023
|
|
2960
3024
|
--
|
2961
3025
|
|
2962
|
-
##### [name](https://github.com/appium/ruby_lib/blob/
|
3026
|
+
##### [name](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/patch.rb#L19)
|
2963
3027
|
|
2964
3028
|
> def name
|
2965
3029
|
|
@@ -2969,7 +3033,7 @@ Fixes NoMethodError: undefined method `name' for Selenium::WebDriver::Element
|
|
2969
3033
|
|
2970
3034
|
--
|
2971
3035
|
|
2972
|
-
##### [location_rel](https://github.com/appium/ruby_lib/blob/
|
3036
|
+
##### [location_rel](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/patch.rb#L31)
|
2973
3037
|
|
2974
3038
|
> def location_rel
|
2975
3039
|
|
@@ -2987,7 +3051,7 @@ __Returns:__
|
|
2987
3051
|
|
2988
3052
|
--
|
2989
3053
|
|
2990
|
-
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/
|
3054
|
+
##### [DEFAULT_HEADERS](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/patch.rb#L152)
|
2991
3055
|
|
2992
3056
|
> DEFAULT_HEADERS = { 'Accept' => CONTENT_TYPE, 'User-Agent' => "appium/ruby_lib/#{::Appium::VERSION}" }.freeze
|
2993
3057
|
|
@@ -2995,7 +3059,7 @@ __Returns:__
|
|
2995
3059
|
|
2996
3060
|
--
|
2997
3061
|
|
2998
|
-
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/
|
3062
|
+
##### [patch_remote_driver_commands](https://github.com/appium/ruby_lib/blob/02da3389a76ed75e42cc8f8f2018dc61cc93c70c/lib/appium_lib/common/patch.rb#L155)
|
2999
3063
|
|
3000
3064
|
> def patch_remote_driver_commands
|
3001
3065
|
|